1255 lines
29 KiB
Plaintext
1255 lines
29 KiB
Plaintext
/**
|
|
* 这里是uni-app内置的常用样式变量
|
|
*
|
|
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
|
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
|
*
|
|
*/
|
|
/**
|
|
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
|
*
|
|
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
|
*/
|
|
/* 颜色变量 */
|
|
/* 行为相关颜色 */
|
|
/* 文字基本颜色 */
|
|
/* 背景颜色 */
|
|
/* 边框颜色 */
|
|
/* 尺寸变量 */
|
|
/* 文字尺寸 */
|
|
/* 图片尺寸 */
|
|
/* Border Radius */
|
|
/* 水平间距 */
|
|
/* 垂直间距 */
|
|
/* 透明度 */
|
|
/* 文章场景相关 */
|
|
.page-gate-loading.data-v-b5693e32 {
|
|
min-height: 60vh;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 80rpx 40rpx;
|
|
}
|
|
.page-gate-loading-text.data-v-b5693e32 {
|
|
font-size: 28rpx;
|
|
color: #6c7a71;
|
|
}
|
|
/**
|
|
* 这里是uni-app内置的常用样式变量
|
|
*
|
|
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
|
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
|
*
|
|
*/
|
|
/**
|
|
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
|
*
|
|
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
|
*/
|
|
/* 颜色变量 */
|
|
/* 行为相关颜色 */
|
|
/* 文字基本颜色 */
|
|
/* 背景颜色 */
|
|
/* 边框颜色 */
|
|
/* 尺寸变量 */
|
|
/* 文字尺寸 */
|
|
/* 图片尺寸 */
|
|
/* Border Radius */
|
|
/* 水平间距 */
|
|
/* 垂直间距 */
|
|
/* 透明度 */
|
|
/* 文章场景相关 */
|
|
/**
|
|
* Google Stitch MCP · VitalMint Health
|
|
* 设计 token 与 stitch-weekly.html tailwind.config 一一对应
|
|
*/
|
|
.stitch-vitalmint {
|
|
--primary: #006c49;
|
|
--on-primary: #ffffff;
|
|
--on-primary-fixed-variant: #005236;
|
|
--primary-container: #10b981;
|
|
--on-primary-container: #00422b;
|
|
--inverse-primary: #4edea3;
|
|
--surface: #f4fbf4;
|
|
--on-surface: #161d19;
|
|
--on-surface-variant: #3c4a42;
|
|
--surface-container-lowest: #ffffff;
|
|
--surface-container-low: #eef6ee;
|
|
--surface-container: #e8f0e9;
|
|
--surface-container-high: #e3eae3;
|
|
--surface-container-highest: #dde4dd;
|
|
--surface-variant: #dde4dd;
|
|
--outline: #6c7a71;
|
|
--outline-variant: #bbcabf;
|
|
--error: #ba1a1a;
|
|
--on-error-container: #93000a;
|
|
--error-container: #ffdad6;
|
|
--tertiary: #a43a3a;
|
|
--tertiary-container: #fc7c78;
|
|
--on-tertiary: #ffffff;
|
|
--on-tertiary-container: #711419;
|
|
--st-container-margin: 40rpx;
|
|
--st-section-gap: 64rpx;
|
|
--st-card-padding: 40rpx;
|
|
--st-stack-gap: 32rpx;
|
|
--st-inline-gap: 24rpx;
|
|
--st-radius-2xl: 48rpx;
|
|
--st-radius-xl: 24rpx;
|
|
--st-radius-lg: 16rpx;
|
|
--st-shadow-ambient: 0 20rpx 60rpx -20rpx rgba(0, 108, 73, 0.08);
|
|
}
|
|
.weekly-page.stitch-vitalmint {
|
|
min-height: 100vh;
|
|
background: var(--surface);
|
|
color: var(--on-surface);
|
|
padding-bottom: calc(200rpx + env(safe-area-inset-bottom));
|
|
}
|
|
/**
|
|
* weekly.vue — 与 code.html (Stitch Modern WeChat UI) 1:1
|
|
*/
|
|
.weekly-page {
|
|
--st-shadow-ambient: 0 24rpx 60rpx -20rpx rgba(0, 108, 73, 0.08), 0 8rpx 20rpx -8rpx rgba(0, 0, 0, 0.03);
|
|
--st-shadow-cta: 0 16rpx 32rpx rgba(0, 108, 73, 0.2);
|
|
--st-shadow-float: 0 16rpx 64rpx rgba(0, 108, 73, 0.15);
|
|
--tab-dock-full-offset: calc(220rpx + env(safe-area-inset-bottom));
|
|
padding-bottom: var(--tab-dock-full-offset);
|
|
}
|
|
/* ===== Header ===== */
|
|
.weekly-page .st-header {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
padding-left: var(--st-container-margin);
|
|
padding-right: var(--st-container-margin);
|
|
padding-bottom: 32rpx;
|
|
/* padding-top / padding-right 由 initHeaderSafeArea 动态设置 */
|
|
background: var(--surface);
|
|
}
|
|
.weekly-page .st-header-text {
|
|
flex: 1;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
}
|
|
.weekly-page .st-header-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--st-inline-gap);
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
.weekly-page .st-avatar {
|
|
width: 80rpx;
|
|
height: 80rpx;
|
|
border-radius: 50%;
|
|
background: var(--primary-container);
|
|
border: 4rpx solid var(--surface-container-lowest);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
}
|
|
.weekly-page .st-greet {
|
|
display: block;
|
|
font-size: 40rpx;
|
|
font-weight: 700;
|
|
line-height: 1.27;
|
|
color: var(--on-surface);
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
.weekly-page .st-status {
|
|
display: block;
|
|
margin-top: 4rpx;
|
|
font-size: 24rpx;
|
|
font-weight: 600;
|
|
color: var(--on-surface-variant);
|
|
opacity: 0.8;
|
|
}
|
|
.weekly-page .st-voice-round {
|
|
width: 80rpx;
|
|
height: 80rpx;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
}
|
|
.weekly-page .st-voice-round.disabled {
|
|
opacity: 0.45;
|
|
}
|
|
.weekly-page .st-card-scroll {
|
|
margin: 0 var(--st-container-margin) 8rpx;
|
|
white-space: nowrap;
|
|
}
|
|
.weekly-page .st-card-row {
|
|
display: inline-flex;
|
|
gap: 16rpx;
|
|
}
|
|
.weekly-page .st-card-chip {
|
|
padding: 12rpx 28rpx;
|
|
border-radius: 999rpx;
|
|
font-size: 26rpx;
|
|
font-weight: 600;
|
|
color: var(--on-surface-variant);
|
|
background: var(--surface-container-lowest);
|
|
border: 1rpx solid var(--outline-variant);
|
|
}
|
|
.weekly-page .st-card-chip.active {
|
|
background: var(--primary);
|
|
border-color: var(--primary);
|
|
color: var(--on-primary);
|
|
}
|
|
/* ===== 居家训练(DEV 内嵌) ===== */
|
|
.weekly-page .st-training-section {
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
}
|
|
.weekly-page .st-training-section .dev-entry-inline--weekly {
|
|
overflow: hidden;
|
|
}
|
|
.weekly-page .st-training-section .inline-scroll {
|
|
margin-left: -4rpx;
|
|
margin-right: -4rpx;
|
|
width: calc(100% + 8rpx);
|
|
}
|
|
.weekly-page .st-training-section .inline-card:first-child {
|
|
border-color: rgba(0, 108, 73, 0.22);
|
|
background: linear-gradient(160deg, rgba(0, 108, 73, 0.08) 0%, #f4f7f5 55%);
|
|
}
|
|
/* ===== Main ===== */
|
|
.weekly-page .st-main {
|
|
padding: 0 var(--st-container-margin) 32rpx;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 48rpx;
|
|
margin-top: 16rpx;
|
|
}
|
|
.weekly-page .st-daily-context-error {
|
|
padding: 24rpx 28rpx;
|
|
border-radius: 24rpx;
|
|
background: #fef2f2;
|
|
border: 1rpx solid rgba(220, 38, 38, 0.22);
|
|
box-sizing: border-box;
|
|
}
|
|
.weekly-page .st-daily-context-error-text {
|
|
font-size: 28rpx;
|
|
font-weight: 600;
|
|
color: #991b1b;
|
|
line-height: 1.5;
|
|
}
|
|
.weekly-page .st-main-spacer {
|
|
height: 32rpx;
|
|
}
|
|
/* CTA — rounded-2xl h-14 */
|
|
.weekly-page .st-cta {
|
|
width: 100%;
|
|
height: 112rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 16rpx;
|
|
border-radius: var(--st-radius-2xl);
|
|
background: var(--primary);
|
|
color: var(--on-primary);
|
|
font-size: 32rpx;
|
|
font-weight: 700;
|
|
box-shadow: var(--st-shadow-cta);
|
|
}
|
|
.weekly-page .st-cta:active {
|
|
transform: scale(0.98);
|
|
}
|
|
/* 游戏入口 */
|
|
.weekly-page .st-game-entry {
|
|
margin-top: 24rpx;
|
|
padding: 28rpx 32rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 24rpx;
|
|
border-radius: var(--st-radius-2xl);
|
|
background: var(--surface-container-lowest);
|
|
border: 1rpx solid rgba(0, 108, 73, 0.14);
|
|
box-shadow: var(--st-shadow-ambient);
|
|
box-sizing: border-box;
|
|
}
|
|
.weekly-page .st-game-entry:active {
|
|
transform: scale(0.98);
|
|
opacity: 0.92;
|
|
}
|
|
.weekly-page .st-game-entry-icon {
|
|
width: 88rpx;
|
|
height: 88rpx;
|
|
border-radius: 24rpx;
|
|
background: rgba(0, 108, 73, 0.1);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
}
|
|
.weekly-page .st-game-entry-body {
|
|
flex: 1;
|
|
min-width: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6rpx;
|
|
}
|
|
.weekly-page .st-game-entry-title {
|
|
font-size: 32rpx;
|
|
font-weight: 700;
|
|
color: var(--on-surface);
|
|
line-height: 1.25;
|
|
}
|
|
.weekly-page .st-game-entry-sub {
|
|
font-size: 24rpx;
|
|
font-weight: 500;
|
|
color: var(--on-surface-variant, #64748b);
|
|
line-height: 1.35;
|
|
}
|
|
/* ===== Chart card — rounded-3xl ===== */
|
|
.weekly-page .st-chart-card {
|
|
padding: 40rpx 10rpx 40rpx 10rpx;
|
|
border-radius: 48rpx;
|
|
background: var(--surface-container-lowest);
|
|
border: 1rpx solid rgba(221, 228, 221, 0.3);
|
|
box-shadow: var(--st-shadow-ambient);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0;
|
|
overflow: hidden;
|
|
}
|
|
.weekly-page .st-chart-head {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 12rpx;
|
|
gap: 16rpx;
|
|
}
|
|
.weekly-page .st-chart-title {
|
|
display: block;
|
|
font-size: 30rpx;
|
|
font-weight: 700;
|
|
color: var(--on-surface);
|
|
}
|
|
.weekly-page .st-chart-sub {
|
|
display: block;
|
|
margin-top: 4rpx;
|
|
font-size: 22rpx;
|
|
font-weight: 600;
|
|
color: var(--on-surface-variant);
|
|
}
|
|
.weekly-page .st-chart-more {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4rpx;
|
|
margin-top: 6rpx;
|
|
}
|
|
.weekly-page .st-chart-more-text {
|
|
font-size: 22rpx;
|
|
font-weight: 600;
|
|
color: var(--primary);
|
|
}
|
|
.weekly-page .st-chart-more:active {
|
|
opacity: 0.75;
|
|
}
|
|
.weekly-page .st-chart-legend {
|
|
display: flex;
|
|
gap: var(--st-inline-gap);
|
|
}
|
|
.weekly-page .st-legend-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8rpx;
|
|
font-size: 24rpx;
|
|
font-weight: 600;
|
|
color: var(--on-surface-variant);
|
|
}
|
|
.weekly-page .st-legend-item.inactive {
|
|
opacity: 0.4;
|
|
}
|
|
.weekly-page .st-dot {
|
|
width: 16rpx;
|
|
height: 16rpx;
|
|
border-radius: 50%;
|
|
}
|
|
.weekly-page .st-dot-fasting {
|
|
background: var(--primary);
|
|
}
|
|
.weekly-page .st-dot-post {
|
|
background: var(--tertiary);
|
|
}
|
|
.weekly-page .st-chart-summary {
|
|
display: flex;
|
|
padding: 32rpx;
|
|
margin-bottom: 48rpx;
|
|
border-radius: var(--st-radius-xl);
|
|
background: var(--surface-container-low);
|
|
}
|
|
.weekly-page .st-chart-summary-item {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
border-right: 1rpx solid var(--surface-container-highest);
|
|
}
|
|
.weekly-page .st-chart-summary-item:last-child {
|
|
border-right: none;
|
|
}
|
|
.weekly-page .st-chart-summary-num {
|
|
font-size: 40rpx;
|
|
font-weight: 700;
|
|
color: var(--on-surface);
|
|
}
|
|
.weekly-page .st-chart-summary-num.is-high {
|
|
color: var(--tertiary);
|
|
}
|
|
.weekly-page .st-chart-summary-num.is-good {
|
|
color: var(--primary);
|
|
}
|
|
.weekly-page .st-chart-summary-label {
|
|
margin-top: 8rpx;
|
|
font-size: 24rpx;
|
|
font-weight: 600;
|
|
color: var(--on-surface-variant);
|
|
}
|
|
.weekly-page .st-chart-foot {
|
|
padding: 20rpx 0 20rpx;
|
|
}
|
|
.weekly-page .st-chart-mock-hint {
|
|
display: block;
|
|
margin: 0;
|
|
font-size: 30rpx;
|
|
font-weight: 600;
|
|
color: var(--outline);
|
|
line-height: 1.35;
|
|
text-align: center;
|
|
}
|
|
.weekly-page .st-chart-area {
|
|
position: relative;
|
|
height: 360rpx;
|
|
overflow: hidden;
|
|
cursor: pointer;
|
|
}
|
|
.weekly-page .st-chart-area:active {
|
|
opacity: 0.92;
|
|
}
|
|
.weekly-page .st-chart-canvas {
|
|
width: 100%;
|
|
height: 360rpx;
|
|
display: block;
|
|
}
|
|
/* 识糖入口嵌在趋势卡内:轻量分隔,避免大块留白 */
|
|
.weekly-page .st-chart-card .st-game-entry-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12rpx;
|
|
margin: 12rpx 20rpx 0;
|
|
}
|
|
.weekly-page .st-chart-card .st-game-entry--in-card {
|
|
margin-top: 0;
|
|
padding: 16rpx 20rpx;
|
|
gap: 16rpx;
|
|
border-radius: 24rpx;
|
|
background: var(--surface-container-low);
|
|
border: 1rpx solid rgba(0, 108, 73, 0.08);
|
|
box-shadow: none;
|
|
}
|
|
.weekly-page .st-chart-card .st-game-entry--in-card .st-game-entry-icon {
|
|
width: 64rpx;
|
|
height: 64rpx;
|
|
border-radius: 16rpx;
|
|
}
|
|
.weekly-page .st-chart-card .st-game-entry--in-card .st-game-entry-title {
|
|
font-size: 28rpx;
|
|
}
|
|
.weekly-page .st-chart-card .st-game-entry--in-card .st-game-entry-sub {
|
|
font-size: 22rpx;
|
|
}
|
|
.weekly-page .st-chart-empty,
|
|
.weekly-page .st-chart-placeholder {
|
|
position: absolute;
|
|
inset: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 26rpx;
|
|
color: var(--outline);
|
|
}
|
|
/* ===== 最新测量 ===== */
|
|
.weekly-page .st-latest-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 32rpx;
|
|
}
|
|
.weekly-page .st-latest-hero {
|
|
position: relative;
|
|
overflow: hidden;
|
|
min-height: 320rpx;
|
|
padding: 48rpx 40rpx;
|
|
border-radius: 48rpx;
|
|
background: var(--surface-container-lowest);
|
|
box-shadow: var(--st-shadow-ambient);
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
text-align: center;
|
|
}
|
|
.weekly-page .st-latest-hero.is-high {
|
|
background: var(--error-container);
|
|
color: var(--on-error-container);
|
|
}
|
|
.weekly-page .st-latest-hero-pattern {
|
|
position: absolute;
|
|
inset: 0;
|
|
opacity: 0.1;
|
|
background-image: radial-gradient(circle at 4rpx 4rpx, currentColor 2rpx, transparent 0);
|
|
background-size: 32rpx 32rpx;
|
|
pointer-events: none;
|
|
}
|
|
.weekly-page .st-latest-label {
|
|
position: relative;
|
|
z-index: 1;
|
|
font-size: 24rpx;
|
|
font-weight: 600;
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
opacity: 0.9;
|
|
margin-bottom: 8rpx;
|
|
}
|
|
.weekly-page .st-latest-value-row {
|
|
position: relative;
|
|
z-index: 1;
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 8rpx;
|
|
}
|
|
.weekly-page .st-latest-value {
|
|
font-size: 112rpx;
|
|
font-weight: 800;
|
|
line-height: 1;
|
|
letter-spacing: -0.02em;
|
|
}
|
|
.weekly-page .st-latest-hero.is-high .st-latest-value,
|
|
.weekly-page .st-latest-hero.is-high .st-latest-unit {
|
|
color: var(--on-error-container);
|
|
}
|
|
.weekly-page .st-latest-unit {
|
|
font-size: 32rpx;
|
|
font-weight: 500;
|
|
opacity: 0.8;
|
|
}
|
|
.weekly-page .st-latest-flag {
|
|
position: relative;
|
|
z-index: 1;
|
|
margin-top: 24rpx;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 12rpx;
|
|
padding: 8rpx 24rpx;
|
|
border-radius: 999rpx;
|
|
background: rgba(255, 255, 255, 0.3);
|
|
font-size: 24rpx;
|
|
font-weight: 700;
|
|
}
|
|
.weekly-page .st-summary-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 24rpx;
|
|
}
|
|
.weekly-page .st-summary-card {
|
|
padding: 32rpx;
|
|
border-radius: var(--st-radius-2xl);
|
|
background: var(--surface-container-lowest);
|
|
border: 1rpx solid rgba(221, 228, 221, 0.5);
|
|
box-shadow: var(--st-shadow-ambient);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8rpx;
|
|
}
|
|
.weekly-page .st-summary-label {
|
|
font-size: 24rpx;
|
|
font-weight: 600;
|
|
color: var(--on-surface-variant);
|
|
}
|
|
.weekly-page .st-summary-value {
|
|
font-size: 48rpx;
|
|
font-weight: 700;
|
|
color: var(--on-surface);
|
|
}
|
|
.weekly-page .st-summary-value.is-high {
|
|
color: var(--tertiary);
|
|
}
|
|
.weekly-page .st-summary-tag {
|
|
align-self: flex-start;
|
|
padding: 4rpx 16rpx;
|
|
border-radius: 8rpx;
|
|
font-size: 20rpx;
|
|
font-weight: 600;
|
|
color: var(--tertiary);
|
|
background: rgba(255, 218, 214, 0.5);
|
|
}
|
|
/* ===== AI 饮食 ===== */
|
|
.weekly-page .st-ai-section {
|
|
position: relative;
|
|
overflow: hidden;
|
|
padding: 40rpx;
|
|
border-radius: 48rpx;
|
|
background: linear-gradient(135deg, rgba(0, 108, 73, 0.1) 0%, rgba(0, 108, 73, 0.05) 100%);
|
|
border: 1rpx solid rgba(0, 108, 73, 0.1);
|
|
}
|
|
.weekly-page .st-ai-deco {
|
|
position: absolute;
|
|
width: 256rpx;
|
|
height: 256rpx;
|
|
top: -64rpx;
|
|
right: -64rpx;
|
|
border-radius: 50%;
|
|
background: rgba(78, 222, 163, 0.2);
|
|
filter: blur(40rpx);
|
|
pointer-events: none;
|
|
}
|
|
.weekly-page .st-ai-head {
|
|
position: relative;
|
|
z-index: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 16rpx;
|
|
}
|
|
.weekly-page .st-ai-head-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16rpx;
|
|
}
|
|
.weekly-page .st-ai-icon {
|
|
width: 64rpx;
|
|
height: 64rpx;
|
|
border-radius: 50%;
|
|
background: var(--primary);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
.weekly-page .st-ai-icon.thinking {
|
|
animation: st-pulse 1.2s ease-in-out infinite;
|
|
}
|
|
@keyframes st-pulse {
|
|
50% {
|
|
opacity: 0.65;
|
|
}
|
|
}
|
|
.weekly-page .st-ai-title {
|
|
font-size: 40rpx;
|
|
font-weight: 700;
|
|
color: var(--on-surface);
|
|
}
|
|
.weekly-page .st-ai-refresh {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8rpx;
|
|
padding: 12rpx 24rpx;
|
|
border-radius: 999rpx;
|
|
background: rgba(255, 255, 255, 0.5);
|
|
font-size: 24rpx;
|
|
font-weight: 600;
|
|
color: var(--primary);
|
|
}
|
|
.weekly-page .st-ai-refresh.disabled {
|
|
opacity: 0.5;
|
|
}
|
|
.weekly-page .st-ai-sub {
|
|
position: relative;
|
|
z-index: 1;
|
|
display: block;
|
|
margin-bottom: 32rpx;
|
|
font-size: 28rpx;
|
|
line-height: 1.43;
|
|
color: var(--on-surface-variant);
|
|
}
|
|
.weekly-page .st-meal-list {
|
|
position: relative;
|
|
z-index: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 24rpx;
|
|
}
|
|
.weekly-page .st-meal-glass {
|
|
padding: 32rpx;
|
|
border-radius: var(--st-radius-2xl);
|
|
background: rgba(255, 255, 255, 0.8);
|
|
border: 1rpx solid #ffffff;
|
|
box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.04);
|
|
}
|
|
.weekly-page .st-meal-glass--drinks {
|
|
background: rgba(224, 242, 254, 0.65);
|
|
border-color: rgba(14, 165, 233, 0.15);
|
|
}
|
|
.weekly-page .st-meal-head {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16rpx;
|
|
margin-bottom: 16rpx;
|
|
}
|
|
.weekly-page .st-meal-label {
|
|
font-size: 28rpx;
|
|
font-weight: 700;
|
|
color: var(--on-surface);
|
|
}
|
|
.weekly-page .st-meal-text {
|
|
font-size: 28rpx;
|
|
line-height: 1.43;
|
|
color: var(--on-surface-variant);
|
|
}
|
|
.weekly-page .st-skeleton-line {
|
|
height: 28rpx;
|
|
margin-bottom: 16rpx;
|
|
border-radius: 8rpx;
|
|
background: rgba(255, 255, 255, 0.5);
|
|
}
|
|
.weekly-page .st-skeleton-hint {
|
|
font-size: 26rpx;
|
|
color: var(--outline);
|
|
text-align: center;
|
|
}
|
|
/* ===== 底部浮动输入 ===== */
|
|
.weekly-page .st-float-ask {
|
|
position: fixed;
|
|
left: var(--st-container-margin);
|
|
right: var(--st-container-margin);
|
|
bottom: var(--tab-dock-full-offset);
|
|
z-index: 210;
|
|
}
|
|
.weekly-page .st-float-close {
|
|
position: absolute;
|
|
top: -18rpx;
|
|
right: -6rpx;
|
|
width: 44rpx;
|
|
height: 44rpx;
|
|
border-radius: 50%;
|
|
background: rgba(0, 0, 0, 0.45);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 2;
|
|
}
|
|
.weekly-page .st-float-close-icon {
|
|
color: #ffffff;
|
|
font-size: 30rpx;
|
|
line-height: 1;
|
|
}
|
|
.weekly-page .st-float-reopen {
|
|
position: fixed;
|
|
right: var(--st-container-margin);
|
|
bottom: var(--tab-dock-full-offset);
|
|
width: 88rpx;
|
|
height: 88rpx;
|
|
border-radius: 50%;
|
|
background: linear-gradient(180deg, #2d7340 0%, #006c49 100%);
|
|
box-shadow: var(--st-shadow-float);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 210;
|
|
}
|
|
.weekly-page .st-float-inner {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16rpx;
|
|
padding: 16rpx 16rpx 16rpx 28rpx;
|
|
border-radius: 999rpx;
|
|
background: rgba(255, 255, 255, 0.9);
|
|
-webkit-backdrop-filter: blur(20rpx);
|
|
backdrop-filter: blur(20rpx);
|
|
border: 1rpx solid rgba(0, 108, 73, 0.1);
|
|
box-shadow: var(--st-shadow-float);
|
|
transition: border-radius 0.22s ease, padding 0.22s ease, border-color 0.22s ease;
|
|
}
|
|
/* 聚焦/有内容时展开:底部对齐让输入框向上增高,圆角收敛为圆角矩形 */
|
|
.weekly-page .st-float-inner.is-expanded {
|
|
align-items: flex-end;
|
|
border-radius: 32rpx;
|
|
padding: 18rpx 16rpx 18rpx 32rpx;
|
|
border-color: rgba(0, 108, 73, 0.28);
|
|
}
|
|
.weekly-page .st-float-icon {
|
|
width: 64rpx;
|
|
height: 64rpx;
|
|
border-radius: 50%;
|
|
background: rgba(0, 108, 73, 0.1);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
}
|
|
.weekly-page .st-float-input {
|
|
flex: 1;
|
|
min-width: 0;
|
|
width: 100%;
|
|
min-height: 64rpx;
|
|
max-height: 240rpx;
|
|
font-size: 28rpx;
|
|
line-height: 40rpx;
|
|
color: var(--on-surface);
|
|
background: transparent;
|
|
padding: 12rpx 0;
|
|
box-sizing: border-box;
|
|
transition: min-height 0.2s ease;
|
|
}
|
|
/* 聚焦时输入框变大;内容超长时由 auto-height 继续向上增高,超过上限可滚动 */
|
|
.weekly-page .st-float-inner.is-expanded .st-float-input {
|
|
min-height: 104rpx;
|
|
}
|
|
.weekly-page .st-float-placeholder {
|
|
color: rgba(60, 74, 66, 0.6);
|
|
font-size: 26rpx;
|
|
line-height: 40rpx;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
.weekly-page .st-float-mic {
|
|
width: 72rpx;
|
|
height: 72rpx;
|
|
border-radius: 50%;
|
|
background: rgba(0, 108, 73, 0.1);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
transition: background 0.2s ease, transform 0.15s ease;
|
|
}
|
|
.weekly-page .st-float-mic.listening {
|
|
background: var(--primary);
|
|
animation: st-float-mic-pulse 1.2s ease-in-out infinite;
|
|
}
|
|
.weekly-page .st-float-mic.disabled {
|
|
opacity: 0.45;
|
|
pointer-events: none;
|
|
}
|
|
.weekly-page .st-float-mic:active {
|
|
transform: scale(0.94);
|
|
}
|
|
.weekly-page .st-float-hold-hint {
|
|
margin-top: 12rpx;
|
|
text-align: center;
|
|
font-size: 24rpx;
|
|
color: var(--primary);
|
|
line-height: 1.4;
|
|
}
|
|
.weekly-page .st-voice-overlay {
|
|
position: fixed;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
z-index: 3000;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: rgba(0, 0, 0, 0.32);
|
|
pointer-events: none;
|
|
}
|
|
.weekly-page .st-voice-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 20rpx;
|
|
padding: 56rpx 64rpx;
|
|
border-radius: 32rpx;
|
|
background: rgba(20, 24, 22, 0.86);
|
|
box-shadow: 0 16rpx 48rpx rgba(0, 0, 0, 0.35);
|
|
}
|
|
.weekly-page .st-voice-icon {
|
|
width: 120rpx;
|
|
height: 120rpx;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: linear-gradient(180deg, #2d7340 0%, #006c49 100%);
|
|
}
|
|
.weekly-page .st-voice-icon.active {
|
|
animation: st-voice-pulse 1.1s ease-in-out infinite;
|
|
}
|
|
@keyframes st-voice-pulse {
|
|
0%, 100% {
|
|
box-shadow: 0 0 0 0 rgba(0, 108, 73, 0.45);
|
|
}
|
|
50% {
|
|
box-shadow: 0 0 0 20rpx rgba(0, 108, 73, 0);
|
|
}
|
|
}
|
|
.weekly-page .st-voice-title {
|
|
font-size: 32rpx;
|
|
font-weight: 700;
|
|
color: #ffffff;
|
|
line-height: 1.3;
|
|
}
|
|
.weekly-page .st-voice-sub {
|
|
font-size: 24rpx;
|
|
color: rgba(255, 255, 255, 0.7);
|
|
line-height: 1.3;
|
|
}
|
|
@keyframes st-float-mic-pulse {
|
|
0%, 100% {
|
|
box-shadow: 0 0 0 0 rgba(0, 108, 73, 0.35);
|
|
}
|
|
50% {
|
|
box-shadow: 0 0 0 12rpx rgba(0, 108, 73, 0);
|
|
}
|
|
}
|
|
.weekly-page .st-float-send {
|
|
width: 80rpx;
|
|
height: 80rpx;
|
|
border-radius: 50%;
|
|
background: var(--primary);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
box-shadow: 0 4rpx 12rpx rgba(0, 108, 73, 0.2);
|
|
line-height: 0;
|
|
overflow: hidden;
|
|
}
|
|
.weekly-page .st-float-send.disabled {
|
|
opacity: 0.55;
|
|
}
|
|
.weekly-page .st-float-send:active {
|
|
transform: scale(0.95);
|
|
}
|
|
.weekly-page .st-float-result {
|
|
margin-top: 16rpx;
|
|
padding: 24rpx 32rpx;
|
|
border-radius: var(--st-radius-xl);
|
|
background: rgba(255, 255, 255, 0.95);
|
|
border: 1rpx solid var(--outline-variant);
|
|
box-shadow: var(--st-shadow-ambient);
|
|
}
|
|
.weekly-page .st-float-badge {
|
|
display: inline-block;
|
|
margin-bottom: 8rpx;
|
|
padding: 4rpx 12rpx;
|
|
border-radius: 8rpx;
|
|
font-size: 22rpx;
|
|
font-weight: 700;
|
|
color: var(--primary);
|
|
background: rgba(0, 108, 73, 0.1);
|
|
}
|
|
.weekly-page .st-float-advice {
|
|
font-size: 28rpx;
|
|
line-height: 1.5;
|
|
color: var(--on-surface-variant);
|
|
}
|
|
.weekly-page .ai-stream-cursor {
|
|
animation: st-blink 0.8s step-end infinite;
|
|
}
|
|
@keyframes st-blink {
|
|
50% {
|
|
opacity: 0;
|
|
}
|
|
}
|
|
.weekly-page .chart-tip {
|
|
position: absolute;
|
|
z-index: 10;
|
|
padding: 12rpx 16rpx;
|
|
border-radius: 12rpx;
|
|
background: rgba(22, 29, 25, 0.88);
|
|
color: #fff;
|
|
font-size: 22rpx;
|
|
pointer-events: none;
|
|
}
|
|
.weekly-page .chart-tip-date {
|
|
font-weight: 700;
|
|
margin-bottom: 8rpx;
|
|
}
|
|
.weekly-page .chart-tip-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8rpx;
|
|
margin-top: 4rpx;
|
|
}
|
|
/* weekly.vue 录入弹窗 — 沿用 MCP 主色 */
|
|
.weekly-page .input-modal-mask {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(15, 23, 42, 0.45);
|
|
-webkit-backdrop-filter: blur(12px);
|
|
backdrop-filter: blur(12px);
|
|
z-index: 2000;
|
|
display: flex;
|
|
align-items: flex-end;
|
|
justify-content: center;
|
|
animation: input-modal-mask-in 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
|
|
}
|
|
.weekly-page .input-modal {
|
|
width: 100%;
|
|
max-width: 750rpx;
|
|
background: var(--surface-container-lowest);
|
|
border-radius: 36rpx 36rpx 0 0;
|
|
padding: 16rpx 0 calc(20rpx + env(safe-area-inset-bottom));
|
|
box-shadow: 0 -12rpx 36rpx rgba(15, 23, 42, 0.12);
|
|
max-height: 88vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
animation: input-modal-rise 0.46s cubic-bezier(0.22, 1, 0.36, 1) both;
|
|
}
|
|
@keyframes input-modal-mask-in {
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
@keyframes input-modal-rise {
|
|
from {
|
|
transform: translate3d(0, 100%, 0);
|
|
opacity: 0.96;
|
|
}
|
|
to {
|
|
transform: translate3d(0, 0, 0);
|
|
opacity: 1;
|
|
}
|
|
}
|
|
@keyframes input-modal-content-in {
|
|
from {
|
|
opacity: 0;
|
|
transform: translate3d(0, 24rpx, 0);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translate3d(0, 0, 0);
|
|
}
|
|
}
|
|
.weekly-page .input-modal-grip {
|
|
width: 80rpx;
|
|
height: 6rpx;
|
|
border-radius: 999rpx;
|
|
background: var(--surface-container-highest);
|
|
margin: 0 auto 8rpx;
|
|
}
|
|
.weekly-page .input-modal-head {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 12rpx 32rpx 16rpx;
|
|
border-bottom: 1rpx solid var(--surface-container-low);
|
|
}
|
|
.weekly-page .input-modal-title {
|
|
font-size: 40rpx;
|
|
font-weight: 800;
|
|
color: var(--on-surface);
|
|
}
|
|
.weekly-page .input-modal-sub {
|
|
font-size: 26rpx;
|
|
color: var(--on-surface-variant);
|
|
margin-top: 4rpx;
|
|
}
|
|
.weekly-page .input-modal-close {
|
|
width: 80rpx;
|
|
height: 80rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 999rpx;
|
|
background: var(--surface-container-low);
|
|
}
|
|
.weekly-page .input-modal-close-icon {
|
|
font-size: 42rpx;
|
|
color: var(--outline);
|
|
line-height: 1;
|
|
font-weight: 700;
|
|
}
|
|
.weekly-page .phone-gate-body {
|
|
padding: 32rpx;
|
|
}
|
|
.weekly-page .phone-gate-error {
|
|
margin-bottom: 20rpx;
|
|
padding: 20rpx 22rpx;
|
|
border-radius: 16rpx;
|
|
background: #fef2f2;
|
|
border: 1rpx solid rgba(220, 38, 38, 0.2);
|
|
box-sizing: border-box;
|
|
}
|
|
.weekly-page .phone-gate-error text {
|
|
font-size: 26rpx;
|
|
font-weight: 600;
|
|
color: #991b1b;
|
|
line-height: 1.45;
|
|
}
|
|
.weekly-page .phone-gate-tip {
|
|
display: block;
|
|
font-size: 28rpx;
|
|
color: var(--on-surface-variant);
|
|
line-height: 1.6;
|
|
margin-bottom: 24rpx;
|
|
}
|
|
.weekly-page .phone-gate-gender-label {
|
|
display: block;
|
|
font-size: 28rpx;
|
|
font-weight: 700;
|
|
color: var(--primary);
|
|
margin-bottom: 16rpx;
|
|
}
|
|
.weekly-page .phone-gate-gender-row {
|
|
display: flex;
|
|
gap: 20rpx;
|
|
margin-bottom: 32rpx;
|
|
}
|
|
.weekly-page .phone-gate-gender-opt {
|
|
flex: 1;
|
|
min-height: 88rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: var(--st-radius-xl);
|
|
background: var(--surface-container-lowest);
|
|
border: 2rpx solid var(--outline-variant);
|
|
color: var(--on-surface-variant);
|
|
font-size: 32rpx;
|
|
font-weight: 600;
|
|
}
|
|
.weekly-page .phone-gate-gender-opt.active {
|
|
border-color: var(--primary);
|
|
color: var(--primary);
|
|
}
|
|
.weekly-page .phone-gate-btn {
|
|
width: 100%;
|
|
min-height: 96rpx;
|
|
line-height: 96rpx;
|
|
border-radius: var(--st-radius-xl);
|
|
background: var(--primary);
|
|
color: var(--on-primary);
|
|
font-size: 32rpx;
|
|
font-weight: 700;
|
|
border: none;
|
|
}
|
|
.weekly-page .phone-gate-btn::after {
|
|
border: none;
|
|
}
|
|
.weekly-page .input-modal-loading {
|
|
min-height: 520rpx;
|
|
padding: 120rpx 0;
|
|
text-align: center;
|
|
color: var(--outline);
|
|
font-size: 30rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
.weekly-page .input-modal-body {
|
|
flex: 1;
|
|
min-height: 520rpx;
|
|
padding: 20rpx 32rpx 28rpx;
|
|
box-sizing: border-box;
|
|
width: 100%;
|
|
}
|
|
.weekly-page .input-modal-body-ready {
|
|
animation: input-modal-content-in 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
|
|
}
|
|
.weekly-page .input-modal-tip {
|
|
background: var(--surface-container-low);
|
|
border: 1rpx dashed var(--outline-variant);
|
|
border-radius: 14rpx;
|
|
padding: 18rpx 20rpx;
|
|
font-size: 26rpx;
|
|
color: var(--on-surface-variant);
|
|
line-height: 1.5;
|
|
margin-bottom: 22rpx;
|
|
}
|
|
.weekly-page .input-section-title {
|
|
font-size: 28rpx;
|
|
font-weight: 700;
|
|
color: var(--on-surface);
|
|
margin: 18rpx 0 14rpx;
|
|
}
|
|
.weekly-page .input-field {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 18rpx;
|
|
padding: 14rpx 0;
|
|
border-bottom: 1rpx solid var(--surface-container-low);
|
|
min-height: 88rpx;
|
|
}
|
|
.weekly-page .input-field-label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10rpx;
|
|
width: 180rpx;
|
|
font-size: 30rpx;
|
|
color: var(--on-surface);
|
|
font-weight: 700;
|
|
}
|
|
.weekly-page .input-field-dot {
|
|
width: 14rpx;
|
|
height: 14rpx;
|
|
border-radius: 999rpx;
|
|
}
|
|
.weekly-page .input-field-dot-fasting {
|
|
background: var(--primary);
|
|
}
|
|
.weekly-page .input-field-dot-postprandial {
|
|
background: var(--tertiary-container);
|
|
}
|
|
.weekly-page .input-field-dot-other {
|
|
background: var(--outline);
|
|
}
|
|
.weekly-page .input-field-input {
|
|
flex: 1;
|
|
min-width: 0;
|
|
background: var(--surface);
|
|
border-radius: 16rpx;
|
|
padding: 18rpx 20rpx;
|
|
min-height: 76rpx;
|
|
border: 2rpx solid transparent;
|
|
}
|
|
.weekly-page .input-field-input input {
|
|
width: 100%;
|
|
font-size: 34rpx;
|
|
color: var(--on-surface);
|
|
text-align: right;
|
|
font-weight: 600;
|
|
}
|
|
.weekly-page .input-placeholder {
|
|
color: var(--outline);
|
|
font-size: 28rpx;
|
|
}
|
|
.weekly-page .input-field-textarea textarea {
|
|
width: 100%;
|
|
min-height: 140rpx;
|
|
background: var(--surface);
|
|
border-radius: 14rpx;
|
|
padding: 20rpx 22rpx;
|
|
font-size: 30rpx;
|
|
color: var(--on-surface);
|
|
border: 2rpx solid var(--outline-variant);
|
|
}
|
|
.weekly-page .input-modal-actions {
|
|
display: flex;
|
|
gap: 18rpx;
|
|
padding: 20rpx 32rpx 0;
|
|
border-top: 1rpx solid var(--surface-container-low);
|
|
}
|
|
.weekly-page .input-modal-btn {
|
|
flex: 1;
|
|
height: 100rpx;
|
|
border-radius: var(--st-radius-xl);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 32rpx;
|
|
font-weight: 700;
|
|
}
|
|
.weekly-page .input-modal-btn.primary {
|
|
background: var(--primary);
|
|
color: var(--on-primary);
|
|
}
|
|
.weekly-page .input-modal-btn.danger {
|
|
flex: 0 0 180rpx;
|
|
background: var(--error-container);
|
|
color: var(--error);
|
|
}
|
|
.weekly-page .input-modal-btn.disabled {
|
|
opacity: 0.5;
|
|
pointer-events: none;
|
|
} |