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,177 +1,263 @@
@import '../../styles/variables.scss';
@import '../../styles/mixins.scss';
.index-page {
padding-bottom: 20px;
.home-page {
min-height: 100vh;
background: $bg;
padding-bottom: calc(120px + env(safe-area-inset-bottom));
}
.greeting-bar {
/* ─── 问候区 ─── */
.greeting-section {
background: linear-gradient(135deg, $pri 0%, $pri-d 100%);
padding: 40px 32px 60px;
color: white;
padding: 48px 32px 72px;
color: #fff;
display: flex;
justify-content: space-between;
align-items: flex-start;
}
.greeting-text {
margin-bottom: 8px;
.greeting-left {
display: flex;
flex-direction: column;
}
.greeting-hello {
font-size: 36px;
font-weight: bold;
.greeting-time {
font-size: 26px;
opacity: 0.85;
margin-bottom: 4px;
}
.greeting-name {
font-size: 36px;
font-family: 'Georgia', 'Times New Roman', serif;
font-size: 44px;
font-weight: bold;
margin-left: 12px;
}
.greeting-date {
font-size: 24px;
opacity: 0.8;
opacity: 0.7;
margin-top: 8px;
}
.health-card {
/* ─── 今日健康 ─── */
.health-section {
background: $card;
border-radius: $r;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
margin: -30px 24px 24px;
box-shadow: $shadow-md;
margin: -36px 24px 24px;
padding: 28px;
}
.section-title {
font-size: 30px;
font-weight: bold;
color: $tx;
margin-bottom: 20px;
display: block;
@include section-title;
}
.health-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
gap: 16px;
}
.health-item {
.health-cell {
background: $bg;
border-radius: $r-sm;
padding: 20px;
padding: 20px 16px;
text-align: center;
border-left: 4px solid transparent;
transition: opacity 0.2s;
&.health-item-ok { border-left-color: $acc; }
&.health-item-warn { border-left-color: $dan; }
&:active {
opacity: 0.7;
}
}
.health-item-bottom {
.health-cell-label {
font-size: 22px;
color: $tx2;
display: block;
margin-bottom: 8px;
}
.health-cell-value {
@include serif-number;
font-size: 44px;
font-weight: bold;
color: $tx;
display: block;
line-height: 1.1;
}
.health-cell-bottom {
display: flex;
justify-content: center;
align-items: center;
gap: 8px;
margin-top: 8px;
}
.health-status {
.health-cell-unit {
font-size: 20px;
&.normal { color: $acc; }
&.high, &.low { color: $dan; font-weight: bold; }
}
.health-label {
font-size: 24px;
color: $tx2;
display: block;
}
.health-value {
font-size: 36px;
font-weight: bold;
color: $pri;
display: block;
margin: 8px 0 4px;
}
.health-unit {
font-size: 22px;
color: $tx3;
}
.quick-services {
.health-cell-tag {
font-size: 18px;
font-weight: 500;
padding: 2px 10px;
border-radius: $r-sm;
display: inline-block;
&.tag-ok {
background: $acc-l;
color: $acc;
}
&.tag-warn {
background: $wrn-l;
color: $wrn;
}
}
/* ─── 快捷服务 ─── */
.services-section {
margin: 0 24px 24px;
}
.service-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 16px;
.services-row {
display: flex;
justify-content: space-between;
gap: 8px;
}
.service-item {
.service-btn {
display: flex;
flex-direction: column;
align-items: center;
padding: 20px 0;
gap: 8px;
flex: 1;
&:active {
opacity: 0.7;
}
}
.service-icon {
font-size: 48px;
margin-bottom: 8px;
.service-icon-wrap {
width: 88px;
height: 88px;
border-radius: $r;
background: $pri-l;
@include flex-center;
}
.service-icon-text {
font-family: 'Georgia', 'Times New Roman', serif;
font-size: 32px;
font-weight: bold;
color: $pri;
}
.service-label {
font-size: 24px;
font-size: 22px;
color: $tx2;
text-align: center;
}
.upcoming {
/* ─── 待办事项 ─── */
.upcoming-section {
margin: 0 24px;
}
.upcoming-empty {
background: $card;
border-radius: $r;
padding: 48px 24px;
text-align: center;
box-shadow: $shadow-sm;
}
.upcoming-empty-text {
display: block;
font-size: 28px;
color: $tx2;
margin-bottom: 8px;
}
.upcoming-empty-hint {
display: block;
font-size: 24px;
color: $tx3;
}
.upcoming-list {
background: $card;
border-radius: $r;
overflow: hidden;
box-shadow: $shadow-sm;
}
.upcoming-item {
display: flex;
align-items: center;
padding: 24px 28px;
border-bottom: 1px solid $bd;
&:last-child { border-bottom: none; }
padding: 24px 24px;
border-bottom: 1px solid $bd-l;
&:last-child {
border-bottom: none;
}
&:active {
background: $bd-l;
}
}
.upcoming-item-main {
flex: 1;
min-width: 0;
}
.upcoming-item-title {
font-size: 28px;
color: $tx;
display: block;
margin-bottom: 6px;
margin-bottom: 4px;
font-weight: 500;
}
.upcoming-item-sub {
font-size: 22px;
color: $tx3;
color: $tx2;
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.upcoming-item-tag {
font-size: 20px;
font-weight: 500;
padding: 4px 14px;
border-radius: $r-sm;
flex-shrink: 0;
margin-right: 12px;
&.tag-ok {
background: $acc-l;
color: $acc;
}
&.tag-warn {
background: $wrn-l;
color: $wrn;
}
&.tag-default {
background: $bd-l;
color: $tx2;
}
}
.upcoming-item-arrow {
font-size: 36px;
color: $tx3;
padding-left: 12px;
}
.empty-hint {
background: $card;
border-radius: $r;
padding: 40px;
text-align: center;
}
.empty-text {
font-size: 26px;
font-size: 32px;
color: $tx3;
flex-shrink: 0;
}