feat: initialize Evergreen Health mobile app

This commit is contained in:
fuenmao
2026-09-21 15:53:02 +08:00
commit 93e9bb604d
18 changed files with 2715 additions and 0 deletions
+724
View File
@@ -0,0 +1,724 @@
:root {
font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
color: #17322a;
background-color: #edebe4;
/* Brand Theme Tokens */
--primary-deep: #09372d;
--primary: #0c4d3f;
--primary-light: #156655;
--primary-subtle: #e8f2ef;
--accent-gold: #c89547;
--accent-light: #fdf6ea;
--accent-warm: #e3b063;
/* Neutrals */
--bg-app: #f6f5f0;
--card-bg: #ffffff;
--line: rgba(12, 77, 63, 0.08);
--line-light: rgba(12, 77, 63, 0.04);
--text-main: #142e27;
--text-sub: #576d65;
--text-muted: #8d9e97;
/* Shadows */
--shadow-card: 0 4px 16px -2px rgba(9, 55, 45, 0.05), 0 2px 6px -1px rgba(9, 55, 45, 0.03);
--shadow-float: 0 12px 32px -4px rgba(9, 55, 45, 0.12);
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
-webkit-tap-highlight-color: transparent;
}
body {
min-height: 100vh;
background-color: #edebe4;
display: flex;
justify-content: center;
}
#app {
width: 100%;
max-width: 460px;
min-height: 100vh;
background: var(--bg-app);
box-shadow: 0 0 40px rgba(0, 0, 0, 0.06);
position: relative;
overflow-x: hidden;
display: flex;
flex-direction: column;
}
button, input, textarea {
font: inherit;
border: none;
outline: none;
}
button {
cursor: pointer;
}
/* Common Typography */
.eyebrow {
display: inline-flex;
align-items: center;
gap: 4px;
margin: 0 0 6px;
color: var(--accent-gold);
font-size: 11px;
font-weight: 700;
letter-spacing: 0.14em;
text-transform: uppercase;
}
/* Page Shell Layout */
.page-shell {
min-height: 100vh;
padding: 16px 16px calc(90px + env(safe-area-inset-bottom));
background: var(--bg-app);
display: flex;
flex-direction: column;
}
/* Card Common */
.section-card {
background: var(--card-bg);
border-radius: 20px;
padding: 18px 16px;
margin-bottom: 14px;
border: 1px solid var(--line);
box-shadow: var(--shadow-card);
}
.section-title {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 14px;
}
.section-title > span {
font-size: 16px;
font-weight: 700;
color: var(--text-main);
letter-spacing: -0.01em;
}
.section-title small {
color: var(--text-muted);
font-size: 12px;
}
.section-title button {
background: transparent;
color: var(--primary);
font-size: 13px;
font-weight: 600;
padding: 4px 8px;
border-radius: 6px;
}
/* Auth Page */
.auth-page {
min-height: 100vh;
background: var(--bg-app);
display: flex;
flex-direction: column;
}
.brand-panel {
padding: calc(36px + env(safe-area-inset-top)) 24px 38px;
color: #fff;
background:
radial-gradient(circle at 85% 15%, rgba(227, 176, 99, 0.24), transparent 45%),
radial-gradient(circle at 10% 90%, rgba(21, 102, 85, 0.4), transparent 50%),
linear-gradient(155deg, var(--primary-deep) 0%, var(--primary) 65%, #13463b 100%);
border-radius: 0 0 32px 32px;
position: relative;
}
.brand-badge {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 5px 12px 5px 6px;
background: rgba(255, 255, 255, 0.12);
border: 1px solid rgba(255, 255, 255, 0.18);
border-radius: 24px;
font-size: 12px;
margin-bottom: 20px;
backdrop-filter: blur(8px);
}
.brand-badge-icon {
width: 24px;
height: 24px;
background: var(--accent-gold);
color: #fff;
border-radius: 50%;
display: grid;
place-items: center;
font-weight: 700;
font-size: 13px;
}
.brand-panel h1 {
font-size: 28px;
font-weight: 700;
line-height: 1.25;
margin-bottom: 10px;
letter-spacing: -0.02em;
}
.brand-copy {
font-size: 13px;
color: rgba(255, 255, 255, 0.76);
line-height: 1.6;
margin-bottom: 18px;
}
.feature-pill-row {
display: flex;
gap: 8px;
flex-wrap: wrap;
}
.feature-pill-row span {
padding: 5px 11px;
background: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.14);
border-radius: 16px;
font-size: 11px;
color: rgba(255, 255, 255, 0.9);
}
.auth-card {
width: calc(100% - 32px);
margin: -24px auto 24px;
padding: 22px 20px 24px;
background: #fff;
border-radius: 24px;
box-shadow: var(--shadow-float);
border: 1px solid var(--line);
position: relative;
z-index: 2;
}
.auth-tab-switch {
display: flex;
background: #f1efea;
border-radius: 12px;
padding: 3px;
margin-bottom: 20px;
}
.auth-tab-switch button {
flex: 1;
padding: 9px 0;
font-size: 14px;
font-weight: 600;
border-radius: 9px;
color: var(--text-sub);
background: transparent;
transition: all 0.2s ease;
}
.auth-tab-switch button.active {
background: #ffffff;
color: var(--primary);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.auth-card .van-field {
margin-bottom: 12px;
padding: 12px 14px;
background: #f8f7f4;
border-radius: 14px;
border: 1px solid transparent;
transition: border-color 0.2s;
}
.auth-card .van-field:focus-within {
border-color: var(--primary);
background: #ffffff;
}
.auth-card .van-button {
margin-top: 14px;
height: 48px;
font-weight: 600;
font-size: 15px;
box-shadow: 0 8px 20px -2px rgba(12, 77, 63, 0.28);
}
.privacy-note {
margin-top: 18px;
font-size: 11px;
color: var(--text-muted);
text-align: center;
line-height: 1.5;
}
/* Onboarding Header */
.page-header {
margin-bottom: 18px;
padding: 6px 4px 0;
}
.page-header h1 {
font-size: 24px;
font-weight: 700;
color: var(--text-main);
margin: 4px 0 8px;
letter-spacing: -0.02em;
}
.page-header p {
color: var(--text-sub);
font-size: 13px;
line-height: 1.5;
}
/* Module Selection Grid (3 Columns) */
.module-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 8px;
}
.module-card {
padding: 14px 10px;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
border: 1.5px solid var(--line);
border-radius: 16px;
background: #faf9f6;
color: var(--text-main);
transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
position: relative;
}
.module-card.selected {
border-color: var(--primary);
background: var(--primary-subtle);
color: var(--primary);
}
.module-icon {
width: 36px;
height: 36px;
border-radius: 50%;
background: #ffffff;
display: grid;
place-items: center;
font-size: 18px;
margin-bottom: 8px;
border: 1px solid var(--line);
box-shadow: var(--shadow-card);
}
.module-card.selected .module-icon {
background: var(--primary);
color: #fff;
border-color: transparent;
}
.module-card strong {
font-size: 13px;
font-weight: 700;
margin-bottom: 4px;
}
.module-card small {
font-size: 10px;
color: var(--text-muted);
line-height: 1.3;
}
.module-card.selected small {
color: var(--primary-light);
}
.module-check {
margin-top: 8px;
padding: 2px 8px;
border-radius: 10px;
font-size: 10px;
font-weight: 600;
background: #eee;
color: var(--text-muted);
}
.module-card.selected .module-check {
background: var(--primary);
color: #fff;
}
/* Profile Form Elements */
.form-group-title {
font-size: 12px;
font-weight: 700;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.05em;
margin: 12px 0 8px;
}
.two-column {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 8px;
}
.custom-field-box {
background: #f8f7f3;
border-radius: 14px;
padding: 8px 12px;
margin-bottom: 8px;
border: 1px solid transparent;
transition: all 0.2s;
}
.custom-field-box:focus-within {
background: #fff;
border-color: var(--primary);
}
.custom-field-box .van-field {
padding: 0;
background: transparent;
}
/* Sticky Bottom Action */
.sticky-action {
position: fixed;
z-index: 50;
left: 50%;
transform: translateX(-50%);
width: 100%;
max-width: 460px;
bottom: 0;
padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
background: rgba(246, 245, 240, 0.92);
backdrop-filter: blur(16px);
border-top: 1px solid var(--line);
}
.sticky-action .van-button {
height: 48px;
font-size: 15px;
font-weight: 600;
box-shadow: 0 8px 24px -2px rgba(12, 77, 63, 0.25);
}
/* Dashboard Header */
.dashboard-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 16px;
padding: 8px 2px 0;
}
.header-meta h1 {
font-size: 22px;
font-weight: 700;
color: var(--text-main);
letter-spacing: -0.02em;
line-height: 1.3;
}
.date-badge {
display: inline-flex;
align-items: center;
gap: 4px;
margin-top: 4px;
color: var(--text-sub);
font-size: 12px;
}
.user-chip {
display: flex;
align-items: center;
gap: 8px;
padding: 5px 12px 5px 6px;
background: #fff;
border: 1px solid var(--line);
border-radius: 20px;
box-shadow: var(--shadow-card);
transition: transform 0.15s;
}
.user-chip:active {
transform: scale(0.97);
}
.avatar-badge {
width: 28px;
height: 28px;
border-radius: 50%;
background: var(--primary);
color: #fff;
display: grid;
place-items: center;
font-size: 13px;
font-weight: 700;
}
.user-chip-name {
font-size: 12px;
font-weight: 600;
color: var(--text-main);
}
/* Hero Health Card */
.hero-card {
padding: 22px 20px;
color: #fff;
border-radius: 24px;
background:
radial-gradient(circle at 90% 10%, rgba(227, 176, 99, 0.28), transparent 45%),
linear-gradient(145deg, var(--primary-deep) 0%, var(--primary) 70%, #155749 100%);
box-shadow: var(--shadow-float);
border: 1px solid rgba(255, 255, 255, 0.12);
margin-bottom: 14px;
}
.hero-top-row {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 10px;
}
.hero-card h2 {
font-size: 22px;
font-weight: 700;
line-height: 1.3;
margin-bottom: 8px;
letter-spacing: -0.01em;
}
.hero-summary {
font-size: 13px;
color: rgba(255, 255, 255, 0.8);
line-height: 1.65;
margin-bottom: 16px;
}
.tag-row {
display: flex;
gap: 6px;
flex-wrap: wrap;
margin-bottom: 14px;
}
.tag-pill {
padding: 4px 10px;
background: rgba(255, 255, 255, 0.12);
border: 1px solid rgba(255, 255, 255, 0.16);
border-radius: 12px;
font-size: 11px;
color: #fff;
}
.hero-action-row {
display: flex;
gap: 10px;
align-items: center;
margin-top: 8px;
}
/* Metrics Strip (3 Cards) */
.metric-strip {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 8px;
margin-bottom: 14px;
}
.metric-card {
background: #fff;
border-radius: 16px;
padding: 12px 10px;
text-align: center;
border: 1px solid var(--line);
box-shadow: var(--shadow-card);
}
.metric-label {
display: flex;
align-items: center;
justify-content: center;
gap: 3px;
font-size: 11px;
color: var(--text-muted);
margin-bottom: 4px;
}
.metric-card strong {
display: block;
font-size: 19px;
font-weight: 800;
color: var(--text-main);
letter-spacing: -0.02em;
}
.metric-card em {
font-size: 11px;
font-style: normal;
font-weight: 500;
color: var(--text-sub);
margin-left: 2px;
}
.metric-desc {
font-size: 10px;
color: var(--accent-gold);
margin-top: 2px;
}
/* Actionable Plan Items */
.plan-item {
display: flex;
gap: 12px;
padding: 14px 0;
border-top: 1px solid var(--line);
}
.plan-item:first-of-type {
border-top: none;
padding-top: 2px;
}
.plan-item-icon {
width: 36px;
height: 36px;
border-radius: 12px;
background: var(--primary-subtle);
color: var(--primary);
display: grid;
place-items: center;
font-size: 16px;
flex-shrink: 0;
}
.plan-item-content {
flex: 1;
}
.plan-item-header {
display: flex;
align-items: baseline;
justify-content: space-between;
margin-bottom: 4px;
}
.plan-item-header strong {
font-size: 14px;
font-weight: 700;
color: var(--text-main);
}
.plan-item-target {
font-size: 11px;
color: var(--accent-gold);
font-weight: 600;
background: var(--accent-light);
padding: 2px 7px;
border-radius: 6px;
}
.plan-item-advice {
font-size: 12px;
color: var(--text-sub);
line-height: 1.6;
}
/* Smart Space / IoT Card */
.smart-space-card {
background: linear-gradient(135deg, #ffffff 0%, #f7faf9 100%);
border: 1px solid rgba(12, 77, 63, 0.12);
}
.smart-scene-box {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 14px;
background: #fff;
border: 1px solid var(--line);
border-radius: 14px;
}
.scene-icon-title {
display: flex;
align-items: center;
gap: 10px;
}
.scene-icon {
width: 34px;
height: 34px;
border-radius: 10px;
background: #f2f5f4;
color: var(--primary);
display: grid;
place-items: center;
font-size: 16px;
}
.scene-text strong {
display: block;
font-size: 13px;
font-weight: 700;
color: var(--text-main);
}
.scene-text p {
font-size: 11px;
color: var(--text-muted);
margin-top: 2px;
}
.smart-badge {
font-size: 10px;
padding: 4px 8px;
border-radius: 8px;
background: #f1efea;
color: var(--text-sub);
font-weight: 600;
}
.medical-disclaimer {
text-align: center;
font-size: 11px;
color: var(--text-muted);
line-height: 1.6;
margin: 18px 8px 10px;
}
/* Mobile Touch Optimization */
@media (max-width: 360px) {
.module-grid {
gap: 6px;
}
.module-card {
padding: 10px 6px;
}
.module-card strong {
font-size: 12px;
}
.metric-card strong {
font-size: 16px;
}
}