更新
This commit is contained in:
@@ -37,12 +37,12 @@
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 50;
|
||||
border-radius: 0 0 32rpx 32rpx;
|
||||
box-shadow: 0 8rpx 32rpx rgba(0, 108, 73, 0.04);
|
||||
background: rgba(255, 255, 255, 0.82);
|
||||
backdrop-filter: blur(20px);
|
||||
-webkit-backdrop-filter: blur(20px);
|
||||
border-bottom: 1.5rpx solid rgba(255, 255, 255, 0.6);
|
||||
border-radius: 0 0 24rpx 24rpx;
|
||||
box-shadow: 0 4rpx 20rpx rgba(0, 108, 73, 0.04);
|
||||
background: rgba(255, 255, 255, 0.88);
|
||||
backdrop-filter: blur(16px);
|
||||
-webkit-backdrop-filter: blur(16px);
|
||||
border-bottom: 1rpx solid rgba(0, 108, 73, 0.06);
|
||||
}
|
||||
|
||||
.game-page .gg-hud-nav {
|
||||
@@ -50,7 +50,7 @@
|
||||
align-items: center;
|
||||
position: relative;
|
||||
height: var(--menu-height, 64rpx);
|
||||
margin-bottom: 14rpx;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.game-page .gg-hud-control-group {
|
||||
@@ -107,7 +107,7 @@
|
||||
}
|
||||
|
||||
.game-page .gg-hud-score-val {
|
||||
font-size: 42rpx;
|
||||
font-size: 44rpx;
|
||||
font-weight: 900;
|
||||
color: #006c49;
|
||||
font-variant-numeric: tabular-nums;
|
||||
@@ -124,29 +124,155 @@
|
||||
color: #64748b;
|
||||
}
|
||||
|
||||
/* 核心三栏面板 */
|
||||
.game-page .gg-hud-dashboard {
|
||||
background: rgba(255, 255, 255, 0.55);
|
||||
border-radius: 24rpx;
|
||||
border: 1.5rpx solid rgba(0, 108, 73, 0.08);
|
||||
box-shadow: 0 4rpx 24rpx rgba(0, 108, 73, 0.03), inset 0 2rpx 8rpx rgba(255, 255, 255, 0.8);
|
||||
padding: 16rpx;
|
||||
display: flex;
|
||||
gap: 16rpx;
|
||||
align-items: stretch;
|
||||
/* ===== 次:上次消除(名称 + 含糖量) ===== */
|
||||
.game-page .gg-hud-last-food {
|
||||
flex-shrink: 0;
|
||||
width: 100%;
|
||||
max-width: 750rpx;
|
||||
margin: 0 auto 14rpx;
|
||||
padding: 16rpx 18rpx;
|
||||
border-radius: 22rpx;
|
||||
background: rgba(255, 255, 255, 0.88);
|
||||
border: 1rpx solid rgba(0, 108, 73, 0.1);
|
||||
box-sizing: border-box;
|
||||
box-shadow: 0 4rpx 16rpx rgba(0, 108, 73, 0.06);
|
||||
}
|
||||
|
||||
/* 左侧:血糖监控 */
|
||||
.game-page .gg-dash-glucose {
|
||||
flex: 1.2;
|
||||
.game-page .gg-hud-last-food-kicker {
|
||||
display: block;
|
||||
font-size: 24rpx;
|
||||
font-weight: 700;
|
||||
color: #475569;
|
||||
letter-spacing: 0.04em;
|
||||
margin-bottom: 12rpx;
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
.game-page .gg-hud-last-food-card {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 16rpx;
|
||||
padding: 14rpx 16rpx;
|
||||
border-radius: 18rpx;
|
||||
background: #f8fafc;
|
||||
border: 1rpx solid rgba(0, 108, 73, 0.08);
|
||||
animation: gg-last-food-in 0.22s ease-out;
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.game-page .gg-hud-last-food-card {
|
||||
animation: none;
|
||||
}
|
||||
}
|
||||
|
||||
.game-page .gg-hud-last-food-card.is-high {
|
||||
background: rgba(254, 242, 242, 0.9);
|
||||
border-color: rgba(220, 38, 38, 0.2);
|
||||
}
|
||||
|
||||
.game-page .gg-hud-last-food-card.is-mid {
|
||||
background: rgba(255, 251, 235, 0.95);
|
||||
border-color: rgba(234, 88, 12, 0.18);
|
||||
}
|
||||
|
||||
.game-page .gg-hud-last-food-card.is-low {
|
||||
background: rgba(240, 253, 244, 0.95);
|
||||
border-color: rgba(22, 163, 74, 0.15);
|
||||
}
|
||||
|
||||
.game-page .gg-hud-last-food-icon {
|
||||
width: 72rpx;
|
||||
height: 72rpx;
|
||||
flex-shrink: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 16rpx;
|
||||
background: #fff;
|
||||
box-shadow: 0 2rpx 8rpx rgba(15, 23, 42, 0.06);
|
||||
}
|
||||
|
||||
.game-page .gg-hud-last-food-icon .food-tile-icon--goal {
|
||||
width: 56rpx;
|
||||
height: 56rpx;
|
||||
}
|
||||
|
||||
.game-page .gg-hud-last-food-body {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10rpx;
|
||||
}
|
||||
|
||||
.game-page .gg-hud-last-food-name {
|
||||
font-size: 34rpx;
|
||||
font-weight: 800;
|
||||
color: #0f172a;
|
||||
line-height: 1.25;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
.game-page .gg-hud-last-food-sugar-row {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 8rpx 12rpx;
|
||||
}
|
||||
|
||||
.game-page .gg-hud-last-food-sugar-label {
|
||||
font-size: 26rpx;
|
||||
font-weight: 700;
|
||||
color: #475569;
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
.game-page .gg-hud-last-food-gi {
|
||||
font-size: 26rpx;
|
||||
font-weight: 800;
|
||||
color: #fff;
|
||||
padding: 4rpx 14rpx;
|
||||
border-radius: 8rpx;
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
.game-page .gg-hud-last-food-sugar-hint {
|
||||
font-size: 26rpx;
|
||||
font-weight: 700;
|
||||
color: #334155;
|
||||
line-height: 1.35;
|
||||
}
|
||||
|
||||
.game-page .gg-hud-last-food-card.is-high .gg-hud-last-food-sugar-hint {
|
||||
color: #991b1b;
|
||||
}
|
||||
|
||||
.game-page .gg-hud-last-food-placeholder {
|
||||
padding: 12rpx 4rpx;
|
||||
}
|
||||
|
||||
.game-page .gg-hud-last-food-placeholder text {
|
||||
font-size: 28rpx;
|
||||
font-weight: 600;
|
||||
color: #94a3b8;
|
||||
line-height: 1.45;
|
||||
}
|
||||
|
||||
@keyframes gg-last-food-in {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(6rpx);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
/* 血糖圆环(主区摘要用 mini) */
|
||||
.game-page .gg-glucose-ring {
|
||||
width: 96rpx;
|
||||
height: 96rpx;
|
||||
width: 88rpx;
|
||||
height: 88rpx;
|
||||
border-radius: 50%;
|
||||
padding: 6rpx;
|
||||
flex-shrink: 0;
|
||||
@@ -168,42 +294,37 @@
|
||||
}
|
||||
|
||||
.game-page .gg-glucose-value {
|
||||
font-size: 34rpx;
|
||||
font-size: 30rpx;
|
||||
font-weight: 900;
|
||||
color: #0f172a;
|
||||
line-height: 1;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.game-page .gg-glucose-detail {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
.game-page .gg-glucose-brief {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6rpx;
|
||||
}
|
||||
|
||||
.game-page .gg-glucose-detail-head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 8rpx;
|
||||
align-items: flex-start;
|
||||
gap: 10rpx;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.game-page .gg-glucose-title {
|
||||
font-size: 28rpx;
|
||||
font-size: 30rpx;
|
||||
font-weight: 800;
|
||||
color: #334155;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.game-page .gg-glucose-status {
|
||||
font-size: 26rpx;
|
||||
font-size: 28rpx;
|
||||
font-weight: 800;
|
||||
color: #006c49;
|
||||
padding: 2rpx 12rpx;
|
||||
color: #ea580c;
|
||||
padding: 6rpx 18rpx;
|
||||
border-radius: 999rpx;
|
||||
background: rgba(0, 108, 73, 0.08);
|
||||
background: rgba(234, 88, 12, 0.1);
|
||||
white-space: nowrap;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.game-page .gg-glucose-status.is-warn-low {
|
||||
@@ -217,294 +338,74 @@
|
||||
animation: gg-alert-pulse 1.5s infinite;
|
||||
}
|
||||
|
||||
.game-page .gg-glucose-ring--mini {
|
||||
width: 56rpx;
|
||||
height: 56rpx;
|
||||
padding: 4rpx;
|
||||
}
|
||||
|
||||
.game-page .gg-glucose-ring--mini .gg-glucose-value {
|
||||
font-size: 22rpx;
|
||||
}
|
||||
|
||||
.game-page .gg-glucose-status--mini {
|
||||
font-size: 22rpx;
|
||||
padding: 2rpx 10rpx;
|
||||
}
|
||||
|
||||
@keyframes gg-alert-pulse {
|
||||
0% { opacity: 0.8; }
|
||||
50% { opacity: 1; box-shadow: 0 0 8rpx rgba(239, 68, 68, 0.3); }
|
||||
100% { opacity: 0.8; }
|
||||
}
|
||||
|
||||
.game-page .gg-meter-bar {
|
||||
position: relative;
|
||||
height: 12rpx;
|
||||
border-radius: 999rpx;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.game-page .gg-meter-track {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
display: flex;
|
||||
border-radius: 999rpx;
|
||||
overflow: hidden;
|
||||
opacity: 0.25;
|
||||
}
|
||||
|
||||
.game-page .gg-meter-zone {
|
||||
flex: 1;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.game-page .gg-meter-zone.is-low { background: #3b82f6; }
|
||||
.game-page .gg-meter-zone.is-ok { background: #10b981; }
|
||||
.game-page .gg-meter-zone.is-high { background: #ef4444; }
|
||||
|
||||
.game-page .gg-meter-fill {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
height: 100%;
|
||||
border-radius: 999rpx;
|
||||
transition: width 0.6s cubic-bezier(0.25, 1, 0.5, 1);
|
||||
z-index: 2;
|
||||
opacity: 0.85;
|
||||
}
|
||||
|
||||
.game-page .gg-meter-fill.is-stable {
|
||||
background: linear-gradient(to right, #34d399, #006c49);
|
||||
}
|
||||
|
||||
.game-page .gg-meter-fill.is-low {
|
||||
background: linear-gradient(to right, #93c5fd, #3b82f6);
|
||||
}
|
||||
|
||||
.game-page .gg-meter-fill.is-high {
|
||||
background: linear-gradient(to right, #f87171, #dc2626);
|
||||
}
|
||||
|
||||
.game-page .gg-meter-pointer {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
width: 20rpx;
|
||||
height: 20rpx;
|
||||
background: #ffffff;
|
||||
border: 4rpx solid #006c49;
|
||||
border-radius: 50%;
|
||||
box-shadow: 0 2rpx 6rpx rgba(0, 0, 0, 0.12);
|
||||
transition: left 0.6s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.4s;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
.game-page .gg-meter-pointer.is-low { border-color: #3b82f6; }
|
||||
.game-page .gg-meter-pointer.is-high { border-color: #dc2626; }
|
||||
.game-page .gg-meter-pointer.is-stable { border-color: #006c49; }
|
||||
|
||||
.game-page .gg-meter-legend {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 0 2rpx;
|
||||
}
|
||||
|
||||
.game-page .gg-meter-legend text {
|
||||
font-size: 22rpx;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.game-page .gg-meter-legend .is-low-text { color: #3b82f6; }
|
||||
.game-page .gg-meter-legend .is-ok-text { color: #006c49; }
|
||||
.game-page .gg-meter-legend .is-high-text { color: #dc2626; }
|
||||
|
||||
/* 垂直分割线 */
|
||||
.game-page .gg-dash-divider {
|
||||
width: 1rpx;
|
||||
align-self: stretch;
|
||||
background: linear-gradient(to bottom, transparent, rgba(0, 108, 73, 0.08), transparent);
|
||||
}
|
||||
|
||||
/* 中间:步数看板 */
|
||||
.game-page .gg-dash-moves {
|
||||
flex: 0.8;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: rgba(0, 108, 73, 0.03);
|
||||
border-radius: 20rpx;
|
||||
border: 1rpx solid rgba(0, 108, 73, 0.08);
|
||||
padding: 8rpx 0;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.game-page .gg-moves-label {
|
||||
font-size: 26rpx;
|
||||
font-weight: 800;
|
||||
color: #475569;
|
||||
margin-bottom: 2rpx;
|
||||
}
|
||||
|
||||
.game-page .gg-moves-val {
|
||||
font-size: 48rpx;
|
||||
font-weight: 900;
|
||||
color: #006c49;
|
||||
font-variant-numeric: tabular-nums;
|
||||
line-height: 1.1;
|
||||
}
|
||||
|
||||
/* 右侧:关卡目标 */
|
||||
.game-page .gg-dash-mission {
|
||||
flex: 1.2;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
gap: 8rpx;
|
||||
}
|
||||
|
||||
.game-page .gg-mission-head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 8rpx;
|
||||
}
|
||||
|
||||
.game-page .gg-mission-title-wrap {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
gap: 8rpx;
|
||||
}
|
||||
|
||||
.game-page .gg-mission-title {
|
||||
font-size: 28rpx;
|
||||
font-weight: 800;
|
||||
color: #334155;
|
||||
}
|
||||
|
||||
.game-page .gg-mission-pct {
|
||||
font-size: 26rpx;
|
||||
font-weight: 800;
|
||||
color: #006c49;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.game-page .gg-mission-streak {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4rpx;
|
||||
padding: 2rpx 10rpx;
|
||||
border-radius: 999rpx;
|
||||
background: rgba(0, 108, 73, 0.06);
|
||||
font-size: 16rpx;
|
||||
font-weight: 700;
|
||||
color: #059669;
|
||||
}
|
||||
|
||||
.game-page .gg-mission-goals {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8rpx;
|
||||
flex: 1;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.game-page .gg-goal-chip {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8rpx;
|
||||
padding: 6rpx 10rpx;
|
||||
border-radius: 16rpx;
|
||||
background: rgba(0, 108, 73, 0.02);
|
||||
border: 1rpx solid rgba(0, 108, 73, 0.06);
|
||||
transition: all 0.25s ease;
|
||||
}
|
||||
|
||||
.game-page .gg-goal-chip.is-done {
|
||||
background: linear-gradient(135deg, #ecfdf5, #d1fae5);
|
||||
border-color: rgba(16, 185, 129, 0.35);
|
||||
}
|
||||
|
||||
.game-page .gg-goal-icon-wrap {
|
||||
width: 48rpx;
|
||||
height: 48rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.game-page .gg-goal-chip-body {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4rpx;
|
||||
}
|
||||
|
||||
.game-page .gg-goal-chip-bar {
|
||||
height: 6rpx;
|
||||
background: rgba(0, 108, 73, 0.06);
|
||||
border-radius: 999rpx;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.game-page .gg-goal-chip-fill {
|
||||
height: 100%;
|
||||
background: linear-gradient(90deg, #34d399, #006c49);
|
||||
border-radius: 999rpx;
|
||||
transition: width 0.35s ease;
|
||||
}
|
||||
|
||||
.game-page .gg-goal-chip.is-done .gg-goal-chip-fill {
|
||||
background: #10b981;
|
||||
}
|
||||
|
||||
.game-page .gg-goal-chip-text {
|
||||
font-size: 26rpx;
|
||||
font-weight: 800;
|
||||
color: #334155;
|
||||
font-variant-numeric: tabular-nums;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.game-page .gg-goal-chip.is-done .gg-goal-chip-text {
|
||||
color: #006c49;
|
||||
}
|
||||
|
||||
@keyframes gg-pop-score {
|
||||
0% { transform: scale(1); }
|
||||
50% { transform: scale(1.12); color: #059669; }
|
||||
50% { transform: scale(1.12); color: #ea580c; }
|
||||
100% { transform: scale(1); }
|
||||
}
|
||||
|
||||
/* ===== Board hints ===== */
|
||||
.game-page .gg-board-hint-bar {
|
||||
/* ===== 主:棋盘区 ===== */
|
||||
.game-page .gg-board-hero {
|
||||
flex: 1;
|
||||
width: 100%;
|
||||
min-height: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.game-page .gg-board-hint-inline {
|
||||
flex-shrink: 0;
|
||||
width: 100%;
|
||||
max-width: 750rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12rpx;
|
||||
padding: 10rpx 16rpx;
|
||||
margin-top: 14rpx;
|
||||
border-radius: 16rpx;
|
||||
background: rgba(255, 255, 255, 0.65);
|
||||
border: 1rpx solid rgba(0, 108, 73, 0.06);
|
||||
justify-content: center;
|
||||
gap: 10rpx;
|
||||
margin-bottom: 12rpx;
|
||||
padding: 0 8rpx;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.game-page .gg-board-hint-left {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8rpx;
|
||||
}
|
||||
|
||||
.game-page .gg-hint-tag {
|
||||
font-size: 24rpx;
|
||||
font-size: 22rpx;
|
||||
font-weight: 800;
|
||||
color: #ffffff;
|
||||
background: #006c49;
|
||||
padding: 4rpx 14rpx;
|
||||
padding: 4rpx 12rpx;
|
||||
border-radius: 8rpx;
|
||||
flex-shrink: 0;
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
.game-page .gg-board-hint-text {
|
||||
font-size: 28rpx;
|
||||
font-weight: 700;
|
||||
color: #334155;
|
||||
line-height: 1.3;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
font-size: 26rpx;
|
||||
font-weight: 600;
|
||||
color: #475569;
|
||||
line-height: 1.35;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.game-page .gg-board-stack {
|
||||
@@ -524,17 +425,17 @@
|
||||
position: fixed;
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: var(--board-area-top, 200px);
|
||||
top: var(--board-area-top, 120px);
|
||||
bottom: var(--board-area-bottom, 180px);
|
||||
z-index: 10;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
justify-content: flex-start;
|
||||
box-sizing: border-box;
|
||||
overflow: hidden;
|
||||
padding: 0;
|
||||
padding: 8rpx 16rpx 0;
|
||||
}
|
||||
|
||||
/* gg-hint-banner 已移除,提示直接显示在棋盘食物上 */
|
||||
@@ -559,22 +460,24 @@
|
||||
}
|
||||
|
||||
.game-page .gg-board-wrap {
|
||||
/* 7 行 × 6 列矩形棋盘宽高由 JS boardWrapStyle 注入 */
|
||||
/* 5 行 × 4 列棋盘宽高由 JS boardWrapStyle 注入 */
|
||||
flex-shrink: 0;
|
||||
position: relative;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.game-page .game-grid {
|
||||
/* 7 行 flex,每行 6 列,单格宽高由 JS cellStyle 注入 */
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
border-radius: 32rpx;
|
||||
background: rgba(255, 255, 255, 0.45);
|
||||
backdrop-filter: blur(20px);
|
||||
-webkit-backdrop-filter: blur(20px);
|
||||
box-shadow: 0 30rpx 80rpx rgba(0, 108, 73, 0.08), inset 0 2rpx 10rpx rgba(255, 255, 255, 0.6);
|
||||
border: 1.5rpx solid rgba(0, 108, 73, 0.08);
|
||||
border-radius: 36rpx;
|
||||
background: rgba(255, 255, 255, 0.92);
|
||||
backdrop-filter: blur(24px);
|
||||
-webkit-backdrop-filter: blur(24px);
|
||||
box-shadow:
|
||||
0 20rpx 56rpx rgba(0, 108, 73, 0.14),
|
||||
0 4rpx 16rpx rgba(15, 23, 42, 0.06),
|
||||
inset 0 2rpx 12rpx rgba(255, 255, 255, 0.85);
|
||||
border: 2rpx solid rgba(0, 108, 73, 0.12);
|
||||
box-sizing: border-box;
|
||||
overflow: hidden;
|
||||
flex-shrink: 0;
|
||||
@@ -870,7 +773,11 @@
|
||||
|
||||
.game-page .gg-tile-gi.is-low { background: #16a34a; }
|
||||
.game-page .gg-tile-gi.is-mid { background: #ea580c; }
|
||||
.game-page .gg-tile-gi.is-high { background: #dc2626; }
|
||||
.game-page .gg-tile-gi.is-high {
|
||||
background: #dc2626;
|
||||
box-shadow: 0 2rpx 10rpx rgba(220, 38, 38, 0.45);
|
||||
font-size: 22rpx;
|
||||
}
|
||||
|
||||
/* ===== 点击食物的大字科普卡 ===== */
|
||||
.game-page .gg-food-card {
|
||||
@@ -955,19 +862,34 @@
|
||||
100% { transform: translate(-50%, -60px) scale(1); opacity: 0; }
|
||||
}
|
||||
|
||||
/* ===== Footer boosters ===== */
|
||||
/* ===== Footer boosters(辅,弱化) ===== */
|
||||
.game-page .gg-footer {
|
||||
position: fixed;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
z-index: 40;
|
||||
border-radius: 80rpx 80rpx 0 0;
|
||||
border-top: 1.5rpx solid rgba(255, 255, 255, 0.7);
|
||||
box-shadow: 0 -10rpx 40rpx rgba(0, 108, 73, 0.05);
|
||||
padding-top: 16rpx;
|
||||
padding-left: 32rpx;
|
||||
padding-right: 32rpx;
|
||||
border-radius: 48rpx 48rpx 0 0;
|
||||
border-top: 1rpx solid rgba(0, 108, 73, 0.06);
|
||||
box-shadow: 0 -4rpx 24rpx rgba(0, 108, 73, 0.04);
|
||||
padding-top: 12rpx;
|
||||
padding-left: 24rpx;
|
||||
padding-right: 24rpx;
|
||||
background: rgba(255, 255, 255, 0.78);
|
||||
}
|
||||
|
||||
.game-page .gg-footer--sub .gg-booster-btn {
|
||||
padding: 16rpx 0;
|
||||
width: 152rpx;
|
||||
border-radius: 32rpx;
|
||||
background: rgba(255, 255, 255, 0.75);
|
||||
border-color: rgba(0, 108, 73, 0.08);
|
||||
box-shadow: 0 4rpx 12rpx rgba(0, 108, 73, 0.04);
|
||||
}
|
||||
|
||||
.game-page .gg-footer--sub .gg-booster-label {
|
||||
font-size: 24rpx;
|
||||
color: #64748b;
|
||||
}
|
||||
|
||||
.game-page .gg-boosters {
|
||||
@@ -1040,6 +962,121 @@
|
||||
color: #2b3a32;
|
||||
}
|
||||
|
||||
/* ===== 高糖消除红色警示弹窗 ===== */
|
||||
.game-page .gg-high-alert-overlay {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 210;
|
||||
background: rgba(127, 29, 29, 0.45);
|
||||
backdrop-filter: blur(16rpx);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 48rpx;
|
||||
animation: gg-high-alert-fade-in 0.28s ease-out;
|
||||
}
|
||||
|
||||
.game-page .gg-high-alert-card {
|
||||
width: 100%;
|
||||
max-width: 560rpx;
|
||||
padding: 48rpx 40rpx 44rpx;
|
||||
border-radius: 40rpx;
|
||||
background: linear-gradient(165deg, #fff5f5 0%, #ffffff 42%);
|
||||
border: 4rpx solid #dc2626;
|
||||
box-shadow:
|
||||
0 0 0 8rpx rgba(220, 38, 38, 0.12),
|
||||
0 24rpx 64rpx rgba(185, 28, 28, 0.35);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
animation: gg-high-alert-pop 0.42s cubic-bezier(0.34, 1.45, 0.64, 1);
|
||||
}
|
||||
|
||||
.game-page .gg-high-alert-icon-wrap {
|
||||
width: 96rpx;
|
||||
height: 96rpx;
|
||||
border-radius: 50%;
|
||||
background: linear-gradient(145deg, #ef4444, #b91c1c);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-bottom: 24rpx;
|
||||
box-shadow: 0 12rpx 32rpx rgba(220, 38, 38, 0.45);
|
||||
animation: gg-high-badge-pulse 1.2s ease-in-out infinite;
|
||||
}
|
||||
|
||||
.game-page .gg-high-alert-badge-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12rpx;
|
||||
margin-bottom: 16rpx;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.game-page .gg-high-alert-badge {
|
||||
font-size: 32rpx;
|
||||
font-weight: 900;
|
||||
color: #ffffff;
|
||||
background: #dc2626;
|
||||
padding: 8rpx 24rpx;
|
||||
border-radius: 12rpx;
|
||||
letter-spacing: 4rpx;
|
||||
box-shadow: 0 6rpx 16rpx rgba(220, 38, 38, 0.4);
|
||||
}
|
||||
|
||||
.game-page .gg-high-alert-badge-sub {
|
||||
font-size: 24rpx;
|
||||
font-weight: 700;
|
||||
color: #b91c1c;
|
||||
}
|
||||
|
||||
.game-page .gg-high-alert-title {
|
||||
font-size: 40rpx;
|
||||
font-weight: 900;
|
||||
color: #991b1b;
|
||||
line-height: 1.25;
|
||||
margin-bottom: 12rpx;
|
||||
}
|
||||
|
||||
.game-page .gg-high-alert-name {
|
||||
font-size: 44rpx;
|
||||
font-weight: 900;
|
||||
color: #dc2626;
|
||||
line-height: 1.2;
|
||||
margin-bottom: 16rpx;
|
||||
}
|
||||
|
||||
.game-page .gg-high-alert-tip {
|
||||
font-size: 30rpx;
|
||||
font-weight: 600;
|
||||
color: #7f1d1d;
|
||||
line-height: 1.45;
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
@keyframes gg-high-alert-fade-in {
|
||||
from { opacity: 0; }
|
||||
to { opacity: 1; }
|
||||
}
|
||||
|
||||
@keyframes gg-high-alert-pop {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: scale(0.82) translateY(24rpx);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: scale(1) translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes gg-high-badge-pulse {
|
||||
0%, 100% { transform: scale(1); box-shadow: 0 12rpx 32rpx rgba(220, 38, 38, 0.45); }
|
||||
50% { transform: scale(1.06); box-shadow: 0 16rpx 40rpx rgba(220, 38, 38, 0.55); }
|
||||
}
|
||||
|
||||
/* ===== Result overlay ===== */
|
||||
.game-page .gg-result-overlay {
|
||||
position: fixed;
|
||||
@@ -1067,6 +1104,80 @@
|
||||
box-shadow: 0 30rpx 80rpx rgba(22, 29, 25, 0.18);
|
||||
}
|
||||
|
||||
.game-page .gg-result-card.is-high-clear {
|
||||
border: 4rpx solid #dc2626;
|
||||
background: linear-gradient(180deg, #fff5f5 0%, #ffffff 36%);
|
||||
box-shadow:
|
||||
0 0 0 6rpx rgba(220, 38, 38, 0.1),
|
||||
0 30rpx 80rpx rgba(185, 28, 28, 0.22);
|
||||
}
|
||||
|
||||
.game-page .gg-result-high-head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12rpx;
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
|
||||
.game-page .gg-result-high-badge {
|
||||
font-size: 30rpx;
|
||||
font-weight: 900;
|
||||
color: #fff;
|
||||
background: #dc2626;
|
||||
padding: 6rpx 20rpx;
|
||||
border-radius: 10rpx;
|
||||
letter-spacing: 3rpx;
|
||||
box-shadow: 0 4rpx 14rpx rgba(220, 38, 38, 0.35);
|
||||
}
|
||||
|
||||
.game-page .gg-result-high-tag {
|
||||
font-size: 28rpx;
|
||||
font-weight: 800;
|
||||
color: #b91c1c;
|
||||
padding: 6rpx 16rpx;
|
||||
border-radius: 999rpx;
|
||||
background: rgba(254, 226, 226, 0.9);
|
||||
border: 2rpx solid rgba(220, 38, 38, 0.35);
|
||||
}
|
||||
|
||||
.game-page .gg-result-card.is-high-clear .gg-result-title {
|
||||
color: #991b1b;
|
||||
}
|
||||
|
||||
.game-page .gg-result-card.is-high-clear .gg-result-sub {
|
||||
color: #7f1d1d;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.game-page .gg-result-stats.is-high-clear {
|
||||
background: #fef2f2;
|
||||
border: 2rpx solid rgba(220, 38, 38, 0.2);
|
||||
}
|
||||
|
||||
.game-page .gg-result-stat-val.is-high-val {
|
||||
color: #dc2626;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
gap: 8rpx;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.game-page .gg-result-inline-badge {
|
||||
font-size: 22rpx;
|
||||
font-weight: 900;
|
||||
color: #fff;
|
||||
background: #dc2626;
|
||||
padding: 2rpx 10rpx;
|
||||
border-radius: 6rpx;
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
.game-page .gg-result-btn.is-high-primary {
|
||||
background: linear-gradient(135deg, #ef4444, #b91c1c);
|
||||
box-shadow: 0 10rpx 28rpx rgba(220, 38, 38, 0.35);
|
||||
}
|
||||
|
||||
.game-page .gg-result-title {
|
||||
font-size: 44rpx;
|
||||
font-weight: 900;
|
||||
|
||||
@@ -89,6 +89,22 @@
|
||||
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;
|
||||
|
||||
text {
|
||||
font-size: 26rpx;
|
||||
font-weight: 600;
|
||||
color: #991b1b;
|
||||
line-height: 1.45;
|
||||
}
|
||||
}
|
||||
|
||||
.weekly-page .phone-gate-tip {
|
||||
display: block;
|
||||
font-size: 28rpx;
|
||||
|
||||
@@ -108,10 +108,25 @@
|
||||
color: var(--on-primary);
|
||||
}
|
||||
|
||||
/* ===== 居家训练(DEV 内嵌,与 user 页同源入口) ===== */
|
||||
.weekly-page .st-training-module {
|
||||
padding: 10rpx var(--st-container-margin);
|
||||
margin: -10rpx -30rpx 10rpx -30rpx;
|
||||
/* ===== 居家训练(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 ===== */
|
||||
@@ -123,6 +138,21 @@
|
||||
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;
|
||||
}
|
||||
@@ -149,7 +179,7 @@
|
||||
|
||||
/* 糖分突袭游戏入口 */
|
||||
.weekly-page .st-game-entry {
|
||||
width: 100%;
|
||||
|
||||
margin-top: 24rpx;
|
||||
padding: 28rpx 32rpx;
|
||||
display: flex;
|
||||
@@ -626,6 +656,11 @@
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user