feat(miniprogram): 温润东方风全面 UI 重设计

73 文件变更,覆盖全部 40 个页面 SCSS + TabBar 图标 + 组件样式。
统一赤陶主色 #C4623A + 暖米背景 + 衬线标题字体 + 12px 圆角体系。
This commit is contained in:
iven
2026-04-28 00:19:52 +08:00
parent fbb28e655d
commit 50eae8b809
97 changed files with 7633 additions and 2373 deletions

View File

@@ -1,8 +1,11 @@
@import '../../../../styles/variables.scss';
@import '../../../../styles/mixins.scss';
.chat-page {
display: flex;
flex-direction: column;
height: 100vh;
background: #f0f4f8;
background: $bg;
}
.chat-header {
@@ -10,18 +13,19 @@
justify-content: space-between;
align-items: center;
padding: 24px 32px;
background: #fff;
border-bottom: 1px solid #e2e8f0;
background: $card;
border-bottom: 1px solid $bd;
&__title {
font-family: 'Georgia', 'Times New Roman', serif;
font-size: 30px;
font-weight: 600;
color: #0f172a;
color: $tx;
}
&__close {
font-size: 26px;
color: #ef4444;
color: $dan;
padding: 8px 16px;
}
}
@@ -44,35 +48,36 @@
.msg-bubble {
max-width: 70%;
padding: 20px 24px;
border-radius: 16px;
border-radius: $r-lg;
position: relative;
&--other {
background: #fff;
background: $card;
border-top-left-radius: 4px;
}
&--self {
background: #0891b2;
background: $pri;
border-top-right-radius: 4px;
}
}
.msg-text {
font-size: 28px;
color: #0f172a;
color: $tx;
display: block;
line-height: 1.6;
word-break: break-all;
.msg-bubble--self & {
color: #fff;
color: $card;
}
}
.msg-time {
@include serif-number;
font-size: 20px;
color: #94a3b8;
color: $tx3;
display: block;
margin-top: 8px;
text-align: right;
@@ -88,7 +93,7 @@
&__text {
font-size: 26px;
color: #94a3b8;
color: $tx3;
}
}
@@ -96,23 +101,23 @@
display: flex;
align-items: center;
padding: 16px 24px;
background: #fff;
border-top: 1px solid #e2e8f0;
background: $card;
border-top: 1px solid $bd;
padding-bottom: calc(16px + env(safe-area-inset-bottom));
}
.chat-input {
flex: 1;
background: #f1f5f9;
border-radius: 12px;
background: $bd-l;
border-radius: $r;
padding: 16px 20px;
font-size: 28px;
margin-right: 16px;
}
.chat-send-btn {
background: #0891b2;
border-radius: 12px;
background: $pri;
border-radius: $r;
padding: 16px 28px;
flex-shrink: 0;
@@ -122,7 +127,7 @@
&__text {
font-size: 28px;
color: #fff;
color: $card;
font-weight: 500;
}
}
@@ -130,11 +135,11 @@
.chat-closed-bar {
padding: 24px;
text-align: center;
background: #fff;
border-top: 1px solid #e2e8f0;
background: $card;
border-top: 1px solid $bd;
&__text {
font-size: 26px;
color: #94a3b8;
color: $tx3;
}
}

View File

@@ -1,13 +1,16 @@
@import '../../../styles/variables.scss';
@import '../../../styles/mixins.scss';
.consultation-page {
min-height: 100vh;
background: #f0f4f8;
background: $bg;
}
.tabs {
display: flex;
background: #fff;
background: $card;
padding: 0 16px;
border-bottom: 1px solid #e2e8f0;
border-bottom: 1px solid $bd;
}
.tab {
@@ -15,11 +18,11 @@
text-align: center;
padding: 24px 0;
font-size: 28px;
color: #64748b;
color: $tx2;
position: relative;
&--active {
color: #0891b2;
color: $pri;
font-weight: 600;
&::after {
@@ -29,7 +32,7 @@
left: 30%;
right: 30%;
height: 4px;
background: #0891b2;
background: $pri;
border-radius: 2px;
}
}
@@ -43,14 +46,14 @@
}
.session-card {
background: #fff;
border-radius: 16px;
background: $card;
border-radius: $r-lg;
padding: 28px;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
box-shadow: $shadow-sm;
position: relative;
&:active {
background: #f8fafc;
background: $bd-l;
}
&__top {
@@ -63,7 +66,7 @@
&__subject {
font-size: 28px;
font-weight: 600;
color: #0f172a;
color: $tx;
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
@@ -72,8 +75,7 @@
}
&__status {
padding: 4px 14px;
border-radius: 12px;
@include tag(transparent, $tx2);
flex-shrink: 0;
}
@@ -90,21 +92,17 @@
}
&__type {
font-size: 24px;
color: #0891b2;
background: #e0f2fe;
padding: 2px 12px;
border-radius: 8px;
@include tag($pri-l, $pri);
}
&__time {
font-size: 24px;
color: #94a3b8;
color: $tx3;
}
&__preview {
font-size: 26px;
color: #64748b;
color: $tx2;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
@@ -117,17 +115,16 @@
right: 20px;
min-width: 36px;
height: 36px;
background: #ef4444;
border-radius: 18px;
display: flex;
align-items: center;
justify-content: center;
background: $dan;
border-radius: $r-pill;
@include flex-center;
padding: 0 8px;
}
&__badge-text {
@include serif-number;
font-size: 22px;
color: #fff;
color: $card;
font-weight: 600;
}
}
@@ -141,16 +138,16 @@
&__btn {
font-size: 26px;
color: #0891b2;
color: $pri;
padding: 12px 24px;
&.disabled {
color: #cbd5e1;
color: $tx3;
}
}
&__info {
font-size: 24px;
color: #64748b;
color: $tx2;
}
}