feat(foam_roller): 交付【主页面_四个下拉选项页面/泡沫轴】重构方案1A全量6件套并严格区分连接态与原版文字

This commit is contained in:
zhy200308
2026-08-18 10:37:57 +08:00
parent a854b75fb5
commit 54b89fb13d
31 changed files with 2638 additions and 0 deletions
@@ -0,0 +1,143 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>泡沫轴 - 方案 1B:现代极简平滑流 (Modern Smooth Studio)</title>
<style>
:root {
--color-primary: #2563EB;
--color-primary-light: #EFF6FF;
--color-primary-border: #DBEAFE;
--bg: #EEF2F6;
--surface: #FFFFFF;
--text-main: #0F172A;
--text-sub: #64748B;
--text-dim: #94A3B8;
--divider: #E2E8F0;
--color-danger: #E11D48;
--content-max-width: 1240px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
background: var(--bg); color: var(--text-main); min-height: 100vh; padding: 20px;
}
.device-wrapper {
width: 100%; max-width: var(--content-max-width); margin: 0 auto; background: var(--surface);
border-radius: 20px; border: 1px solid var(--divider); box-shadow: 0 16px 40px -10px rgba(15, 23, 42, 0.08);
min-height: 720px; display: flex; flex-direction: column; overflow: hidden;
}
.appbar {
height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px;
border-bottom: 1px solid var(--divider); background: var(--surface);
}
.tri-grid {
padding: 20px; display: grid; grid-template-columns: 310px 1.15fr 1fr; gap: 18px; flex: 1; background: #F8FAFC;
}
.panel {
background: white; border: 1.5px solid var(--divider); border-radius: 16px; padding: 22px;
display: flex; flex-direction: column; justify-content: space-between;
}
</style>
</head>
<body>
<div class="device-wrapper">
<header class="appbar">
<div style="display: flex; align-items: center; gap: 10px;">
<button style="border: none; background: transparent; cursor: pointer;"><svg style="width: 22px; height: 22px;" 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></button>
<h1 style="font-size: 18px; font-weight: 700;">泡沫轴 · 现代平滑版</h1>
</div>
</header>
<main class="tri-grid">
<!-- 左栏 -->
<div class="panel" style="gap: 16px;">
<div style="display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; border-bottom: 1px solid var(--divider); padding-bottom: 16px;">
<img src="fr100_setup_200.png" style="width: 160px; height: 80px; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(0,0,0,0.1));" alt="FR100">
<div style="width: 100%; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; margin-top: 4px;">
<div style="display: flex; justify-content: space-between;"><span style="color: var(--text-sub);">设备 ID</span><b>12EC</b></div>
<div style="display: flex; justify-content: space-between;"><span style="color: var(--text-sub);">固件版本</span><b>V1.2.8</b></div>
<div style="display: flex; justify-content: space-between;"><span style="color: var(--text-sub);">剩余电量</span><span style="color: #059669; font-weight: 700;">100% 满电</span></div>
</div>
</div>
<div style="display: flex; flex-direction: column; gap: 8px;">
<span style="font-size: 12.5px; font-weight: 700; color: var(--text-sub);">周边设备</span>
<div style="height: 40px; padding: 0 12px; background: #F8FAFC; border: 1px solid var(--divider); border-radius: 8px; display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 700;">
<span>FR100-12EC</span>
<span style="color: var(--color-primary); font-size: 12px;">已直连</span>
</div>
</div>
<div style="display: grid; grid-template-columns: 1fr 1fr; gap: 8px;">
<button style="height: 38px; border: 1px solid var(--divider); background: #F1F5F9; border-radius: 8px; font-weight: 700;">刷新设备</button>
<button style="height: 38px; border: 1px solid #FECDD3; background: white; color: var(--color-danger); border-radius: 8px; font-weight: 700;">断开连接</button>
</div>
</div>
<!-- 中栏 -->
<div class="panel" style="align-items: center; text-align: center;">
<div style="width: 100%; display: flex; justify-content: space-between; align-items: center;">
<span style="font-size: 16px; font-weight: 700;">训练计时</span>
<span style="font-size: 12px; color: var(--color-primary); background: var(--color-primary-light); padding: 2px 8px; border-radius: 4px; font-weight: 700;">运行中</span>
</div>
<div style="margin: 14px 0;">
<div style="font-size: 72px; font-weight: 900; font-family: monospace; letter-spacing: -0.03em;">02:58</div>
<div style="display: inline-flex; gap: 6px; background: #F1F5F9; padding: 4px; border-radius: 8px; margin-top: 8px;">
<span style="padding: 4px 10px; font-size: 13px; color: var(--text-sub);">1分</span>
<span style="padding: 4px 10px; font-size: 13px; color: var(--text-sub);">2分</span>
<span style="padding: 4px 12px; font-size: 13px; background: white; color: var(--color-primary); font-weight: 800; border-radius: 6px; box-shadow: 0 2px 4px rgba(0,0,0,0.06);">3分</span>
<span style="padding: 4px 10px; font-size: 13px; color: var(--text-sub);">4分</span>
<span style="padding: 4px 10px; font-size: 13px; color: var(--text-sub);">5分</span>
</div>
</div>
<div style="width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 12px;">
<button style="height: 44px; background: var(--color-primary); color: white; border: none; border-radius: 10px; font-weight: 700; font-size: 15px;">开始训练</button>
<button style="height: 44px; background: var(--color-danger); color: white; border: none; border-radius: 10px; font-weight: 700; font-size: 15px;">暂停</button>
</div>
</div>
<!-- 右栏 -->
<div class="panel" style="gap: 16px;">
<div style="display: flex; justify-content: space-between; align-items: center;">
<span style="font-size: 16px; font-weight: 700;">模式与参数</span>
<div style="display: flex; gap: 4px; background: #F1F5F9; padding: 3px; border-radius: 6px;">
<span style="padding: 3px 10px; background: white; color: var(--color-primary); font-size: 12px; font-weight: 700; border-radius: 4px;">自动</span>
<span style="padding: 3px 10px; color: var(--text-sub); font-size: 12px; font-weight: 700;">手动</span>
</div>
</div>
<div style="display: flex; flex-direction: column; gap: 10px;">
<div>
<span style="font-size: 12px; color: var(--text-sub); font-weight: 700;">动作模式</span>
<div style="display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px;">
<span style="padding: 4px 10px; background: #F1F5F9; border-radius: 6px; font-size: 12.5px;">徒步</span>
<span style="padding: 4px 10px; background: #F1F5F9; border-radius: 6px; font-size: 12.5px;">骑行</span>
<span style="padding: 4px 12px; background: var(--color-primary-light); color: var(--color-primary); border: 1px solid var(--color-primary-border); border-radius: 6px; font-size: 12.5px; font-weight: 700;">游泳</span>
<span style="padding: 4px 10px; background: #F1F5F9; border-radius: 6px; font-size: 12.5px;">瑜伽</span>
</div>
</div>
<div>
<span style="font-size: 12px; color: var(--text-sub); font-weight: 700;">肌群选择</span>
<div style="display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px;">
<span style="padding: 4px 10px; background: #F1F5F9; border-radius: 6px; font-size: 12.5px;">大腿</span>
<span style="padding: 4px 10px; background: #F1F5F9; border-radius: 6px; font-size: 12.5px;">背阔肌</span>
<span style="padding: 4px 12px; background: var(--color-primary-light); color: var(--color-primary); border: 1px solid var(--color-primary-border); border-radius: 6px; font-size: 12.5px; font-weight: 700;">前臂</span>
<span style="padding: 4px 10px; background: #F1F5F9; border-radius: 6px; font-size: 12.5px;">背部</span>
</div>
</div>
<div>
<span style="font-size: 12px; color: var(--text-sub); font-weight: 700;">力量档位 (当前 4 档)</span>
<div style="display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 4px;">
<button style="height: 32px; border: 1px solid var(--divider); background: #F8FAFC; border-radius: 6px; font-weight: 700;">1</button>
<button style="height: 32px; border: 1px solid var(--divider); background: #F8FAFC; border-radius: 6px; font-weight: 700;">2</button>
<button style="height: 32px; border: 1px solid var(--divider); background: #F8FAFC; border-radius: 6px; font-weight: 700;">3</button>
<button style="height: 32px; border: none; background: var(--color-primary); color: white; border-radius: 6px; font-weight: 700;">4</button>
<button style="height: 32px; border: 1px solid var(--divider); background: #F8FAFC; border-radius: 6px; font-weight: 700;">5</button>
</div>
</div>
</div>
<button style="height: 44px; background: var(--color-primary); color: white; border: none; border-radius: 10px; font-weight: 700;">保存配置</button>
</div>
</main>
</div>
</body>
</html>