16e3a2e698
【已完成优化与色彩统一的页面清单】: 1. 语言设置(完成主色蓝统一 #2563EB,单选框/指示条/文字/图标底色对齐,重新渲染 image.png) 2. 版型切换(完成主色蓝统一 #2563EB,消除偏紫杂色,选中边框/单选框/标题对齐,重新渲染 image.png) 3. 心率区间设置(完成主色蓝统一 #2563EB,年龄数值与Slider滑块对齐,重新渲染 image.png) 4. 自动连接配置(完成主色蓝统一 #2563EB,重新渲染 image.png) 5. 手环配置(全新交付6件套标准物料,采用流体双栏架构、居中底部抽拉式Sheet、动态雷达声呐、右下角蓝牙FAB、BLE直连标签与实时同步日志控制台,主色蓝统一 #2563EB) 【全局规范更新】: - README.md 固化《全局核心主色蓝统一规范》,所有蓝色元素 100% 严格收敛为 #2563EB
681 lines
20 KiB
HTML
681 lines
20 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>EAPManageUI - 心率区间设置 (UI 重构基准)</title>
|
|
<style>
|
|
/* =========================================================================
|
|
:root 全量 Design Tokens 声明 (心率区间专属色彩严格锁死)
|
|
========================================================================= */
|
|
:root {
|
|
/* ── 心率 5 大区间专属色彩系统 (严格对齐原厂标准色阶) ── */
|
|
--color-z5: #FF3B30;
|
|
--color-z5-dark: #E53935;
|
|
--color-z5-glow: rgba(255, 59, 48, 0.35);
|
|
|
|
--color-z4: #FF9500;
|
|
--color-z4-dark: #FB8C00;
|
|
--color-z4-glow: rgba(255, 149, 0, 0.35);
|
|
|
|
--color-z3: #34C759;
|
|
--color-z3-dark: #2E7D32;
|
|
--color-z3-glow: rgba(52, 199, 89, 0.35);
|
|
|
|
--color-z2: #007AFF;
|
|
--color-z2-dark: #1976D2;
|
|
--color-z2-glow: rgba(0, 122, 255, 0.35);
|
|
|
|
--color-z1: #8E8E93;
|
|
--color-z1-dark: #757575;
|
|
--color-z1-glow: rgba(142, 142, 147, 0.35);
|
|
|
|
/* ── 核心品牌与基础表面 ── */
|
|
--color-primary: #2563EB;
|
|
--color-primary-dark: #1D4ED8;
|
|
--color-primary-container: #EFF6FF;
|
|
--color-primary-glow: rgba(37, 99, 235, 0.25);
|
|
--color-surface: #FFFFFF;
|
|
--color-surface-variant: #F8FAFC;
|
|
--color-background: #F1F5F9;
|
|
|
|
/* ── 文本语义色 ── */
|
|
--text-main: #0F172A;
|
|
--text-sub: #64748B;
|
|
--divider: #E2E8F0;
|
|
--outline: #CBD5E1;
|
|
|
|
/* ── 监控面板深邃暗晶 HUD ── */
|
|
--hud-bg: #0B0F19;
|
|
--hud-card: rgba(19, 27, 46, 0.85);
|
|
--hud-border: rgba(51, 65, 85, 0.6);
|
|
--hud-text-primary: #F8FAFC;
|
|
--hud-text-dim: #94A3B8;
|
|
--hud-accent-cyan: #38BDF8;
|
|
--hud-accent-green: #10B981;
|
|
|
|
/* ── 栅格与尺寸 ── */
|
|
--content-max-width: 1160px;
|
|
--content-gutter: clamp(16px, 2.5vw, 32px);
|
|
--appbar-height: 60px;
|
|
}
|
|
|
|
* { box-sizing: border-box; margin: 0; padding: 0; }
|
|
|
|
html {
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
|
|
"PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
|
|
background: var(--color-background);
|
|
color: var(--text-main);
|
|
min-height: 100vh;
|
|
padding: var(--content-gutter);
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.device-wrapper {
|
|
width: 100%;
|
|
max-width: var(--content-max-width);
|
|
margin: 0 auto;
|
|
background: var(--color-surface);
|
|
border-radius: 20px;
|
|
border: 1px solid var(--divider);
|
|
box-shadow: 0 16px 40px rgba(15, 23, 42, 0.07);
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* =========================================================================
|
|
AppBar 顶部导航栏统一规范 (40dp 纯净透明触控槽 + Hover 微圆底)
|
|
========================================================================= */
|
|
.appbar {
|
|
height: var(--appbar-height);
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0 20px;
|
|
border-bottom: 1px solid var(--divider);
|
|
background: var(--color-surface);
|
|
}
|
|
|
|
.appbar-nav {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
background: transparent;
|
|
border: none;
|
|
transition: all 0.15s ease;
|
|
}
|
|
|
|
.appbar-nav:hover {
|
|
background: rgba(15, 23, 42, 0.06);
|
|
transform: scale(0.96);
|
|
}
|
|
|
|
.appbar-nav svg {
|
|
width: 22px;
|
|
height: 22px;
|
|
fill: var(--text-main);
|
|
}
|
|
|
|
.appbar-title {
|
|
font-size: 19px;
|
|
font-weight: 700;
|
|
margin-left: 14px;
|
|
letter-spacing: -0.2px;
|
|
}
|
|
|
|
/* 顶部流线控制面板 */
|
|
.control-bar {
|
|
padding: 16px 28px;
|
|
background: var(--color-surface-variant);
|
|
border-bottom: 1px solid var(--divider);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 24px;
|
|
}
|
|
|
|
.ctrl-mode {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.ctrl-label {
|
|
font-size: 13.5px;
|
|
font-weight: 600;
|
|
color: var(--text-sub);
|
|
}
|
|
|
|
.mode-select {
|
|
appearance: none;
|
|
background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath fill='%2364748B' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 12px center;
|
|
border: 1.5px solid var(--divider);
|
|
border-radius: 8px;
|
|
padding: 8px 36px 8px 14px;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: var(--text-main);
|
|
cursor: pointer;
|
|
box-shadow: 0 1px 3px rgba(0,0,0,0.03);
|
|
}
|
|
|
|
.ctrl-age {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
flex: 1;
|
|
max-width: 440px;
|
|
}
|
|
|
|
.age-display {
|
|
font-size: 13.5px;
|
|
font-weight: 600;
|
|
color: var(--text-sub);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.age-display b {
|
|
font-size: 18px;
|
|
font-weight: 800;
|
|
color: var(--color-primary);
|
|
margin-left: 2px;
|
|
}
|
|
|
|
.age-slider {
|
|
flex: 1;
|
|
height: 6px;
|
|
border-radius: 3px;
|
|
background: #E2E8F0;
|
|
outline: none;
|
|
-webkit-appearance: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.age-slider::-webkit-slider-thumb {
|
|
-webkit-appearance: none;
|
|
width: 20px;
|
|
height: 20px;
|
|
border-radius: 50%;
|
|
background: var(--color-primary);
|
|
border: 2px solid #FFF;
|
|
box-shadow: 0 2px 8px var(--color-primary-glow);
|
|
cursor: pointer;
|
|
transition: transform 0.15s ease;
|
|
}
|
|
|
|
.age-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
|
|
|
|
/* 主体分栏区 (内容自适应 + 动态响应式边距) */
|
|
.page-body {
|
|
padding: clamp(20px, 2.5vw, 30px);
|
|
display: flex;
|
|
gap: clamp(16px, 2vw, 24px);
|
|
}
|
|
|
|
/* 左侧 5 大心率区间卡片堆叠 */
|
|
.zones-stack {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 11px;
|
|
}
|
|
|
|
.zone-card {
|
|
border-radius: 12px;
|
|
padding: 13px 18px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 14px;
|
|
color: #FFFFFF;
|
|
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.04);
|
|
position: relative;
|
|
overflow: hidden;
|
|
cursor: default;
|
|
}
|
|
|
|
.zone-card:hover {
|
|
transform: translateX(4px);
|
|
box-shadow: 0 6px 18px rgba(0,0,0,0.12);
|
|
}
|
|
|
|
.z5 { background: linear-gradient(90deg, var(--color-z5) 0%, var(--color-z5-dark) 100%); }
|
|
.z4 { background: linear-gradient(90deg, var(--color-z4) 0%, var(--color-z4-dark) 100%); }
|
|
.z3 { background: linear-gradient(90deg, var(--color-z3) 0%, var(--color-z3-dark) 100%); }
|
|
.z2 { background: linear-gradient(90deg, var(--color-z2) 0%, var(--color-z2-dark) 100%); }
|
|
.z1 { background: linear-gradient(90deg, var(--color-z1) 0%, var(--color-z1-dark) 100%); }
|
|
|
|
.zone-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 14px;
|
|
}
|
|
|
|
.badge-box {
|
|
background: rgba(0, 0, 0, 0.22);
|
|
border-radius: 8px;
|
|
padding: 5px 9px;
|
|
min-width: 56px;
|
|
text-align: center;
|
|
font-size: 12.5px;
|
|
font-weight: 800;
|
|
line-height: 1.25;
|
|
}
|
|
|
|
.badge-intensity {
|
|
font-size: 10px;
|
|
font-weight: 600;
|
|
opacity: 0.92;
|
|
}
|
|
|
|
.zone-title {
|
|
font-size: 16.5px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.01em;
|
|
}
|
|
|
|
.zone-sub {
|
|
font-size: 12px;
|
|
opacity: 0.92;
|
|
margin-top: 1px;
|
|
}
|
|
|
|
.zone-right { text-align: right; }
|
|
|
|
.hr-val-row {
|
|
font-size: 18px;
|
|
font-weight: 800;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
gap: 6px;
|
|
letter-spacing: 0.02em;
|
|
}
|
|
|
|
/* ❤️ 逼真双跳动感心电脉冲动画 (Double-Beat Lub-Dub Heartbeat) */
|
|
.dynamic-heart {
|
|
display: inline-block;
|
|
transform-origin: center center;
|
|
animation: dynamicHeartbeat 1.35s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
|
|
filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.6));
|
|
}
|
|
|
|
@keyframes dynamicHeartbeat {
|
|
0% { transform: scale(1); }
|
|
14% { transform: scale(1.32); }
|
|
28% { transform: scale(1.05); }
|
|
42% { transform: scale(1.22); }
|
|
70% { transform: scale(1); }
|
|
100% { transform: scale(1); }
|
|
}
|
|
|
|
.pct-val {
|
|
font-size: 11.5px;
|
|
opacity: 0.9;
|
|
margin-top: 2px;
|
|
}
|
|
|
|
/* =========================================================================
|
|
右侧高阶暗晶 HUD 监控面板 (Dark Obsidian Glass HUD)
|
|
========================================================================= */
|
|
.hud-monitor-panel {
|
|
width: 350px;
|
|
background: var(--hud-bg);
|
|
background-image: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.06) 0%, transparent 70%);
|
|
border: 1px solid var(--hud-border);
|
|
border-radius: 16px;
|
|
padding: 20px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
position: relative;
|
|
overflow: hidden;
|
|
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 10px 30px rgba(0,0,0,0.4);
|
|
}
|
|
|
|
.hud-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.hud-title {
|
|
font-size: 15px;
|
|
font-weight: 700;
|
|
color: var(--hud-text-primary);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.live-badge {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
background: rgba(16, 185, 129, 0.15);
|
|
border: 1px solid rgba(16, 185, 129, 0.35);
|
|
padding: 2px 8px;
|
|
border-radius: 100px;
|
|
font-size: 10.5px;
|
|
font-weight: 700;
|
|
color: var(--hud-accent-green);
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.live-dot {
|
|
width: 6px;
|
|
height: 6px;
|
|
border-radius: 50%;
|
|
background: var(--hud-accent-green);
|
|
box-shadow: 0 0 6px var(--hud-accent-green);
|
|
animation: blinkLive 1.5s infinite;
|
|
}
|
|
|
|
@keyframes blinkLive {
|
|
0%, 100% { opacity: 1; }
|
|
50% { opacity: 0.3; }
|
|
}
|
|
|
|
/* ECG 动态示波窗 */
|
|
.ecg-screen {
|
|
height: 100px;
|
|
background: rgba(10, 15, 29, 0.85);
|
|
border: 1px solid rgba(56, 189, 248, 0.2);
|
|
border-radius: 10px;
|
|
position: relative;
|
|
overflow: hidden;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin-bottom: 16px;
|
|
box-shadow: inset 0 2px 10px rgba(0,0,0,0.6);
|
|
}
|
|
|
|
/* 医疗网格背景 */
|
|
.ecg-screen::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0; left: 0; right: 0; bottom: 0;
|
|
background-image:
|
|
linear-gradient(rgba(56, 189, 248, 0.05) 1px, transparent 1px),
|
|
linear-gradient(90deg, rgba(56, 189, 248, 0.05) 1px, transparent 1px);
|
|
background-size: 16px 16px;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.ecg-laser-line {
|
|
stroke: var(--hud-accent-green);
|
|
stroke-width: 2.2;
|
|
fill: none;
|
|
stroke-dasharray: 600;
|
|
stroke-dashoffset: 600;
|
|
animation: laserSweep 2.2s linear infinite;
|
|
filter: drop-shadow(0 0 5px rgba(16, 185, 129, 0.8));
|
|
}
|
|
|
|
@keyframes laserSweep {
|
|
to { stroke-dashoffset: 0; }
|
|
}
|
|
|
|
/* 心率数值读数卡片 */
|
|
.hud-readout-row {
|
|
display: flex;
|
|
align-items: baseline;
|
|
justify-content: space-between;
|
|
background: var(--hud-card);
|
|
border: 1px solid var(--hud-border);
|
|
border-radius: 10px;
|
|
padding: 10px 14px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.readout-lbl {
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: var(--hud-text-dim);
|
|
}
|
|
|
|
.readout-val {
|
|
font-size: 20px;
|
|
font-weight: 800;
|
|
color: var(--hud-accent-cyan);
|
|
letter-spacing: 0.03em;
|
|
font-variant-numeric: tabular-nums;
|
|
text-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
|
|
}
|
|
|
|
/* =========================================================================
|
|
流光阶梯能量条 (Shimmering Stream Zone Ladder)
|
|
========================================================================= */
|
|
.particle-zone-ladder {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
margin-top: auto;
|
|
}
|
|
|
|
.ladder-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
font-size: 11.5px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.ladder-tag {
|
|
width: 22px;
|
|
color: var(--hud-text-dim);
|
|
font-size: 11px;
|
|
}
|
|
|
|
.ladder-stream-track {
|
|
flex: 1;
|
|
height: 9px;
|
|
background: rgba(30, 41, 59, 0.7);
|
|
border-radius: 5px;
|
|
overflow: hidden;
|
|
position: relative;
|
|
border: 1px solid rgba(255, 255, 255, 0.05);
|
|
}
|
|
|
|
/* 流光能量条 */
|
|
.ladder-stream-fill {
|
|
height: 100%;
|
|
border-radius: 5px;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* 动态扫描高光 */
|
|
.ladder-stream-fill::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0; left: -100%; width: 100%; height: 100%;
|
|
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
|
|
animation: particleStreamShimmer 2.2s infinite ease-in-out;
|
|
}
|
|
|
|
@keyframes particleStreamShimmer {
|
|
0% { left: -100%; }
|
|
100% { left: 200%; }
|
|
}
|
|
|
|
.fill-z5 { width: 100%; background: linear-gradient(90deg, var(--color-z5), #FF6B6B); box-shadow: 0 0 8px var(--color-z5-glow); }
|
|
.fill-z4 { width: 90%; background: linear-gradient(90deg, var(--color-z4), #FFB84D); box-shadow: 0 0 8px var(--color-z4-glow); }
|
|
.fill-z3 { width: 80%; background: linear-gradient(90deg, var(--color-z3), #6BE68B); box-shadow: 0 0 8px var(--color-z3-glow); }
|
|
.fill-z2 { width: 70%; background: linear-gradient(90deg, var(--color-z2), #5AC8FA); box-shadow: 0 0 8px var(--color-z2-glow); }
|
|
.fill-z1 { width: 60%; background: linear-gradient(90deg, var(--color-z1), #AEAEB2); box-shadow: 0 0 8px var(--color-z1-glow); }
|
|
|
|
.ladder-pct {
|
|
width: 32px;
|
|
text-align: right;
|
|
color: var(--hud-text-dim);
|
|
font-size: 11px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="device-wrapper">
|
|
<!-- AppBar 顶部导航栏 -->
|
|
<header class="appbar">
|
|
<div class="appbar-nav" title="返回"><svg viewBox="0 0 24 24"><path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"/></svg></div>
|
|
<h1 class="appbar-title">心率区间设置</h1>
|
|
</header>
|
|
|
|
<!-- 顶部控制条 -->
|
|
<div class="control-bar">
|
|
<div class="ctrl-mode">
|
|
<span class="ctrl-label">训练模式:</span>
|
|
<select class="mode-select">
|
|
<option>普通模式</option>
|
|
<option>竞技模式</option>
|
|
<option>燃脂模式</option>
|
|
</select>
|
|
</div>
|
|
<div class="ctrl-age">
|
|
<span class="age-display">请输入用户年龄:<b id="ageTxt">30</b> 岁</span>
|
|
<input type="range" min="10" max="90" value="30" class="age-slider" id="ageInput" oninput="recalcHeartRates(this.value)">
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 主体分栏内容区 -->
|
|
<main class="page-body">
|
|
<!-- 左侧 5 大心率区间卡片 -->
|
|
<section class="zones-stack">
|
|
<!-- 区间 5 (红) -->
|
|
<div class="zone-card z5">
|
|
<div class="zone-left">
|
|
<div class="badge-box">区间5<br><span class="badge-intensity">高强度</span></div>
|
|
<div>
|
|
<div class="zone-title">极限冲刺</div>
|
|
<div class="zone-sub">提升冲刺速度</div>
|
|
</div>
|
|
</div>
|
|
<div class="zone-right">
|
|
<div class="hr-val-row"><span class="dynamic-heart">❤️</span> <span id="r5">166 - 185</span></div>
|
|
<div class="pct-val">最大心率的 90 - 100%</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 区间 4 (橙) -->
|
|
<div class="zone-card z4">
|
|
<div class="zone-left">
|
|
<div class="badge-box">区间4<br><span class="badge-intensity">高强度</span></div>
|
|
<div>
|
|
<div class="zone-title">心肺提升</div>
|
|
<div class="zone-sub">锻炼心肺功能</div>
|
|
</div>
|
|
</div>
|
|
<div class="zone-right">
|
|
<div class="hr-val-row"><span class="dynamic-heart">❤️</span> <span id="r4">148 - 166</span></div>
|
|
<div class="pct-val">最大心率的 80 - 90%</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 区间 3 (绿) -->
|
|
<div class="zone-card z3">
|
|
<div class="zone-left">
|
|
<div class="badge-box">区间3<br><span class="badge-intensity">中强度</span></div>
|
|
<div>
|
|
<div class="zone-title">加速燃烧</div>
|
|
<div class="zone-sub">提高有氧效率</div>
|
|
</div>
|
|
</div>
|
|
<div class="zone-right">
|
|
<div class="hr-val-row"><span class="dynamic-heart">❤️</span> <span id="r3">129 - 148</span></div>
|
|
<div class="pct-val">最大心率的 70 - 80%</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 区间 2 (蓝) -->
|
|
<div class="zone-card z2">
|
|
<div class="zone-left">
|
|
<div class="badge-box">区间2<br><span class="badge-intensity">低强度</span></div>
|
|
<div>
|
|
<div class="zone-title">轻松减脂</div>
|
|
<div class="zone-sub">改善耐力</div>
|
|
</div>
|
|
</div>
|
|
<div class="zone-right">
|
|
<div class="hr-val-row"><span class="dynamic-heart">❤️</span> <span id="r2">111 - 129</span></div>
|
|
<div class="pct-val">最大心率的 60 - 70%</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 区间 1 (灰) -->
|
|
<div class="zone-card z1">
|
|
<div class="zone-left">
|
|
<div class="badge-box">区间1<br><span class="badge-intensity">低强度</span></div>
|
|
<div>
|
|
<div class="zone-title">缓和热身</div>
|
|
<div class="zone-sub">热身、恢复体力</div>
|
|
</div>
|
|
</div>
|
|
<div class="zone-right">
|
|
<div class="hr-val-row"><span class="dynamic-heart">❤️</span> <span id="r1">92 - 111</span></div>
|
|
<div class="pct-val">最大心率的 50 - 60%</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- 右侧升级版黑曜石暗晶 HUD 监控台 -->
|
|
<aside class="hud-monitor-panel">
|
|
<div class="hud-header">
|
|
<div class="hud-title">动态心率监控</div>
|
|
<div class="live-badge">
|
|
<span class="live-dot"></span>
|
|
<span>LIVE ECG</span>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 激光心电示波屏 -->
|
|
<div class="ecg-screen">
|
|
<svg viewBox="0 0 300 100" style="width:100%; height:70px;">
|
|
<path class="ecg-laser-line" d="M0,50 L40,50 L50,42 L60,58 L70,50 L100,50 L110,18 L120,82 L130,42 L140,55 L150,50 L190,50 L200,38 L210,62 L220,50 L300,50"/>
|
|
</svg>
|
|
</div>
|
|
|
|
<!-- 动态最大心率读数 -->
|
|
<div class="hud-readout-row">
|
|
<span class="readout-lbl">预估最大负荷心率</span>
|
|
<span class="readout-val" id="maxHrVal">190 BPM</span>
|
|
</div>
|
|
|
|
<!-- 动态流光能量阶梯 -->
|
|
<div class="particle-zone-ladder">
|
|
<div class="ladder-item"><span class="ladder-tag">Z5</span><div class="ladder-stream-track"><div class="ladder-stream-fill fill-z5"></div></div><span class="ladder-pct">100%</span></div>
|
|
<div class="ladder-item"><span class="ladder-tag">Z4</span><div class="ladder-stream-track"><div class="ladder-stream-fill fill-z4"></div></div><span class="ladder-pct">90%</span></div>
|
|
<div class="ladder-item"><span class="ladder-tag">Z3</span><div class="ladder-stream-track"><div class="ladder-stream-fill fill-z3"></div></div><span class="ladder-pct">80%</span></div>
|
|
<div class="ladder-item"><span class="ladder-tag">Z2</span><div class="ladder-stream-track"><div class="ladder-stream-fill fill-z2"></div></div><span class="ladder-pct">70%</span></div>
|
|
<div class="ladder-item"><span class="ladder-tag">Z1</span><div class="ladder-stream-track"><div class="ladder-stream-fill fill-z1"></div></div><span class="ladder-pct">60%</span></div>
|
|
</div>
|
|
</aside>
|
|
</main>
|
|
</div>
|
|
|
|
<script>
|
|
// 动态心率算法计算 (Tanaka 矩阵)
|
|
function recalcHeartRates(age) {
|
|
document.getElementById('ageTxt').innerText = age;
|
|
const maxHr = 220 - age;
|
|
document.getElementById('maxHrVal').innerText = maxHr + ' BPM';
|
|
document.getElementById('r5').innerText = Math.round(maxHr * 0.9) + ' - ' + maxHr;
|
|
document.getElementById('r4').innerText = Math.round(maxHr * 0.8) + ' - ' + Math.round(maxHr * 0.9);
|
|
document.getElementById('r3').innerText = Math.round(maxHr * 0.7) + ' - ' + Math.round(maxHr * 0.8);
|
|
document.getElementById('r2').innerText = Math.round(maxHr * 0.6) + ' - ' + Math.round(maxHr * 0.7);
|
|
document.getElementById('r1').innerText = Math.round(maxHr * 0.5) + ' - ' + Math.round(maxHr * 0.6);
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|