696 lines
12 KiB
SCSS
696 lines
12 KiB
SCSS
$support-green: #1ec671;
|
|
$support-green-dark: #18b863;
|
|
$support-page-bg: #f7f8fa;
|
|
$support-card-border: #eef0f3;
|
|
$support-text: #1a1a1a;
|
|
$support-text-secondary: #98a2b3;
|
|
$support-text-muted: #667085;
|
|
$support-orange: #f5a623;
|
|
$support-orange-bg: #fff7e6;
|
|
$support-danger: #f04438;
|
|
|
|
.support-page {
|
|
height: 100vh;
|
|
background: #fff;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.support-page :deep(.app-navbar) {
|
|
background: #fff;
|
|
}
|
|
|
|
.support-page :deep(.app-navbar__right) {
|
|
width: auto;
|
|
min-width: 80rpx;
|
|
padding-left: 16rpx;
|
|
}
|
|
|
|
.support-page__nav-action {
|
|
padding: 0;
|
|
background: transparent;
|
|
}
|
|
|
|
.support-page__nav-action-text {
|
|
font-size: 30rpx;
|
|
color: $support-green;
|
|
line-height: 1;
|
|
font-weight: 400;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.support-page__nav-action-text--end {
|
|
color: $support-text-muted;
|
|
}
|
|
|
|
.support-page__header {
|
|
flex-shrink: 0;
|
|
margin: 0;
|
|
padding: 16rpx 32rpx 20rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 20rpx;
|
|
}
|
|
|
|
.support-page__header-avatar {
|
|
width: 80rpx;
|
|
height: 80rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
background: linear-gradient(145deg, #45d685 0%, #21c25e 100%);
|
|
color: #fff;
|
|
font-size: 34rpx;
|
|
font-weight: 600;
|
|
line-height: 1;
|
|
|
|
&--square {
|
|
border-radius: 18rpx;
|
|
}
|
|
|
|
&--circle {
|
|
border-radius: 50%;
|
|
}
|
|
}
|
|
|
|
.support-page__header-main {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.support-page__header-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12rpx;
|
|
}
|
|
|
|
.support-page__header-name {
|
|
font-size: 30rpx;
|
|
font-weight: 600;
|
|
color: $support-text;
|
|
line-height: 1.35;
|
|
}
|
|
|
|
.support-page__header-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6rpx;
|
|
padding: 4rpx 12rpx;
|
|
border-radius: 20rpx;
|
|
font-size: 20rpx;
|
|
line-height: 1.2;
|
|
font-weight: 500;
|
|
flex-shrink: 0;
|
|
|
|
&--online {
|
|
color: $support-green;
|
|
background: rgba(30, 198, 113, 0.1);
|
|
}
|
|
|
|
&--serving {
|
|
color: $support-green;
|
|
background: rgba(30, 198, 113, 0.1);
|
|
border: 1rpx solid rgba(30, 198, 113, 0.18);
|
|
}
|
|
}
|
|
|
|
.support-page__header-badge-dot {
|
|
width: 10rpx;
|
|
height: 10rpx;
|
|
border-radius: 50%;
|
|
background: $support-green;
|
|
}
|
|
|
|
.support-page__header-subtitle {
|
|
display: block;
|
|
margin-top: 8rpx;
|
|
font-size: 24rpx;
|
|
color: $support-text-secondary;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.support-page__header-subtitle-dot {
|
|
color: $support-green;
|
|
margin-right: 4rpx;
|
|
}
|
|
|
|
.support-page__header-hours {
|
|
flex-shrink: 0;
|
|
font-size: 24rpx;
|
|
color: $support-green;
|
|
line-height: 1.3;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.support-page__chat {
|
|
flex: 1;
|
|
min-height: 0;
|
|
padding: 0 24rpx;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.support-page__chat-inner {
|
|
padding: 8rpx 0 24rpx;
|
|
}
|
|
|
|
.support-page__time {
|
|
display: flex;
|
|
justify-content: center;
|
|
margin: 8rpx 0 24rpx;
|
|
}
|
|
|
|
.support-page__time-pill {
|
|
padding: 8rpx 20rpx;
|
|
border-radius: 20rpx;
|
|
background: #eef1f5;
|
|
font-size: 22rpx;
|
|
color: $support-text-secondary;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.support-page__msg {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 16rpx;
|
|
margin-bottom: 28rpx;
|
|
|
|
&--user {
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
&--system {
|
|
justify-content: center;
|
|
margin-bottom: 20rpx;
|
|
}
|
|
}
|
|
|
|
.support-page__msg-avatar {
|
|
width: 72rpx;
|
|
height: 72rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
font-size: 28rpx;
|
|
font-weight: 600;
|
|
line-height: 1;
|
|
color: #fff;
|
|
|
|
&--bot {
|
|
border-radius: 16rpx;
|
|
background: linear-gradient(145deg, #45d685 0%, #21c25e 100%);
|
|
}
|
|
|
|
&--agent {
|
|
border-radius: 50%;
|
|
background: linear-gradient(145deg, #45d685 0%, #21c25e 100%);
|
|
}
|
|
|
|
&--user {
|
|
border-radius: 16rpx;
|
|
background: #d0d5dd;
|
|
color: #fff;
|
|
}
|
|
}
|
|
|
|
.support-page__msg-body {
|
|
max-width: calc(100% - 96rpx);
|
|
display: flex;
|
|
flex-direction: column;
|
|
|
|
&--user {
|
|
align-items: flex-end;
|
|
}
|
|
}
|
|
|
|
.support-page__bubble {
|
|
max-width: 100%;
|
|
padding: 20rpx 24rpx;
|
|
font-size: 28rpx;
|
|
line-height: 1.55;
|
|
word-break: break-word;
|
|
|
|
&--bot,
|
|
&--agent {
|
|
background: #fff;
|
|
color: $support-text;
|
|
border: 1rpx solid $support-card-border;
|
|
border-radius: 4rpx 20rpx 20rpx 20rpx;
|
|
box-shadow: 0 2rpx 12rpx rgba(16, 24, 40, 0.04);
|
|
}
|
|
|
|
&--user {
|
|
background: $support-green;
|
|
color: $support-text;
|
|
border-radius: 20rpx 4rpx 20rpx 20rpx;
|
|
}
|
|
|
|
&--system {
|
|
max-width: 92%;
|
|
padding: 12rpx 20rpx;
|
|
background: #eef1f5;
|
|
color: $support-text-muted;
|
|
font-size: 24rpx;
|
|
line-height: 1.5;
|
|
text-align: center;
|
|
border-radius: 20rpx;
|
|
}
|
|
}
|
|
|
|
.support-page__bubble-time {
|
|
margin-top: 8rpx;
|
|
font-size: 22rpx;
|
|
color: $support-text-secondary;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.support-page__quick {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 16rpx;
|
|
margin: 0 0 28rpx 88rpx;
|
|
}
|
|
|
|
.support-page__quick-item {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8rpx;
|
|
padding: 14rpx 22rpx;
|
|
background: #fff;
|
|
border: 1rpx solid #e4e7ec;
|
|
border-radius: 32rpx;
|
|
font-size: 26rpx;
|
|
color: #3b82f6;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.support-page__quick-dot {
|
|
color: #3b82f6;
|
|
font-size: 20rpx;
|
|
line-height: 1;
|
|
}
|
|
|
|
.support-page__card {
|
|
margin: 0 0 28rpx 88rpx;
|
|
background: #fff;
|
|
border: 1rpx solid $support-card-border;
|
|
border-radius: 20rpx;
|
|
padding: 28rpx;
|
|
box-shadow: 0 2rpx 16rpx rgba(16, 24, 40, 0.04);
|
|
}
|
|
|
|
.support-page__card-title {
|
|
font-size: 30rpx;
|
|
font-weight: 600;
|
|
color: $support-text;
|
|
line-height: 1.4;
|
|
margin-bottom: 20rpx;
|
|
}
|
|
|
|
.support-page__card-step {
|
|
display: flex;
|
|
gap: 16rpx;
|
|
margin-bottom: 16rpx;
|
|
|
|
&:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
}
|
|
|
|
.support-page__card-step-index {
|
|
width: 36rpx;
|
|
height: 36rpx;
|
|
border-radius: 50%;
|
|
background: rgba(30, 198, 113, 0.12);
|
|
color: $support-green;
|
|
font-size: 22rpx;
|
|
font-weight: 600;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.support-page__card-step-text {
|
|
flex: 1;
|
|
font-size: 26rpx;
|
|
color: $support-text-muted;
|
|
line-height: 1.55;
|
|
}
|
|
|
|
.support-page__queue-head {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 28rpx;
|
|
}
|
|
|
|
.support-page__queue-title-wrap {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10rpx;
|
|
}
|
|
|
|
.support-page__queue-icon {
|
|
font-size: 30rpx;
|
|
line-height: 1;
|
|
}
|
|
|
|
.support-page__queue-title {
|
|
font-size: 30rpx;
|
|
font-weight: 600;
|
|
color: $support-text;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.support-page__queue-tag {
|
|
padding: 6rpx 14rpx;
|
|
border-radius: 8rpx;
|
|
background: $support-orange-bg;
|
|
color: $support-orange;
|
|
font-size: 22rpx;
|
|
line-height: 1.2;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.support-page__queue-steps {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
margin-bottom: 28rpx;
|
|
padding: 0 8rpx;
|
|
}
|
|
|
|
.support-page__queue-step {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 12rpx;
|
|
position: relative;
|
|
|
|
&:not(:last-child)::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 20rpx;
|
|
left: calc(50% + 24rpx);
|
|
width: calc(100% - 48rpx);
|
|
height: 2rpx;
|
|
background: #e4e7ec;
|
|
}
|
|
}
|
|
|
|
.support-page__queue-step-dot {
|
|
width: 40rpx;
|
|
height: 40rpx;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 20rpx;
|
|
line-height: 1;
|
|
background: #f2f4f7;
|
|
color: $support-text-secondary;
|
|
position: relative;
|
|
z-index: 1;
|
|
|
|
&--done {
|
|
background: $support-green;
|
|
color: #fff;
|
|
}
|
|
|
|
&--active {
|
|
background: $support-orange-bg;
|
|
color: $support-orange;
|
|
border: 2rpx solid $support-orange;
|
|
}
|
|
}
|
|
|
|
.support-page__queue-step-label {
|
|
font-size: 22rpx;
|
|
color: $support-text-muted;
|
|
line-height: 1.3;
|
|
text-align: center;
|
|
}
|
|
|
|
.support-page__queue-info {
|
|
padding: 20rpx 0;
|
|
border-top: 1rpx solid #f0f0f0;
|
|
border-bottom: 1rpx solid #f0f0f0;
|
|
margin-bottom: 20rpx;
|
|
}
|
|
|
|
.support-page__queue-info-text {
|
|
display: block;
|
|
font-size: 28rpx;
|
|
font-weight: 600;
|
|
color: $support-text;
|
|
line-height: 1.5;
|
|
margin-bottom: 8rpx;
|
|
}
|
|
|
|
.support-page__queue-estimate {
|
|
font-size: 24rpx;
|
|
color: $support-text-secondary;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.support-page__queue-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.support-page__queue-link {
|
|
font-size: 26rpx;
|
|
color: $support-text-muted;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.support-page__queue-cancel {
|
|
font-size: 26rpx;
|
|
color: $support-danger;
|
|
line-height: 1.4;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.support-page__diagnosis-head {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 24rpx;
|
|
}
|
|
|
|
.support-page__diagnosis-title-wrap {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12rpx;
|
|
}
|
|
|
|
.support-page__diagnosis-bar {
|
|
width: 6rpx;
|
|
height: 28rpx;
|
|
border-radius: 3rpx;
|
|
background: $support-green;
|
|
}
|
|
|
|
.support-page__diagnosis-estimate {
|
|
padding: 6rpx 14rpx;
|
|
border-radius: 8rpx;
|
|
background: #f2f4f7;
|
|
font-size: 22rpx;
|
|
color: $support-text-secondary;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.support-page__diagnosis-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12rpx;
|
|
padding: 14rpx 0;
|
|
}
|
|
|
|
.support-page__diagnosis-icon {
|
|
width: 36rpx;
|
|
font-size: 24rpx;
|
|
color: $support-text-secondary;
|
|
text-align: center;
|
|
line-height: 1;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.support-page__diagnosis-label {
|
|
flex: 1;
|
|
font-size: 26rpx;
|
|
color: $support-text;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.support-page__diagnosis-status {
|
|
padding: 4rpx 12rpx;
|
|
border-radius: 8rpx;
|
|
font-size: 22rpx;
|
|
line-height: 1.2;
|
|
flex-shrink: 0;
|
|
|
|
&--done {
|
|
color: $support-green;
|
|
background: rgba(30, 198, 113, 0.12);
|
|
}
|
|
|
|
&--running {
|
|
color: $support-orange;
|
|
background: $support-orange-bg;
|
|
}
|
|
|
|
&--pending {
|
|
color: $support-text-secondary;
|
|
background: #f2f4f7;
|
|
}
|
|
}
|
|
|
|
.support-page__progress {
|
|
height: 8rpx;
|
|
background: #eef1f5;
|
|
border-radius: 4rpx;
|
|
overflow: hidden;
|
|
margin: 12rpx 0 20rpx;
|
|
}
|
|
|
|
.support-page__progress-bar {
|
|
height: 100%;
|
|
background: linear-gradient(90deg, #45d685 0%, #21c25e 100%);
|
|
border-radius: 4rpx;
|
|
transition: width 0.3s ease;
|
|
}
|
|
|
|
.support-page__diagnosis-suggest {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 16rpx;
|
|
}
|
|
|
|
.support-page__diagnosis-suggest-item {
|
|
padding: 12rpx 20rpx;
|
|
border-radius: 28rpx;
|
|
background: #f5f6f8;
|
|
font-size: 24rpx;
|
|
color: $support-text-muted;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.support-page__image-wrap {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-end;
|
|
}
|
|
|
|
.support-page__image {
|
|
width: 280rpx;
|
|
height: 200rpx;
|
|
border-radius: 16rpx;
|
|
background: #eef1f5;
|
|
}
|
|
|
|
.support-page__footer {
|
|
flex-shrink: 0;
|
|
background: #fff;
|
|
padding: 12rpx 24rpx calc(12rpx + env(safe-area-inset-bottom));
|
|
border-top: 1rpx solid #f0f0f0;
|
|
}
|
|
|
|
.support-page__footer-shortcuts {
|
|
display: flex;
|
|
gap: 16rpx;
|
|
margin-bottom: 16rpx;
|
|
}
|
|
|
|
.support-page__footer-shortcut {
|
|
padding: 10rpx 22rpx;
|
|
border-radius: 28rpx;
|
|
background: #f5f6f8;
|
|
font-size: 24rpx;
|
|
color: $support-text-muted;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.support-page__input-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16rpx;
|
|
}
|
|
|
|
.support-page__mic {
|
|
width: 80rpx;
|
|
height: 80rpx;
|
|
border-radius: 16rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.support-page__mic-icon {
|
|
width: 56rpx;
|
|
height: 56rpx;
|
|
}
|
|
|
|
.support-page__input-wrap {
|
|
flex: 1;
|
|
height: 72rpx;
|
|
padding: 0 28rpx;
|
|
background: #f5f6f8;
|
|
border-radius: 36rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.support-page__input {
|
|
flex: 1;
|
|
width: 100%;
|
|
height: 72rpx;
|
|
font-size: 28rpx;
|
|
color: $support-text;
|
|
}
|
|
|
|
.support-page__tag {
|
|
width: 56rpx;
|
|
height: 72rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.support-page__tag-icon {
|
|
width: 48rpx;
|
|
height: 48rpx;
|
|
}
|
|
|
|
.support-page__send {
|
|
width: 72rpx;
|
|
height: 72rpx;
|
|
border-radius: 18rpx;
|
|
background: linear-gradient(135deg, #07b57a 0%, #a4e04b 100%);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
box-shadow: 0 6rpx 16rpx rgba(7, 181, 122, 0.28);
|
|
}
|
|
|
|
.support-page__send-icon {
|
|
width: 36rpx;
|
|
height: 36rpx;
|
|
}
|
|
|
|
.support-page__secure {
|
|
margin-top: 12rpx;
|
|
text-align: center;
|
|
font-size: 22rpx;
|
|
color: $support-text-secondary;
|
|
line-height: 1.4;
|
|
}
|