Files
zyt/TongjiUniApp/unpackage/dist/dev/mp-weixin/training/pages/pilates-ring.wxss
T
2026-08-11 17:41:36 +08:00

1079 lines
25 KiB
Plaintext

/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
/* ============================================================
* 设计 token
* ============================================================ */
/* 主品牌色:紫(瑜伽环主题) */
/* 浅紫背景 */
/* 深紫文字 */
/* ============================================================
* 页面容器
* ============================================================ */
.page.data-v-6dc323a3 {
position: relative;
min-height: 100vh;
box-sizing: border-box;
padding: 24rpx 28rpx calc(48rpx + env(safe-area-inset-bottom));
background: linear-gradient(180deg, #f5f3ff 0%, #f8fafc 28%, #f8fafc 100%);
display: flex;
flex-direction: column;
align-items: stretch;
gap: 20rpx;
color: #0f172a;
overflow-x: hidden;
}
/* ============================================================
* 页头
* ============================================================ */
.page-header.data-v-6dc323a3 {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 16rpx;
flex-shrink: 0;
}
.header-main.data-v-6dc323a3 {
display: flex;
flex-direction: column;
gap: 6rpx;
flex: 1;
min-width: 0;
}
.page-title.data-v-6dc323a3 {
font-size: 40rpx;
font-weight: 800;
color: #0f172a;
letter-spacing: 1rpx;
line-height: 1.2;
}
.page-subtitle.data-v-6dc323a3 {
font-size: 24rpx;
color: #94a3b8;
line-height: 1.4;
}
.status-pill.data-v-6dc323a3 {
flex-shrink: 0;
display: flex;
align-items: center;
gap: 8rpx;
padding: 10rpx 18rpx;
border-radius: 999rpx;
background: rgba(255, 255, 255, 0.85);
border: 2rpx solid rgba(15, 23, 42, 0.06);
box-shadow: 0 4rpx 12rpx rgba(15, 23, 42, 0.04);
}
.status-pill.active.data-v-6dc323a3 {
background: #ede9fe;
border-color: rgba(139, 92, 246, 0.35);
}
.status-pill.active .status-dot.data-v-6dc323a3 {
background: #8b5cf6;
box-shadow: 0 0 0 4rpx rgba(139, 92, 246, 0.25);
animation: status-pulse-6dc323a3 1.2s ease-in-out infinite;
}
.status-pill.active .status-text.data-v-6dc323a3 {
color: #6d28d9;
}
.status-pill.paused.data-v-6dc323a3 {
background: #fef3c7;
border-color: rgba(245, 158, 11, 0.4);
}
.status-pill.paused .status-dot.data-v-6dc323a3 {
background: #f59e0b;
}
.status-pill.paused .status-text.data-v-6dc323a3 {
color: #92400e;
}
.status-dot.data-v-6dc323a3 {
width: 12rpx;
height: 12rpx;
border-radius: 50%;
background: #94a3b8;
}
.status-text.data-v-6dc323a3 {
font-size: 22rpx;
font-weight: 600;
color: #475569;
white-space: nowrap;
}
@keyframes status-pulse-6dc323a3 {
0%, 100% {
transform: scale(1);
opacity: 1;
}
50% {
transform: scale(1.15);
opacity: 0.85;
}
}
/* ============================================================
* 画布区域
* ============================================================ */
.stage-canvas-wrapper.data-v-6dc323a3 {
/* 用 calc 替代 100vw,避免右侧被裁切导致圆角不对称 */
width: calc(100% + 56rpx);
margin-left: -28rpx;
margin-right: -28rpx;
flex-shrink: 0;
height: 740rpx;
display: flex;
justify-content: center;
align-items: center;
position: relative;
border-radius: 0 0 40rpx 40rpx;
overflow: hidden;
box-sizing: border-box;
background: linear-gradient(180deg, #f5f3ff 0%, #f8fafc 55%, #f1f5f9 100%);
}
/* ============================================================
* 握力环舞台(由 grip-ring-canvas 组件内联而来)
* ============================================================ */
.ambient-glow.data-v-6dc323a3 {
position: absolute;
width: 1200rpx;
height: 1200rpx;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
border-radius: 50%;
background: radial-gradient(circle, rgba(221, 214, 254, 0.9) 0%, rgba(237, 233, 254, 0.5) 30%, rgba(241, 245, 249, 0.2) 55%, transparent 72%);
pointer-events: none;
}
.ring-container.data-v-6dc323a3 {
position: relative;
width: 720rpx;
height: 720rpx;
display: flex;
align-items: center;
justify-content: center;
z-index: 1;
}
.beat-halo.data-v-6dc323a3 {
position: absolute;
width: 720rpx;
height: 720rpx;
border-radius: 50%;
background: radial-gradient(circle, rgba(139, 92, 246, 0.45) 0%, rgba(167, 139, 250, 0.18) 38%, rgba(139, 92, 246, 0) 70%);
opacity: 0;
transition: opacity 0.3s ease;
will-change: transform, opacity;
}
.ring-container.playing .beat-halo.data-v-6dc323a3 {
opacity: 1;
animation: beat-pulse-6dc323a3 calc(var(--beat-duration, 750ms) * 2) ease-in-out infinite;
}
@keyframes beat-pulse-6dc323a3 {
0%, 100% {
transform: scale(1);
opacity: 0.4;
}
50% {
transform: scale(0.86);
opacity: 0.95;
}
}
.video-ring.data-v-6dc323a3 {
position: relative;
width: 640rpx;
height: 640rpx;
border-radius: 50%;
overflow: hidden;
box-shadow: 0 20rpx 56rpx rgba(139, 92, 246, 0.35), 0 10rpx 28rpx rgba(167, 139, 250, 0.22);
will-change: transform;
z-index: 1;
}
.ring-container.playing .video-ring.data-v-6dc323a3 {
animation: video-squeeze-6dc323a3 calc(var(--beat-duration, 750ms) * 2) ease-in-out infinite;
}
@keyframes video-squeeze-6dc323a3 {
0%, 100% {
transform: scale(1);
}
50% {
transform: scale(0.95);
}
}
.demo-video.data-v-6dc323a3 {
width: 100%;
height: 100%;
border-radius: 50%;
background: #ede9fe;
}
.video-ring-border.data-v-6dc323a3 {
position: absolute;
inset: 0;
border-radius: 50%;
pointer-events: none;
box-shadow: inset 0 0 0 4rpx rgba(255, 255, 255, 0.6), inset 0 8rpx 24rpx rgba(109, 40, 217, 0.25);
}
.center-hint.data-v-6dc323a3 {
position: absolute;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 16rpx;
pointer-events: none;
z-index: 3;
animation: hint-fade-in-6dc323a3 0.3s ease;
}
@keyframes hint-fade-in-6dc323a3 {
from {
opacity: 0;
transform: scale(0.9);
}
to {
opacity: 1;
transform: scale(1);
}
}
.hint-icon.data-v-6dc323a3 {
width: 140rpx;
height: 140rpx;
display: flex;
align-items: center;
justify-content: center;
background: rgba(15, 23, 42, 0.45);
-webkit-backdrop-filter: blur(6rpx);
backdrop-filter: blur(6rpx);
border: 3rpx solid rgba(255, 255, 255, 0.85);
border-radius: 50%;
box-shadow: 0 12rpx 32rpx rgba(15, 23, 42, 0.3);
animation: hint-bounce-6dc323a3 2s ease-in-out infinite;
will-change: transform;
}
.play-triangle.data-v-6dc323a3 {
width: 0;
height: 0;
border-left: 44rpx solid #ffffff;
border-top: 30rpx solid transparent;
border-bottom: 30rpx solid transparent;
margin-left: 10rpx;
}
@keyframes hint-bounce-6dc323a3 {
0%, 100% {
transform: scale(1);
}
50% {
transform: scale(1.06);
}
}
.hint-text.data-v-6dc323a3 {
font-size: 34rpx;
color: #ffffff;
font-weight: 700;
letter-spacing: 3rpx;
text-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.55);
}
.bpm-chip.data-v-6dc323a3 {
position: absolute;
bottom: 24rpx;
left: 50%;
transform: translateX(-50%);
display: flex;
align-items: baseline;
gap: 6rpx;
padding: 8rpx 22rpx;
border-radius: 999rpx;
background: rgba(109, 40, 217, 0.78);
box-shadow: 0 6rpx 18rpx rgba(109, 40, 217, 0.35);
pointer-events: none;
z-index: 3;
}
.bpm-value.data-v-6dc323a3 {
font-size: 36rpx;
color: #ffffff;
font-weight: 900;
line-height: 1;
letter-spacing: -1rpx;
font-variant-numeric: tabular-nums;
}
.bpm-label.data-v-6dc323a3 {
font-size: 20rpx;
color: rgba(255, 255, 255, 0.85);
font-weight: 700;
letter-spacing: 2rpx;
}
.tap-overlay.data-v-6dc323a3 {
position: absolute;
inset: 0;
z-index: 5;
}
/* ============================================================
* BGM 开关
* ============================================================ */
.bgm-toggle.data-v-6dc323a3 {
position: absolute;
top: 24rpx;
right: 28rpx;
width: 72rpx;
height: 72rpx;
border-radius: 50%;
background: rgba(255, 255, 255, 0.9);
box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.1), 0 0 0 2rpx rgba(139, 92, 246, 0.2);
display: flex;
align-items: center;
justify-content: center;
z-index: 20;
transition: all 0.2s ease;
}
.bgm-toggle.data-v-6dc323a3:active {
transform: scale(0.92);
background: #f5f3ff;
}
.bgm-icon.data-v-6dc323a3 {
font-size: 36rpx;
line-height: 1;
}
/* ============================================================
* 进度显示
* ============================================================ */
.progress-bar.data-v-6dc323a3 {
width: 100%;
background: #ffffff;
border-radius: 24rpx;
padding: 20rpx 24rpx;
box-shadow: 0 4rpx 12rpx rgba(15, 23, 42, 0.04);
margin-bottom: 20rpx;
}
.progress-text.data-v-6dc323a3 {
display: flex;
justify-content: space-between;
align-items: center;
}
.progress-label.data-v-6dc323a3 {
font-size: 26rpx;
color: #475569;
font-weight: 600;
}
.progress-count.data-v-6dc323a3 {
font-size: 32rpx;
color: #6d28d9;
font-weight: 700;
font-variant-numeric: tabular-nums;
}
/* ============================================================
* 控制面板(统计 + 档位合一)
* ============================================================ */
.control-deck.data-v-6dc323a3 {
width: 100%;
box-sizing: border-box;
background: #ffffff;
border-radius: 28rpx;
padding: 24rpx 20rpx 20rpx;
box-shadow: 0 8rpx 32rpx rgba(15, 23, 42, 0.06), 0 1rpx 0 rgba(255, 255, 255, 0.9) inset;
border: 2rpx solid rgba(255, 255, 255, 0.8);
transition: box-shadow 0.25s ease;
}
.control-deck.is-playing.data-v-6dc323a3 {
box-shadow: 0 12rpx 40rpx rgba(139, 92, 246, 0.12), 0 0 0 2rpx rgba(139, 92, 246, 0.12);
}
.stats-row.data-v-6dc323a3 {
display: flex;
gap: 12rpx;
}
.stat-chip.data-v-6dc323a3 {
flex: 1;
background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
border-radius: 20rpx;
padding: 18rpx 8rpx 16rpx;
display: flex;
flex-direction: column;
align-items: center;
gap: 6rpx;
border: 2rpx solid rgba(15, 23, 42, 0.04);
}
.stat-chip-label.data-v-6dc323a3 {
font-size: 20rpx;
color: #94a3b8;
font-weight: 500;
}
.stat-chip-value.data-v-6dc323a3 {
font-size: 34rpx;
font-weight: 800;
color: #6d28d9;
font-variant-numeric: tabular-nums;
line-height: 1.1;
}
.stat-chip-value.muted.data-v-6dc323a3 {
color: #cbd5e1;
font-weight: 600;
}
.deck-divider.data-v-6dc323a3 {
height: 2rpx;
margin: 20rpx 8rpx 18rpx;
background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.06), transparent);
}
.presets-block.data-v-6dc323a3 {
display: flex;
flex-direction: column;
gap: 14rpx;
}
.presets-header.data-v-6dc323a3 {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 4rpx;
}
.presets-title.data-v-6dc323a3 {
font-size: 32rpx;
font-weight: 800;
color: #0f172a;
}
.presets-hint.data-v-6dc323a3 {
font-size: 20rpx;
color: #94a3b8;
}
.presets.data-v-6dc323a3 {
display: flex;
gap: 12rpx;
}
.preset.data-v-6dc323a3 {
flex: 1;
background: #f8fafc;
border: 3rpx solid transparent;
border-radius: 24rpx;
padding: 32rpx 8rpx 28rpx;
display: flex;
flex-direction: column;
align-items: center;
gap: 10rpx;
transition: all 0.18s;
}
.preset .preset-name.data-v-6dc323a3 {
font-size: 40rpx;
font-weight: 800;
color: #0f172a;
}
.preset .preset-bpm.data-v-6dc323a3 {
font-size: 26rpx;
color: #475569;
font-weight: 700;
font-variant-numeric: tabular-nums;
}
.preset.data-v-6dc323a3:active {
transform: scale(0.97);
}
.preset.disabled.data-v-6dc323a3 {
opacity: 0.45;
pointer-events: none;
}
.preset.active.data-v-6dc323a3 {
background: linear-gradient(160deg, #ede9fe 0%, #ecfeff 100%);
border-color: #8b5cf6;
box-shadow: 0 6rpx 16rpx rgba(139, 92, 246, 0.15);
}
.preset.active .preset-name.data-v-6dc323a3,
.preset.active .preset-bpm.data-v-6dc323a3 {
color: #6d28d9;
}
.preset.active .preset-desc.data-v-6dc323a3 {
color: #8b5cf6;
}
/* ============================================================
* 训练目标 chips
* ============================================================ */
.target-block.data-v-6dc323a3 {
display: flex;
flex-direction: column;
gap: 14rpx;
}
.target-header.data-v-6dc323a3 {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12rpx 6rpx;
border-radius: 16rpx;
}
.target-header.data-v-6dc323a3:active {
background: #f8fafc;
}
.target-title.data-v-6dc323a3 {
font-size: 32rpx;
font-weight: 800;
color: #0f172a;
}
.target-current.data-v-6dc323a3 {
display: flex;
align-items: center;
gap: 12rpx;
}
.target-current-text.data-v-6dc323a3 {
font-size: 30rpx;
font-weight: 700;
color: #6d28d9;
}
.target-toggle.data-v-6dc323a3 {
font-size: 22rpx;
color: #94a3b8;
}
.target-chips.data-v-6dc323a3 {
display: flex;
gap: 12rpx;
}
.target-chip.data-v-6dc323a3 {
flex: 1;
height: 88rpx;
display: flex;
align-items: center;
justify-content: center;
background: #f8fafc;
border: 2rpx solid transparent;
border-radius: 16rpx;
transition: all 0.18s;
}
.target-chip .target-chip-text.data-v-6dc323a3 {
font-size: 30rpx;
font-weight: 700;
color: #475569;
}
.target-chip.data-v-6dc323a3:active {
transform: scale(0.97);
}
.target-chip.disabled.data-v-6dc323a3 {
opacity: 0.45;
pointer-events: none;
}
.target-chip.active.data-v-6dc323a3 {
background: #ede9fe;
border-color: #8b5cf6;
}
.target-chip.active .target-chip-text.data-v-6dc323a3 {
color: #6d28d9;
}
/* ============================================================
* 倒计时浮标
* ============================================================ */
.countdown-badge.data-v-6dc323a3 {
position: absolute;
top: 24rpx;
left: 28rpx;
display: flex;
flex-direction: column;
align-items: center;
padding: 8rpx 20rpx 10rpx;
border-radius: 16rpx;
background: rgba(255, 255, 255, 0.92);
box-shadow: 0 4rpx 16rpx rgba(15, 23, 42, 0.08), 0 0 0 2rpx rgba(139, 92, 246, 0.18);
z-index: 20;
}
.countdown-label.data-v-6dc323a3 {
font-size: 18rpx;
color: #94a3b8;
line-height: 1.1;
}
.countdown-value.data-v-6dc323a3 {
font-size: 32rpx;
font-weight: 800;
color: #6d28d9;
font-variant-numeric: tabular-nums;
line-height: 1.1;
margin-top: 2rpx;
}
/* ============================================================
* 强度预估消耗
* ============================================================ */
.intensity-estimate.data-v-6dc323a3 {
margin-top: 14rpx;
padding: 16rpx 20rpx;
display: flex;
align-items: center;
gap: 10rpx;
background: #ede9fe;
border-radius: 14rpx;
}
.estimate-icon.data-v-6dc323a3 {
font-size: 30rpx;
line-height: 1;
flex-shrink: 0;
}
.estimate-text.data-v-6dc323a3 {
font-size: 24rpx;
font-weight: 600;
color: #6d28d9;
letter-spacing: 0.5rpx;
}
/* ============================================================
* 训练功效(可折叠)
* ============================================================ */
.benefit-block.data-v-6dc323a3 {
display: flex;
flex-direction: column;
}
.benefit-header.data-v-6dc323a3 {
display: flex;
align-items: center;
justify-content: space-between;
padding: 4rpx;
}
.benefit-header.data-v-6dc323a3:active {
opacity: 0.7;
}
.benefit-title.data-v-6dc323a3 {
font-size: 26rpx;
font-weight: 700;
color: #0f172a;
}
.benefit-toggle.data-v-6dc323a3 {
font-size: 22rpx;
color: #6d28d9;
font-weight: 600;
}
.benefit-content.data-v-6dc323a3 {
margin-top: 14rpx;
display: flex;
flex-direction: column;
gap: 16rpx;
padding: 20rpx;
background: #f8fafc;
border-radius: 16rpx;
}
.benefit-row.data-v-6dc323a3 {
display: flex;
flex-direction: column;
gap: 10rpx;
}
.benefit-label.data-v-6dc323a3 {
font-size: 22rpx;
font-weight: 700;
color: #475569;
}
.muscle-tags.data-v-6dc323a3 {
display: flex;
flex-wrap: wrap;
gap: 10rpx;
}
.muscle-tag.data-v-6dc323a3 {
padding: 6rpx 18rpx;
font-size: 22rpx;
font-weight: 600;
color: #6d28d9;
background: #ede9fe;
border-radius: 999rpx;
}
.benefit-effect.data-v-6dc323a3 {
font-size: 24rpx;
line-height: 1.7;
color: #475569;
}
/* ============================================================
* 暂停态大按钮(老年友好,醒目易点)
* ============================================================ */
.pause-actions.data-v-6dc323a3 {
margin-top: 20rpx;
display: flex;
gap: 16rpx;
}
.big-btn.data-v-6dc323a3 {
flex: 1;
height: 104rpx;
display: flex;
align-items: center;
justify-content: center;
gap: 10rpx;
border-radius: 20rpx;
border: none;
padding: 0;
line-height: 1;
}
.big-btn.data-v-6dc323a3::after {
border: none;
}
.big-btn.data-v-6dc323a3:active {
transform: scale(0.97);
}
.big-btn-icon.data-v-6dc323a3 {
font-size: 30rpx;
line-height: 1;
}
.big-btn-text.data-v-6dc323a3 {
font-size: 34rpx;
font-weight: 800;
letter-spacing: 2rpx;
}
.big-btn-resume.data-v-6dc323a3 {
background: #8b5cf6;
color: #fff;
box-shadow: 0 8rpx 20rpx rgba(139, 92, 246, 0.32);
}
.big-btn-end.data-v-6dc323a3 {
background: #fef2f2;
color: #dc2626;
border: 2rpx solid rgba(220, 38, 38, 0.3);
}
.big-btn-end .big-btn-icon.data-v-6dc323a3 {
font-size: 26rpx;
}
/* ============================================================
* 完成浮层
* ============================================================ */
.summary-mask.data-v-6dc323a3 {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(15, 23, 42, 0.45);
-webkit-backdrop-filter: blur(6rpx);
backdrop-filter: blur(6rpx);
display: flex;
align-items: flex-end;
justify-content: center;
z-index: 900;
padding: 0 24rpx calc(32rpx + env(safe-area-inset-bottom));
animation: fade-in-6dc323a3 0.2s ease;
}
/* ============================================================
* 奖励弹窗
* ============================================================ */
.reward-popup-mask.data-v-6dc323a3 {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
animation: fade-in-6dc323a3 0.2s ease;
}
@keyframes fade-in-6dc323a3 {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.reward-popup.data-v-6dc323a3 {
width: 560rpx;
background: linear-gradient(135deg, #fff 0%, #f5f3ff 100%);
border-radius: 32rpx;
padding: 48rpx 32rpx;
display: flex;
flex-direction: column;
align-items: center;
gap: 20rpx;
box-shadow: 0 20rpx 60rpx rgba(0, 0, 0, 0.3);
animation: popup-bounce-6dc323a3 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes popup-bounce-6dc323a3 {
0% {
transform: scale(0.8) translateY(40rpx);
opacity: 0;
}
100% {
transform: scale(1) translateY(0);
opacity: 1;
}
}
.reward-emoji.data-v-6dc323a3 {
font-size: 120rpx;
line-height: 1;
animation: emoji-pop-6dc323a3 0.6s ease;
}
@keyframes emoji-pop-6dc323a3 {
0%, 100% {
transform: scale(1);
}
50% {
transform: scale(1.2);
}
}
.reward-title.data-v-6dc323a3 {
font-size: 36rpx;
font-weight: 700;
color: #6d28d9;
letter-spacing: 2rpx;
}
.reward-desc.data-v-6dc323a3 {
font-size: 28rpx;
color: #475569;
margin-bottom: 8rpx;
}
.reward-count.data-v-6dc323a3 {
font-size: 24rpx;
color: #94a3b8;
margin-bottom: 12rpx;
}
.reward-btn.data-v-6dc323a3 {
width: 100%;
height: 88rpx;
line-height: 88rpx;
text-align: center;
background: #8b5cf6;
color: #fff;
border-radius: 999rpx;
font-size: 30rpx;
font-weight: 600;
box-shadow: 0 8rpx 20rpx rgba(139, 92, 246, 0.3);
transition: all 0.2s;
}
.reward-btn.data-v-6dc323a3:active {
transform: scale(0.97);
box-shadow: 0 4rpx 12rpx rgba(139, 92, 246, 0.2);
}
/* ============================================================
* 训练完成卡片
* ============================================================ */
.completion-card.data-v-6dc323a3 {
width: 100%;
max-width: 700rpx;
background: linear-gradient(135deg, #f5f3ff, #ede9fe);
border-radius: 32rpx 32rpx 28rpx 28rpx;
padding: 40rpx 28rpx 36rpx;
display: flex;
flex-direction: column;
gap: 28rpx;
align-items: center;
box-shadow: 0 -8rpx 48rpx rgba(15, 23, 42, 0.12), 0 8rpx 32rpx rgba(139, 92, 246, 0.08);
border: 2rpx solid rgba(139, 92, 246, 0.1);
animation: sheet-up-6dc323a3 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes sheet-up-6dc323a3 {
from {
transform: translateY(100%);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}
.completion-header.data-v-6dc323a3 {
display: flex;
flex-direction: column;
align-items: center;
gap: 8rpx;
}
.completion-emoji.data-v-6dc323a3 {
font-size: 80rpx;
line-height: 1;
margin-bottom: 8rpx;
animation: emoji-bounce-6dc323a3 1.5s ease-in-out infinite;
}
@keyframes emoji-bounce-6dc323a3 {
0%, 100% {
transform: scale(1) rotate(0deg);
}
25% {
transform: scale(1.1) rotate(-5deg);
}
75% {
transform: scale(1.1) rotate(5deg);
}
}
.completion-title.data-v-6dc323a3 {
font-size: 36rpx;
color: #0f172a;
font-weight: 800;
letter-spacing: 2rpx;
}
.completion-subtitle.data-v-6dc323a3 {
font-size: 24rpx;
color: #94a3b8;
margin-top: 4rpx;
}
.completion-content.data-v-6dc323a3 {
width: 100%;
display: flex;
flex-direction: column;
gap: 24rpx;
}
/* 核心统计网格 */
.stats-grid.data-v-6dc323a3 {
display: flex;
gap: 16rpx;
width: 100%;
}
.stat-item.data-v-6dc323a3 {
flex: 1;
background: rgba(255, 255, 255, 0.85);
border-radius: 20rpx;
padding: 24rpx 12rpx 20rpx;
display: flex;
flex-direction: column;
align-items: center;
gap: 6rpx;
box-shadow: 0 4rpx 12rpx rgba(15, 23, 42, 0.04), inset 0 1rpx 0 rgba(255, 255, 255, 0.8);
-webkit-backdrop-filter: blur(8rpx);
backdrop-filter: blur(8rpx);
}
.stat-icon.data-v-6dc323a3 {
font-size: 40rpx;
line-height: 1;
margin-bottom: 4rpx;
}
.stat-label.data-v-6dc323a3 {
font-size: 22rpx;
color: #94a3b8;
font-weight: 500;
}
.stat-value.data-v-6dc323a3 {
font-size: 36rpx;
font-weight: 800;
color: #0f172a;
font-variant-numeric: tabular-nums;
letter-spacing: 0;
}
/* ============================================================
* 食物对照卡片
* ============================================================ */
.food-comparison-card.data-v-6dc323a3 {
background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 100%);
border-radius: 20rpx;
padding: 28rpx 24rpx;
width: 100%;
box-shadow: 0 4rpx 16rpx rgba(251, 191, 36, 0.1), inset 0 1rpx 0 rgba(255, 255, 255, 0.8);
border: 2rpx solid rgba(251, 191, 36, 0.15);
}
.food-comparison-header.data-v-6dc323a3 {
display: flex;
flex-direction: column;
align-items: center;
gap: 4rpx;
margin-bottom: 24rpx;
}
.food-comparison-title.data-v-6dc323a3 {
font-size: 26rpx;
color: #92400e;
font-weight: 700;
letter-spacing: 1rpx;
}
.food-comparison-hint.data-v-6dc323a3 {
font-size: 22rpx;
color: #b45309;
opacity: 0.8;
}
.food-list.data-v-6dc323a3 {
display: flex;
justify-content: space-around;
align-items: center;
gap: 12rpx;
}
.food-item.data-v-6dc323a3 {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
gap: 8rpx;
padding: 16rpx 8rpx;
background: rgba(255, 255, 255, 0.7);
border-radius: 16rpx;
transition: transform 0.3s ease;
}
.food-item.data-v-6dc323a3:active {
transform: scale(0.95);
}
.food-emoji.data-v-6dc323a3 {
font-size: 56rpx;
line-height: 1;
filter: drop-shadow(0 2rpx 4rpx rgba(0, 0, 0, 0.1));
}
.food-info.data-v-6dc323a3 {
display: flex;
flex-direction: column;
align-items: center;
gap: 2rpx;
}
.food-count.data-v-6dc323a3 {
font-size: 32rpx;
font-weight: 800;
color: #92400e;
line-height: 1.2;
font-variant-numeric: tabular-nums;
}
.food-name.data-v-6dc323a3 {
font-size: 20rpx;
color: #b45309;
font-weight: 500;
letter-spacing: 1rpx;
}
.action-row.data-v-6dc323a3 {
display: flex;
gap: 16rpx;
justify-content: center;
width: 100%;
}
.btn-primary.data-v-6dc323a3,
.btn-secondary.data-v-6dc323a3,
.btn-share.data-v-6dc323a3 {
flex: 1;
border-radius: 999rpx;
font-size: 28rpx;
height: 88rpx;
line-height: 88rpx;
border: none;
padding: 0 16rpx;
}
.btn-primary.data-v-6dc323a3::after,
.btn-secondary.data-v-6dc323a3::after,
.btn-share.data-v-6dc323a3::after {
border: none;
}
.btn-primary.data-v-6dc323a3 {
background: #8b5cf6;
color: #fff;
}
.btn-secondary.data-v-6dc323a3 {
background: #fff;
color: #6d28d9;
border: 2rpx solid rgba(139, 92, 246, 0.35);
}
.btn-share.data-v-6dc323a3 {
flex: 0 0 auto;
width: 88rpx;
padding: 0;
background: #f5f3ff;
color: #6d28d9;
border: 2rpx solid rgba(139, 92, 246, 0.25);
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6rpx;
font-size: 24rpx;
}
.btn-share .share-icon.data-v-6dc323a3 {
font-size: 30rpx;
line-height: 1;
}