feat(ui): 完成【版型切换】与【心率区间设置】页面 UI 重构及标准物料交付
This commit is contained in:
Vendored
BIN
Binary file not shown.
@@ -0,0 +1,225 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>方案 1:M3 Expressive 竖向卡片流 (Vertical Stack)</title>
|
||||
<style>
|
||||
:root {
|
||||
--color-primary: #3949AB;
|
||||
--color-primary-container: #EEF2FF;
|
||||
--color-on-primary-container: #1A237E;
|
||||
--color-secondary: #00897B;
|
||||
--color-secondary-container: #E0F2F1;
|
||||
--color-surface: #FFFFFF;
|
||||
--color-background: #F8FAFC;
|
||||
--text-primary: #0F172A;
|
||||
--text-secondary: #475569;
|
||||
--divider: #E2E8F0;
|
||||
--outline: #CBD5E1;
|
||||
--corner-card: 16px;
|
||||
--corner-btn: 12px;
|
||||
--content-max-width: 840px;
|
||||
}
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
|
||||
background: var(--color-background);
|
||||
color: var(--text-primary);
|
||||
min-height: 100vh;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
.device-container {
|
||||
width: 100%;
|
||||
max-width: 1024px;
|
||||
margin: 20px auto;
|
||||
background: var(--color-surface);
|
||||
border-radius: 16px;
|
||||
border: 1px solid var(--divider);
|
||||
overflow: hidden;
|
||||
box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
|
||||
}
|
||||
.appbar {
|
||||
height: 60px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 24px;
|
||||
background: var(--color-surface);
|
||||
border-bottom: 1px solid var(--divider);
|
||||
}
|
||||
.appbar-nav {
|
||||
width: 38px;
|
||||
height: 38px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 10px;
|
||||
cursor: pointer;
|
||||
background: #F1F5F9;
|
||||
transition: all 0.15s ease;
|
||||
}
|
||||
.appbar-nav:hover { background: #E2E8F0; }
|
||||
.appbar-nav svg { width: 20px; height: 20px; fill: var(--text-primary); }
|
||||
.appbar-title {
|
||||
font-size: 19px;
|
||||
font-weight: 600;
|
||||
margin-left: 14px;
|
||||
}
|
||||
.page-body {
|
||||
padding: 36px 24px 48px;
|
||||
max-width: var(--content-max-width);
|
||||
margin: 0 auto;
|
||||
}
|
||||
.hero {
|
||||
text-align: center;
|
||||
margin-bottom: 32px;
|
||||
}
|
||||
.hero-icon {
|
||||
width: 64px;
|
||||
height: 64px;
|
||||
margin: 0 auto 16px;
|
||||
border-radius: 16px;
|
||||
background: #FEE2E2;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.hero-icon svg { width: 34px; height: 34px; fill: #EF4444; }
|
||||
.hero-title {
|
||||
font-size: 22px;
|
||||
font-weight: 700;
|
||||
color: var(--text-primary);
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
.hero-sub {
|
||||
font-size: 14px;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
.card-stack {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 16px;
|
||||
margin-bottom: 32px;
|
||||
}
|
||||
.edition-card {
|
||||
background: #FFFFFF;
|
||||
border: 1.5px solid var(--divider);
|
||||
border-radius: var(--corner-card);
|
||||
padding: 20px 24px;
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 16px;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
box-shadow: 0 1px 3px rgba(0,0,0,0.02);
|
||||
}
|
||||
.edition-card:hover {
|
||||
border-color: #94A3B8;
|
||||
background: #F8FAFC;
|
||||
}
|
||||
.edition-card.is-selected {
|
||||
border-color: var(--color-primary);
|
||||
background: var(--color-primary-container);
|
||||
box-shadow: 0 4px 16px rgba(57, 73, 171, 0.1);
|
||||
}
|
||||
.radio-outer {
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
border-radius: 50%;
|
||||
border: 2px solid var(--outline);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-top: 2px;
|
||||
flex-shrink: 0;
|
||||
background: #FFFFFF;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
.edition-card.is-selected .radio-outer {
|
||||
border-color: var(--color-primary);
|
||||
}
|
||||
.radio-inner {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
border-radius: 50%;
|
||||
background: var(--color-primary);
|
||||
opacity: 0;
|
||||
transform: scale(0.3);
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
.edition-card.is-selected .radio-inner {
|
||||
opacity: 1;
|
||||
transform: scale(1);
|
||||
}
|
||||
.edition-info { flex: 1; }
|
||||
.edition-name {
|
||||
font-size: 17px;
|
||||
font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
.edition-card.is-selected .edition-name {
|
||||
color: var(--color-on-primary-container);
|
||||
}
|
||||
.edition-desc {
|
||||
font-size: 13.5px;
|
||||
color: var(--text-secondary);
|
||||
line-height: 1.55;
|
||||
}
|
||||
.btn-confirm {
|
||||
width: 100%;
|
||||
height: 48px;
|
||||
background: var(--color-secondary-container);
|
||||
color: var(--color-secondary);
|
||||
border: none;
|
||||
border-radius: var(--corner-btn);
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: all 0.15s ease;
|
||||
}
|
||||
.btn-confirm:hover {
|
||||
background: #CCECE8;
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="device-container">
|
||||
<div class="appbar">
|
||||
<div class="appbar-nav"><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>
|
||||
<div class="appbar-title">选择版型</div>
|
||||
</div>
|
||||
<div class="page-body">
|
||||
<div class="hero">
|
||||
<div class="hero-icon"><svg viewBox="0 0 24 24"><path d="M5 9.2h3V19H5zM10.6 5h2.8v14h-2.8zm5.6 8H19v6h-2.8z"/></svg></div>
|
||||
<div class="hero-title">选择版型</div>
|
||||
<div class="hero-sub">请选择适合您使用场景的版型,后续可在设置中更改</div>
|
||||
</div>
|
||||
<div class="card-stack" id="editionList">
|
||||
<div class="edition-card" onclick="selectEdition(this)">
|
||||
<div class="radio-outer"><div class="radio-inner"></div></div>
|
||||
<div class="edition-info">
|
||||
<div class="edition-name">专业版</div>
|
||||
<div class="edition-desc">为专业场馆管理员设计,布局固定专业化,核心数据字段默认全开,开箱即用</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="edition-card is-selected" onclick="selectEdition(this)">
|
||||
<div class="radio-outer"><div class="radio-inner"></div></div>
|
||||
<div class="edition-info">
|
||||
<div class="edition-name">自定义功能版</div>
|
||||
<div class="edition-desc">高度可配置,所有高级功能开放,适合研究员和高级用户</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<button class="btn-confirm">确定</button>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
function selectEdition(el) {
|
||||
document.querySelectorAll('.edition-card').forEach(c => c.classList.remove('is-selected'));
|
||||
el.classList.add('is-selected');
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,249 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>方案 2:Neo-Bento 双列并排对照大卡片</title>
|
||||
<style>
|
||||
:root {
|
||||
--color-primary: #2563EB;
|
||||
--color-primary-container: #EFF6FF;
|
||||
--color-secondary: #00897B;
|
||||
--color-secondary-container: #E0F2F1;
|
||||
--color-surface: #FFFFFF;
|
||||
--color-background: #F4F6F9;
|
||||
--text-primary: #0F172A;
|
||||
--text-secondary: #64748B;
|
||||
--divider: #E2E8F0;
|
||||
--outline: #CBD5E1;
|
||||
--corner-card: 18px;
|
||||
--content-max-width: 900px;
|
||||
}
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
|
||||
background: var(--color-background);
|
||||
color: var(--text-primary);
|
||||
min-height: 100vh;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
.device-container {
|
||||
width: 100%;
|
||||
max-width: 1024px;
|
||||
margin: 20px auto;
|
||||
background: var(--color-background);
|
||||
border-radius: 18px;
|
||||
overflow: hidden;
|
||||
border: 1px solid var(--divider);
|
||||
}
|
||||
.appbar {
|
||||
height: 62px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 24px;
|
||||
background: var(--color-surface);
|
||||
border-bottom: 1px solid var(--divider);
|
||||
}
|
||||
.appbar-nav {
|
||||
width: 38px;
|
||||
height: 38px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 10px;
|
||||
cursor: pointer;
|
||||
background: #F8FAFC;
|
||||
border: 1px solid #E2E8F0;
|
||||
}
|
||||
.appbar-nav svg { width: 20px; height: 20px; fill: var(--text-primary); }
|
||||
.appbar-title {
|
||||
font-size: 19px;
|
||||
font-weight: 600;
|
||||
margin-left: 14px;
|
||||
}
|
||||
.page-body {
|
||||
padding: 32px 24px 44px;
|
||||
max-width: var(--content-max-width);
|
||||
margin: 0 auto;
|
||||
}
|
||||
.hero {
|
||||
text-align: center;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
.hero-icon {
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
margin: 0 auto 14px;
|
||||
border-radius: 16px;
|
||||
background: #FEE2E2;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
|
||||
}
|
||||
.hero-icon svg { width: 32px; height: 32px; fill: #EF4444; }
|
||||
.hero-title {
|
||||
font-size: 22px;
|
||||
font-weight: 700;
|
||||
color: var(--text-primary);
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
.hero-sub {
|
||||
font-size: 13.5px;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
.bento-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
gap: 20px;
|
||||
margin-bottom: 32px;
|
||||
}
|
||||
.bento-card {
|
||||
background: var(--color-surface);
|
||||
border: 2px solid #E2E8F0;
|
||||
border-radius: var(--corner-card);
|
||||
padding: 28px 24px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
position: relative;
|
||||
box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
|
||||
}
|
||||
.bento-card:hover {
|
||||
border-color: #94A3B8;
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
|
||||
}
|
||||
.bento-card.is-selected {
|
||||
border-color: var(--color-primary);
|
||||
background: #FFFFFF;
|
||||
box-shadow: 0 0 0 1px var(--color-primary), 0 12px 32px rgba(37, 99, 235, 0.12);
|
||||
}
|
||||
.card-header-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
.card-badge {
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
padding: 4px 10px;
|
||||
border-radius: 6px;
|
||||
background: #F1F5F9;
|
||||
color: #475569;
|
||||
}
|
||||
.bento-card.is-selected .card-badge {
|
||||
background: var(--color-primary-container);
|
||||
color: var(--color-primary);
|
||||
}
|
||||
.radio-outer {
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
border-radius: 50%;
|
||||
border: 2px solid var(--outline);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: #FFF;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
.bento-card.is-selected .radio-outer {
|
||||
border-color: var(--color-primary);
|
||||
background: var(--color-primary);
|
||||
}
|
||||
.radio-inner {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
background: #FFF;
|
||||
opacity: 0;
|
||||
transform: scale(0.3);
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
.bento-card.is-selected .radio-inner {
|
||||
opacity: 1;
|
||||
transform: scale(1);
|
||||
}
|
||||
.edition-name {
|
||||
font-size: 19px;
|
||||
font-weight: 700;
|
||||
color: var(--text-primary);
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.bento-card.is-selected .edition-name {
|
||||
color: var(--color-primary);
|
||||
}
|
||||
.edition-desc {
|
||||
font-size: 14px;
|
||||
color: var(--text-secondary);
|
||||
line-height: 1.6;
|
||||
flex: 1;
|
||||
}
|
||||
.action-wrap {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
.btn-confirm {
|
||||
width: 280px;
|
||||
height: 48px;
|
||||
background: var(--color-secondary-container);
|
||||
color: var(--color-secondary);
|
||||
border: none;
|
||||
border-radius: 12px;
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: all 0.15s ease;
|
||||
box-shadow: 0 2px 8px rgba(0, 137, 123, 0.15);
|
||||
}
|
||||
.btn-confirm:hover {
|
||||
background: #CCECE8;
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="device-container">
|
||||
<div class="appbar">
|
||||
<div class="appbar-nav"><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>
|
||||
<div class="appbar-title">选择版型</div>
|
||||
</div>
|
||||
<div class="page-body">
|
||||
<div class="hero">
|
||||
<div class="hero-icon"><svg viewBox="0 0 24 24"><path d="M5 9.2h3V19H5zM10.6 5h2.8v14h-2.8zm5.6 8H19v6h-2.8z"/></svg></div>
|
||||
<div class="hero-title">选择版型</div>
|
||||
<div class="hero-sub">请选择适合您使用场景的版型,后续可在设置中更改</div>
|
||||
</div>
|
||||
<div class="bento-grid" id="editionList">
|
||||
<div class="bento-card" onclick="selectEdition(this)">
|
||||
<div class="card-header-row">
|
||||
<span class="card-badge">场馆推荐</span>
|
||||
<div class="radio-outer"><div class="radio-inner"></div></div>
|
||||
</div>
|
||||
<div class="edition-name">专业版</div>
|
||||
<div class="edition-desc">为专业场馆管理员设计,布局固定专业化,核心数据字段默认全开,开箱即用</div>
|
||||
</div>
|
||||
<div class="bento-card is-selected" onclick="selectEdition(this)">
|
||||
<div class="card-header-row">
|
||||
<span class="card-badge">高阶定制</span>
|
||||
<div class="radio-outer"><div class="radio-inner"></div></div>
|
||||
</div>
|
||||
<div class="edition-name">自定义功能版</div>
|
||||
<div class="edition-desc">高度可配置,所有高级功能开放,适合研究员和高级用户</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="action-wrap">
|
||||
<button class="btn-confirm">确定</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
function selectEdition(el) {
|
||||
document.querySelectorAll('.bento-card').forEach(c => c.classList.remove('is-selected'));
|
||||
el.classList.add('is-selected');
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,257 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>方案 3:Split Master-Detail 双栏控制台 (延续语言设置架构)</title>
|
||||
<style>
|
||||
:root {
|
||||
--color-primary: #3949AB;
|
||||
--color-primary-container: #EEF2FF;
|
||||
--color-on-primary-container: #1A237E;
|
||||
--color-secondary: #00897B;
|
||||
--color-secondary-container: #E0F2F1;
|
||||
--color-surface: #FFFFFF;
|
||||
--color-background: #F1F5F9;
|
||||
--text-primary: #0F172A;
|
||||
--text-secondary: #64748B;
|
||||
--divider: #E2E8F0;
|
||||
--outline: #CBD5E1;
|
||||
--corner-card: 16px;
|
||||
--content-max-width: 920px;
|
||||
--sidebar-width: 300px;
|
||||
}
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
|
||||
background: var(--color-background);
|
||||
color: var(--text-primary);
|
||||
min-height: 100vh;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
.device-container {
|
||||
width: 100%;
|
||||
max-width: 1024px;
|
||||
margin: 20px auto;
|
||||
background: var(--color-surface);
|
||||
border-radius: 18px;
|
||||
overflow: hidden;
|
||||
border: 1px solid var(--divider);
|
||||
box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
|
||||
}
|
||||
.appbar {
|
||||
height: 60px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 24px;
|
||||
background: var(--color-surface);
|
||||
border-bottom: 1px solid var(--divider);
|
||||
}
|
||||
.appbar-nav {
|
||||
width: 38px;
|
||||
height: 38px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 10px;
|
||||
cursor: pointer;
|
||||
background: #F8FAFC;
|
||||
border: 1px solid #E2E8F0;
|
||||
}
|
||||
.appbar-nav svg { width: 20px; height: 20px; fill: var(--text-primary); }
|
||||
.appbar-title {
|
||||
font-size: 19px;
|
||||
font-weight: 600;
|
||||
margin-left: 14px;
|
||||
}
|
||||
.page-body {
|
||||
padding: 32px 24px;
|
||||
background: var(--color-background);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
.split-layout {
|
||||
width: 100%;
|
||||
max-width: var(--content-max-width);
|
||||
display: flex;
|
||||
gap: 24px;
|
||||
align-items: stretch;
|
||||
}
|
||||
.summary-sidebar {
|
||||
flex: 0 0 var(--sidebar-width);
|
||||
background: #FFFFFF;
|
||||
border-radius: var(--corner-card);
|
||||
padding: 28px 24px;
|
||||
border: 1px solid var(--divider);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.sidebar-icon {
|
||||
width: 56px;
|
||||
height: 56px;
|
||||
border-radius: 14px;
|
||||
background: #FEE2E2;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-bottom: 18px;
|
||||
}
|
||||
.sidebar-icon svg { width: 30px; height: 30px; fill: #EF4444; }
|
||||
.sidebar-title {
|
||||
font-size: 20px;
|
||||
font-weight: 700;
|
||||
color: var(--text-primary);
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
.sidebar-desc {
|
||||
font-size: 13.5px;
|
||||
color: var(--text-secondary);
|
||||
line-height: 1.5;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
.curr-status-box {
|
||||
margin-top: auto;
|
||||
background: #F8FAFC;
|
||||
border-radius: 12px;
|
||||
padding: 16px;
|
||||
border: 1px solid var(--divider);
|
||||
}
|
||||
.curr-status-label {
|
||||
font-size: 12px;
|
||||
color: var(--text-secondary);
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
.curr-status-val {
|
||||
font-size: 17px;
|
||||
font-weight: 700;
|
||||
color: var(--color-primary);
|
||||
}
|
||||
.main-selection {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 16px;
|
||||
}
|
||||
.edition-card {
|
||||
background: #FFFFFF;
|
||||
border: 1.5px solid var(--divider);
|
||||
border-radius: var(--corner-card);
|
||||
padding: 22px 24px;
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 16px;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
.edition-card:hover {
|
||||
border-color: #94A3B8;
|
||||
background: #F8FAFC;
|
||||
}
|
||||
.edition-card.is-selected {
|
||||
border-color: var(--color-primary);
|
||||
background: var(--color-primary-container);
|
||||
box-shadow: 0 4px 16px rgba(57, 73, 171, 0.1);
|
||||
}
|
||||
.radio-outer {
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
border-radius: 50%;
|
||||
border: 2px solid var(--outline);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-top: 2px;
|
||||
flex-shrink: 0;
|
||||
background: #FFFFFF;
|
||||
}
|
||||
.edition-card.is-selected .radio-outer {
|
||||
border-color: var(--color-primary);
|
||||
}
|
||||
.radio-inner {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
border-radius: 50%;
|
||||
background: var(--color-primary);
|
||||
opacity: 0;
|
||||
transform: scale(0.3);
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
.edition-card.is-selected .radio-inner {
|
||||
opacity: 1;
|
||||
transform: scale(1);
|
||||
}
|
||||
.edition-name {
|
||||
font-size: 17px;
|
||||
font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
.edition-card.is-selected .edition-name {
|
||||
color: var(--color-on-primary-container);
|
||||
}
|
||||
.edition-desc {
|
||||
font-size: 13.5px;
|
||||
color: var(--text-secondary);
|
||||
line-height: 1.55;
|
||||
}
|
||||
.btn-confirm {
|
||||
margin-top: auto;
|
||||
height: 48px;
|
||||
background: var(--color-secondary-container);
|
||||
color: var(--color-secondary);
|
||||
border: none;
|
||||
border-radius: 12px;
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: all 0.15s ease;
|
||||
}
|
||||
.btn-confirm:hover { background: #CCECE8; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="device-container">
|
||||
<div class="appbar">
|
||||
<div class="appbar-nav"><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>
|
||||
<div class="appbar-title">选择版型</div>
|
||||
</div>
|
||||
<div class="page-body">
|
||||
<div class="split-layout">
|
||||
<div class="summary-sidebar">
|
||||
<div class="sidebar-icon"><svg viewBox="0 0 24 24"><path d="M5 9.2h3V19H5zM10.6 5h2.8v14h-2.8zm5.6 8H19v6h-2.8z"/></svg></div>
|
||||
<div class="sidebar-title">选择版型</div>
|
||||
<div class="sidebar-desc">请选择适合您使用场景的版型,后续可在设置中更改</div>
|
||||
<div class="curr-status-box">
|
||||
<div class="curr-status-label">当前选定版型</div>
|
||||
<div class="curr-status-val" id="currEditionLabel">自定义功能版</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="main-selection" id="editionList">
|
||||
<div class="edition-card" onclick="selectEdition(this, '专业版')">
|
||||
<div class="radio-outer"><div class="radio-inner"></div></div>
|
||||
<div>
|
||||
<div class="edition-name">专业版</div>
|
||||
<div class="edition-desc">为专业场馆管理员设计,布局固定专业化,核心数据字段默认全开,开箱即用</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="edition-card is-selected" onclick="selectEdition(this, '自定义功能版')">
|
||||
<div class="radio-outer"><div class="radio-inner"></div></div>
|
||||
<div>
|
||||
<div class="edition-name">自定义功能版</div>
|
||||
<div class="edition-desc">高度可配置,所有高级功能开放,适合研究员和高级用户</div>
|
||||
</div>
|
||||
</div>
|
||||
<button class="btn-confirm">确定</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
function selectEdition(el, name) {
|
||||
document.querySelectorAll('.edition-card').forEach(c => c.classList.remove('is-selected'));
|
||||
el.classList.add('is-selected');
|
||||
document.getElementById('currEditionLabel').innerText = name;
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,211 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>方案 4:Hero Segmented 组合浮岛卡片</title>
|
||||
<style>
|
||||
:root {
|
||||
--color-primary: #3949AB;
|
||||
--color-primary-light: #EEF2FF;
|
||||
--color-secondary: #00897B;
|
||||
--color-secondary-container: #E0F2F1;
|
||||
--color-surface: #FFFFFF;
|
||||
--color-background: #F4F6F9;
|
||||
--text-primary: #0F172A;
|
||||
--text-secondary: #64748B;
|
||||
--divider: #E2E8F0;
|
||||
--outline: #CBD5E1;
|
||||
--corner-island: 18px;
|
||||
}
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
|
||||
background: var(--color-background);
|
||||
color: var(--text-primary);
|
||||
min-height: 100vh;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
.device-container {
|
||||
width: 100%;
|
||||
max-width: 1024px;
|
||||
margin: 20px auto;
|
||||
background: var(--color-background);
|
||||
border-radius: 18px;
|
||||
overflow: hidden;
|
||||
border: 1px solid var(--divider);
|
||||
}
|
||||
.appbar {
|
||||
height: 60px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 24px;
|
||||
background: var(--color-surface);
|
||||
border-bottom: 1px solid var(--divider);
|
||||
}
|
||||
.appbar-nav {
|
||||
width: 38px;
|
||||
height: 38px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 10px;
|
||||
cursor: pointer;
|
||||
background: #F8FAFC;
|
||||
border: 1px solid #E2E8F0;
|
||||
}
|
||||
.appbar-nav svg { width: 20px; height: 20px; fill: var(--text-primary); }
|
||||
.appbar-title {
|
||||
font-size: 19px;
|
||||
font-weight: 600;
|
||||
margin-left: 14px;
|
||||
}
|
||||
.page-body {
|
||||
padding: 36px 24px 48px;
|
||||
max-width: 760px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
.hero {
|
||||
text-align: center;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
.hero-icon {
|
||||
width: 58px;
|
||||
height: 58px;
|
||||
margin: 0 auto 14px;
|
||||
border-radius: 16px;
|
||||
background: #FEE2E2;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.hero-icon svg { width: 30px; height: 30px; fill: #EF4444; }
|
||||
.hero-title {
|
||||
font-size: 21px;
|
||||
font-weight: 700;
|
||||
color: var(--text-primary);
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
.hero-sub {
|
||||
font-size: 13.5px;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
.island-box {
|
||||
background: var(--color-surface);
|
||||
border-radius: var(--corner-island);
|
||||
border: 1px solid #E2E8F0;
|
||||
box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
|
||||
overflow: hidden;
|
||||
margin-bottom: 32px;
|
||||
}
|
||||
.edition-row {
|
||||
padding: 22px 24px;
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 16px;
|
||||
cursor: pointer;
|
||||
border-bottom: 1px solid var(--divider);
|
||||
transition: all 0.15s ease;
|
||||
}
|
||||
.edition-row:last-child { border-bottom: none; }
|
||||
.edition-row:hover { background: #F8FAFC; }
|
||||
.edition-row.is-selected {
|
||||
background: var(--color-primary-light);
|
||||
}
|
||||
.radio-outer {
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
border-radius: 50%;
|
||||
border: 2px solid var(--outline);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-top: 2px;
|
||||
flex-shrink: 0;
|
||||
background: #FFF;
|
||||
}
|
||||
.edition-row.is-selected .radio-outer {
|
||||
border-color: var(--color-primary);
|
||||
background: var(--color-primary);
|
||||
}
|
||||
.radio-inner {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
background: #FFF;
|
||||
opacity: 0;
|
||||
transform: scale(0.3);
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
.edition-row.is-selected .radio-inner {
|
||||
opacity: 1;
|
||||
transform: scale(1);
|
||||
}
|
||||
.edition-name {
|
||||
font-size: 16.5px;
|
||||
font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
.edition-row.is-selected .edition-name {
|
||||
color: var(--color-primary);
|
||||
}
|
||||
.edition-desc {
|
||||
font-size: 13.5px;
|
||||
color: var(--text-secondary);
|
||||
line-height: 1.55;
|
||||
}
|
||||
.btn-confirm {
|
||||
width: 100%;
|
||||
height: 48px;
|
||||
background: var(--color-secondary-container);
|
||||
color: var(--color-secondary);
|
||||
border: none;
|
||||
border-radius: 12px;
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: all 0.15s ease;
|
||||
}
|
||||
.btn-confirm:hover { background: #CCECE8; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="device-container">
|
||||
<div class="appbar">
|
||||
<div class="appbar-nav"><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>
|
||||
<div class="appbar-title">选择版型</div>
|
||||
</div>
|
||||
<div class="page-body">
|
||||
<div class="hero">
|
||||
<div class="hero-icon"><svg viewBox="0 0 24 24"><path d="M5 9.2h3V19H5zM10.6 5h2.8v14h-2.8zm5.6 8H19v6h-2.8z"/></svg></div>
|
||||
<div class="hero-title">选择版型</div>
|
||||
<div class="hero-sub">请选择适合您使用场景的版型,后续可在设置中更改</div>
|
||||
</div>
|
||||
<div class="island-box" id="editionList">
|
||||
<div class="edition-row" onclick="selectEdition(this)">
|
||||
<div class="radio-outer"><div class="radio-inner"></div></div>
|
||||
<div>
|
||||
<div class="edition-name">专业版</div>
|
||||
<div class="edition-desc">为专业场馆管理员设计,布局固定专业化,核心数据字段默认全开,开箱即用</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="edition-row is-selected" onclick="selectEdition(this)">
|
||||
<div class="radio-outer"><div class="radio-inner"></div></div>
|
||||
<div>
|
||||
<div class="edition-name">自定义功能版</div>
|
||||
<div class="edition-desc">高度可配置,所有高级功能开放,适合研究员和高级用户</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<button class="btn-confirm">确定</button>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
function selectEdition(el) {
|
||||
document.querySelectorAll('.edition-row').forEach(r => r.classList.remove('is-selected'));
|
||||
el.classList.add('is-selected');
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,243 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>方案 5:Feature-Badge 徽章质感卡片</title>
|
||||
<style>
|
||||
:root {
|
||||
--color-primary: #3B82F6;
|
||||
--color-primary-dark: #1D4ED8;
|
||||
--color-primary-subtle: #F0F7FF;
|
||||
--color-secondary: #0D9488;
|
||||
--color-secondary-container: #CCFBF1;
|
||||
--color-surface: #FFFFFF;
|
||||
--color-background: #F8FAFC;
|
||||
--text-primary: #0F172A;
|
||||
--text-secondary: #475569;
|
||||
--divider: #E2E8F0;
|
||||
--corner-card: 20px;
|
||||
--content-max-width: 860px;
|
||||
}
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
|
||||
background: var(--color-background);
|
||||
color: var(--text-primary);
|
||||
min-height: 100vh;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
.device-container {
|
||||
width: 100%;
|
||||
max-width: 1024px;
|
||||
margin: 20px auto;
|
||||
background: #FFFFFF;
|
||||
border-radius: 18px;
|
||||
box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05);
|
||||
border: 1px solid var(--divider);
|
||||
overflow: hidden;
|
||||
}
|
||||
.appbar {
|
||||
height: 60px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 24px;
|
||||
background: var(--color-surface);
|
||||
border-bottom: 1px solid var(--divider);
|
||||
}
|
||||
.appbar-nav {
|
||||
width: 38px;
|
||||
height: 38px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 10px;
|
||||
cursor: pointer;
|
||||
background: #F1F5F9;
|
||||
transition: all 0.15s ease;
|
||||
}
|
||||
.appbar-nav svg { width: 20px; height: 20px; fill: var(--text-primary); }
|
||||
.appbar-title {
|
||||
font-size: 19px;
|
||||
font-weight: 600;
|
||||
margin-left: 14px;
|
||||
}
|
||||
.page-body {
|
||||
padding: 36px 24px 48px;
|
||||
max-width: var(--content-max-width);
|
||||
margin: 0 auto;
|
||||
}
|
||||
.hero {
|
||||
text-align: center;
|
||||
margin-bottom: 32px;
|
||||
}
|
||||
.hero-icon {
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
margin: 0 auto 14px;
|
||||
border-radius: 16px;
|
||||
background: #FEE2E2;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
box-shadow: 0 4px 12px rgba(239, 68, 68, 0.12);
|
||||
}
|
||||
.hero-icon svg { width: 32px; height: 32px; fill: #EF4444; }
|
||||
.hero-title {
|
||||
font-size: 22px;
|
||||
font-weight: 700;
|
||||
color: var(--text-primary);
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
.hero-sub {
|
||||
font-size: 14px;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
.cards-wrap {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 18px;
|
||||
margin-bottom: 32px;
|
||||
}
|
||||
.rich-card {
|
||||
background: #FAFAFA;
|
||||
border: 1.5px solid #E2E8F0;
|
||||
border-radius: var(--corner-card);
|
||||
padding: 24px 28px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 20px;
|
||||
cursor: pointer;
|
||||
position: relative;
|
||||
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
}
|
||||
.rich-card:hover {
|
||||
background: #F1F5F9;
|
||||
border-color: #CBD5E1;
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
.rich-card.is-selected {
|
||||
background: var(--color-primary-subtle);
|
||||
border-color: var(--color-primary);
|
||||
box-shadow: 0 4px 20px rgba(59, 130, 246, 0.12);
|
||||
}
|
||||
.rich-card::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 18px;
|
||||
bottom: 18px;
|
||||
width: 5px;
|
||||
border-radius: 0 4px 4px 0;
|
||||
background: var(--color-primary);
|
||||
opacity: 0;
|
||||
transition: opacity 0.2s ease;
|
||||
}
|
||||
.rich-card.is-selected::before { opacity: 1; }
|
||||
.rich-card-content { flex: 1; }
|
||||
.rich-name-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
.rich-name {
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
.rich-card.is-selected .rich-name {
|
||||
color: var(--color-primary-dark);
|
||||
}
|
||||
.rich-desc {
|
||||
font-size: 14px;
|
||||
color: var(--text-secondary);
|
||||
line-height: 1.55;
|
||||
}
|
||||
.check-indicator {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
border-radius: 50%;
|
||||
border: 2px solid #CBD5E1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: #FFF;
|
||||
flex-shrink: 0;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
.rich-card.is-selected .check-indicator {
|
||||
background: var(--color-primary);
|
||||
border-color: var(--color-primary);
|
||||
}
|
||||
.check-indicator svg {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
fill: #FFF;
|
||||
opacity: 0;
|
||||
transform: scale(0.6);
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
.rich-card.is-selected .check-indicator svg {
|
||||
opacity: 1;
|
||||
transform: scale(1);
|
||||
}
|
||||
.btn-confirm {
|
||||
width: 100%;
|
||||
height: 48px;
|
||||
background: var(--color-secondary-container);
|
||||
color: var(--color-secondary);
|
||||
border: none;
|
||||
border-radius: 12px;
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: all 0.15s ease;
|
||||
}
|
||||
.btn-confirm:hover { background: #B2F5EA; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="device-container">
|
||||
<div class="appbar">
|
||||
<div class="appbar-nav"><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>
|
||||
<div class="appbar-title">选择版型</div>
|
||||
</div>
|
||||
<div class="page-body">
|
||||
<div class="hero">
|
||||
<div class="hero-icon"><svg viewBox="0 0 24 24"><path d="M5 9.2h3V19H5zM10.6 5h2.8v14h-2.8zm5.6 8H19v6h-2.8z"/></svg></div>
|
||||
<div class="hero-title">选择版型</div>
|
||||
<div class="hero-sub">请选择适合您使用场景的版型,后续可在设置中更改</div>
|
||||
</div>
|
||||
<div class="cards-wrap" id="editionList">
|
||||
<div class="rich-card" onclick="selectEdition(this)">
|
||||
<div class="rich-card-content">
|
||||
<div class="rich-name-row">
|
||||
<span class="rich-name">专业版</span>
|
||||
</div>
|
||||
<div class="rich-desc">为专业场馆管理员设计,布局固定专业化,核心数据字段默认全开,开箱即用</div>
|
||||
</div>
|
||||
<div class="check-indicator"><svg viewBox="0 0 24 24"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg></div>
|
||||
</div>
|
||||
<div class="rich-card is-selected" onclick="selectEdition(this)">
|
||||
<div class="rich-card-content">
|
||||
<div class="rich-name-row">
|
||||
<span class="rich-name">自定义功能版</span>
|
||||
</div>
|
||||
<div class="rich-desc">高度可配置,所有高级功能开放,适合研究员和高级用户</div>
|
||||
</div>
|
||||
<div class="check-indicator"><svg viewBox="0 0 24 24"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg></div>
|
||||
</div>
|
||||
</div>
|
||||
<button class="btn-confirm">确定</button>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
function selectEdition(el) {
|
||||
document.querySelectorAll('.rich-card').forEach(c => c.classList.remove('is-selected'));
|
||||
el.classList.add('is-selected');
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,282 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>方案 A:Pro Studio 旗舰极简并排卡片</title>
|
||||
<style>
|
||||
:root {
|
||||
--primary: #2B3A8C;
|
||||
--primary-light: #EEF2FF;
|
||||
--primary-border: #3E52BA;
|
||||
--accent-confirm: #0D7A68;
|
||||
--accent-confirm-bg: #E3F6F2;
|
||||
--accent-confirm-hover: #D0EFE9;
|
||||
--bg-page: #F8FAFC;
|
||||
--bg-card: #FFFFFF;
|
||||
--text-main: #0F172A;
|
||||
--text-muted: #64748B;
|
||||
--text-sub: #94A3B8;
|
||||
--border-subtle: #E2E8F0;
|
||||
--border-card: #CBD5E1;
|
||||
--shadow-card: 0 1px 3px rgba(15, 23, 42, 0.03), 0 6px 16px -4px rgba(15, 23, 42, 0.05);
|
||||
--shadow-selected: 0 0 0 1.5px var(--primary-border), 0 8px 24px -4px rgba(43, 58, 140, 0.12);
|
||||
}
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
|
||||
background: var(--bg-page);
|
||||
color: var(--text-main);
|
||||
min-height: 100vh;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
padding: 24px;
|
||||
}
|
||||
.device-wrapper {
|
||||
width: 100%;
|
||||
max-width: 1040px;
|
||||
margin: 0 auto;
|
||||
background: #FFFFFF;
|
||||
border-radius: 20px;
|
||||
border: 1px solid var(--border-subtle);
|
||||
box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.07);
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.appbar {
|
||||
height: 64px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 28px;
|
||||
background: #FFFFFF;
|
||||
border-bottom: 1px solid #F1F5F9;
|
||||
}
|
||||
.btn-back {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border-radius: 10px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: #F8FAFC;
|
||||
border: 1px solid #E2E8F0;
|
||||
cursor: pointer;
|
||||
transition: all 0.15s ease;
|
||||
}
|
||||
.btn-back:hover { background: #EEF2F6; border-color: #CBD5E1; }
|
||||
.btn-back svg { width: 20px; height: 20px; fill: var(--text-main); }
|
||||
.appbar-title {
|
||||
font-size: 19px;
|
||||
font-weight: 600;
|
||||
margin-left: 16px;
|
||||
letter-spacing: -0.01em;
|
||||
color: var(--text-main);
|
||||
}
|
||||
.content-area {
|
||||
padding: 44px 32px 56px;
|
||||
max-width: 880px;
|
||||
margin: 0 auto;
|
||||
width: 100%;
|
||||
}
|
||||
.hero-section {
|
||||
text-align: center;
|
||||
margin-bottom: 36px;
|
||||
}
|
||||
.hero-icon-box {
|
||||
width: 56px;
|
||||
height: 56px;
|
||||
margin: 0 auto 16px;
|
||||
border-radius: 16px;
|
||||
background: #F1F5F9;
|
||||
border: 1px solid #E2E8F0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.hero-icon-box svg { width: 28px; height: 28px; fill: var(--primary); }
|
||||
.hero-h1 {
|
||||
font-size: 24px;
|
||||
font-weight: 700;
|
||||
color: var(--text-main);
|
||||
letter-spacing: -0.02em;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
.hero-p {
|
||||
font-size: 14.5px;
|
||||
color: var(--text-muted);
|
||||
line-height: 1.5;
|
||||
}
|
||||
.dual-cards-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
gap: 20px;
|
||||
margin-bottom: 36px;
|
||||
}
|
||||
.pro-card {
|
||||
background: #FFFFFF;
|
||||
border: 1.5px solid var(--border-subtle);
|
||||
border-radius: 16px;
|
||||
padding: 28px 24px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
cursor: pointer;
|
||||
position: relative;
|
||||
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
box-shadow: var(--shadow-card);
|
||||
user-select: none;
|
||||
}
|
||||
.pro-card:hover {
|
||||
border-color: #94A3B8;
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 10px 24px -4px rgba(15, 23, 42, 0.08);
|
||||
}
|
||||
.pro-card.is-selected {
|
||||
background: #FAFBFF;
|
||||
border-color: var(--primary-border);
|
||||
box-shadow: var(--shadow-selected);
|
||||
}
|
||||
.card-top-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 18px;
|
||||
}
|
||||
.card-tag {
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
padding: 3px 9px;
|
||||
border-radius: 6px;
|
||||
background: #F1F5F9;
|
||||
color: #475569;
|
||||
letter-spacing: 0.02em;
|
||||
}
|
||||
.pro-card.is-selected .card-tag {
|
||||
background: var(--primary-light);
|
||||
color: var(--primary);
|
||||
}
|
||||
.radio-ring {
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
border-radius: 50%;
|
||||
border: 2px solid var(--border-card);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: #FFFFFF;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
.pro-card.is-selected .radio-ring {
|
||||
border-color: var(--primary);
|
||||
background: var(--primary);
|
||||
}
|
||||
.radio-dot {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
background: #FFFFFF;
|
||||
opacity: 0;
|
||||
transform: scale(0.3);
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
.pro-card.is-selected .radio-dot {
|
||||
opacity: 1;
|
||||
transform: scale(1);
|
||||
}
|
||||
.card-h2 {
|
||||
font-size: 19px;
|
||||
font-weight: 700;
|
||||
color: var(--text-main);
|
||||
margin-bottom: 10px;
|
||||
letter-spacing: -0.01em;
|
||||
}
|
||||
.pro-card.is-selected .card-h2 {
|
||||
color: var(--primary);
|
||||
}
|
||||
.card-desc {
|
||||
font-size: 14px;
|
||||
color: var(--text-muted);
|
||||
line-height: 1.6;
|
||||
flex: 1;
|
||||
}
|
||||
.actions-row {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
.btn-primary-confirm {
|
||||
min-width: 320px;
|
||||
height: 48px;
|
||||
padding: 0 32px;
|
||||
background: var(--accent-confirm-bg);
|
||||
color: var(--accent-confirm);
|
||||
border: 1px solid rgba(13, 122, 104, 0.2);
|
||||
border-radius: 12px;
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: all 0.15s ease;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
letter-spacing: 0.05em;
|
||||
}
|
||||
.btn-primary-confirm:hover {
|
||||
background: var(--accent-confirm-hover);
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 4px 12px rgba(13, 122, 104, 0.12);
|
||||
}
|
||||
.btn-primary-confirm:active {
|
||||
transform: translateY(0);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="device-wrapper">
|
||||
<header class="appbar">
|
||||
<div class="btn-back"><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>
|
||||
<main class="content-area">
|
||||
<div class="hero-section">
|
||||
<div class="hero-icon-box">
|
||||
<svg viewBox="0 0 24 24"><path d="M4 6h16v2H4zm0 5h16v2H4zm0 5h16v2H4z"/></svg>
|
||||
</div>
|
||||
<h2 class="hero-h1">选择版型</h2>
|
||||
<p class="hero-p">请选择适合您使用场景的版型,后续可在设置中更改</p>
|
||||
</div>
|
||||
|
||||
<div class="dual-cards-grid" id="editionGroup">
|
||||
<!-- 卡片 1:专业版 -->
|
||||
<div class="pro-card" onclick="setEdition(this)">
|
||||
<div class="card-top-row">
|
||||
<span class="card-tag">场馆预设</span>
|
||||
<div class="radio-ring"><div class="radio-dot"></div></div>
|
||||
</div>
|
||||
<h3 class="card-h2">专业版</h3>
|
||||
<p class="card-desc">为专业场馆管理员设计,布局固定专业化,核心数据字段默认全开,开箱即用</p>
|
||||
</div>
|
||||
|
||||
<!-- 卡片 2:自定义功能版 -->
|
||||
<div class="pro-card is-selected" onclick="setEdition(this)">
|
||||
<div class="card-top-row">
|
||||
<span class="card-tag">高阶定制</span>
|
||||
<div class="radio-ring"><div class="radio-dot"></div></div>
|
||||
</div>
|
||||
<h3 class="card-h2">自定义功能版</h3>
|
||||
<p class="card-desc">高度可配置,所有高级功能开放,适合研究员和高级用户</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="actions-row">
|
||||
<button class="btn-primary-confirm">确定</button>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function setEdition(el) {
|
||||
document.querySelectorAll('.pro-card').forEach(c => c.classList.remove('is-selected'));
|
||||
el.classList.add('is-selected');
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,236 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>方案 B:Material 3 Expressive 旗舰居中流</title>
|
||||
<style>
|
||||
:root {
|
||||
--md-primary: #3949AB;
|
||||
--md-primary-container: #E8EAF6;
|
||||
--md-on-primary-container: #1A237E;
|
||||
--md-surface: #FFFFFF;
|
||||
--md-surface-container: #F4F6F9;
|
||||
--md-surface-container-high: #EEF2F7;
|
||||
--md-secondary-container: #E0F2F1;
|
||||
--md-secondary: #00796B;
|
||||
--md-text-title: #1C1B1F;
|
||||
--md-text-body: #49454F;
|
||||
--md-outline: #79747E;
|
||||
--md-divider: rgba(0,0,0,0.08);
|
||||
--content-max-width: 780px;
|
||||
}
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
|
||||
background: #F1F4F8;
|
||||
color: var(--md-text-title);
|
||||
min-height: 100vh;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
padding: 24px;
|
||||
}
|
||||
.device-wrapper {
|
||||
width: 100%;
|
||||
max-width: 1024px;
|
||||
margin: 0 auto;
|
||||
background: var(--md-surface);
|
||||
border-radius: 24px;
|
||||
border: 1px solid var(--md-divider);
|
||||
box-shadow: 0 10px 30px rgba(0,0,0,0.06);
|
||||
overflow: hidden;
|
||||
}
|
||||
.appbar {
|
||||
height: 64px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 24px;
|
||||
background: var(--md-surface);
|
||||
border-bottom: 1px solid var(--md-divider);
|
||||
}
|
||||
.btn-back {
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
border-radius: 22px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
transition: background 0.15s ease;
|
||||
}
|
||||
.btn-back:hover { background: var(--md-surface-container); }
|
||||
.btn-back svg { width: 22px; height: 22px; fill: var(--md-text-title); }
|
||||
.appbar-title {
|
||||
font-size: 20px;
|
||||
font-weight: 600;
|
||||
margin-left: 12px;
|
||||
}
|
||||
.content-area {
|
||||
padding: 40px 24px 52px;
|
||||
max-width: var(--content-max-width);
|
||||
margin: 0 auto;
|
||||
}
|
||||
.hero-box {
|
||||
text-align: center;
|
||||
margin-bottom: 36px;
|
||||
}
|
||||
.hero-icon {
|
||||
width: 68px;
|
||||
height: 68px;
|
||||
margin: 0 auto 16px;
|
||||
border-radius: 22px;
|
||||
background: #E8EAF6;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.hero-icon svg { width: 34px; height: 34px; fill: var(--md-primary); }
|
||||
.hero-title {
|
||||
font-size: 22px;
|
||||
font-weight: 700;
|
||||
color: var(--md-text-title);
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
.hero-sub {
|
||||
font-size: 14px;
|
||||
color: var(--md-text-body);
|
||||
}
|
||||
.stack-cards {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 16px;
|
||||
margin-bottom: 36px;
|
||||
}
|
||||
.m3-card {
|
||||
background: var(--md-surface-container);
|
||||
border: 2px solid transparent;
|
||||
border-radius: 20px;
|
||||
padding: 24px 28px;
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 20px;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
user-select: none;
|
||||
}
|
||||
.m3-card:hover {
|
||||
background: var(--md-surface-container-high);
|
||||
}
|
||||
.m3-card.is-selected {
|
||||
background: var(--md-primary-container);
|
||||
border-color: var(--md-primary);
|
||||
box-shadow: 0 4px 16px rgba(57, 73, 171, 0.12);
|
||||
}
|
||||
.radio-box {
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
border-radius: 50%;
|
||||
border: 2px solid #8E8A93;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-top: 2px;
|
||||
flex-shrink: 0;
|
||||
background: transparent;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
.m3-card.is-selected .radio-box {
|
||||
border-color: var(--md-primary);
|
||||
}
|
||||
.radio-inner {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
border-radius: 50%;
|
||||
background: var(--md-primary);
|
||||
opacity: 0;
|
||||
transform: scale(0.3);
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
.m3-card.is-selected .radio-inner {
|
||||
opacity: 1;
|
||||
transform: scale(1);
|
||||
}
|
||||
.card-content { flex: 1; }
|
||||
.card-title {
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
color: var(--md-text-title);
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
.m3-card.is-selected .card-title {
|
||||
color: var(--md-on-primary-container);
|
||||
}
|
||||
.card-desc {
|
||||
font-size: 14px;
|
||||
color: var(--md-text-body);
|
||||
line-height: 1.6;
|
||||
}
|
||||
.action-box {
|
||||
display: flex;
|
||||
justify-content: stretch;
|
||||
}
|
||||
.btn-m3-tonal {
|
||||
width: 100%;
|
||||
height: 52px;
|
||||
background: var(--md-secondary-container);
|
||||
color: var(--md-secondary);
|
||||
border: none;
|
||||
border-radius: 26px;
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: all 0.15s ease;
|
||||
letter-spacing: 0.02em;
|
||||
}
|
||||
.btn-m3-tonal:hover {
|
||||
background: #C8E6C9;
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="device-wrapper">
|
||||
<header class="appbar">
|
||||
<div class="btn-back"><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>
|
||||
<main class="content-area">
|
||||
<div class="hero-box">
|
||||
<div class="hero-icon">
|
||||
<svg viewBox="0 0 24 24"><path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-8 14H7v-4h4v4zm0-6H7V7h4v4zm6 6h-4v-8h4v8z"/></svg>
|
||||
</div>
|
||||
<h2 class="hero-title">选择版型</h2>
|
||||
<p class="hero-sub">请选择适合您使用场景的版型,后续可在设置中更改</p>
|
||||
</div>
|
||||
|
||||
<div class="stack-cards" id="m3Group">
|
||||
<div class="m3-card" onclick="setM3(this)">
|
||||
<div class="radio-box"><div class="radio-inner"></div></div>
|
||||
<div class="card-content">
|
||||
<h3 class="card-title">专业版</h3>
|
||||
<p class="card-desc">为专业场馆管理员设计,布局固定专业化,核心数据字段默认全开,开箱即用</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="m3-card is-selected" onclick="setM3(this)">
|
||||
<div class="radio-box"><div class="radio-inner"></div></div>
|
||||
<div class="card-content">
|
||||
<h3 class="card-title">自定义功能版</h3>
|
||||
<p class="card-desc">高度可配置,所有高级功能开放,适合研究员和高级用户</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="action-box">
|
||||
<button class="btn-m3-tonal">确定</button>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function setM3(el) {
|
||||
document.querySelectorAll('.m3-card').forEach(c => c.classList.remove('is-selected'));
|
||||
el.classList.add('is-selected');
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,302 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>方案 C:Split Console 双栏专业控制台</title>
|
||||
<style>
|
||||
:root {
|
||||
--color-primary: #3949AB;
|
||||
--color-primary-container: #EEF2FF;
|
||||
--color-on-primary-container: #1A237E;
|
||||
--color-secondary: #00897B;
|
||||
--color-secondary-container: #E0F2F1;
|
||||
--color-surface: #FFFFFF;
|
||||
--color-surface-variant: #F8FAFC;
|
||||
--color-background: #F1F5F9;
|
||||
--text-primary: #0F172A;
|
||||
--text-secondary: #64748B;
|
||||
--divider: #E2E8F0;
|
||||
--outline: #CBD5E1;
|
||||
--corner-card: 16px;
|
||||
--content-max-width: 940px;
|
||||
--sidebar-width: 320px;
|
||||
}
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
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-primary);
|
||||
min-height: 100vh;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
padding: 24px;
|
||||
}
|
||||
.screen-container {
|
||||
width: 100%;
|
||||
max-width: 1060px;
|
||||
margin: 0 auto;
|
||||
background: var(--color-surface);
|
||||
border-radius: 20px;
|
||||
border: 1px solid var(--divider);
|
||||
box-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.08);
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.appbar {
|
||||
height: 62px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 24px;
|
||||
background: var(--color-surface);
|
||||
border-bottom: 1px solid var(--divider);
|
||||
}
|
||||
.appbar-nav {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 10px;
|
||||
cursor: pointer;
|
||||
background: var(--color-surface-variant);
|
||||
border: 1px solid var(--divider);
|
||||
transition: all 0.15s ease;
|
||||
}
|
||||
.appbar-nav:hover { background: #E2E8F0; }
|
||||
.appbar-nav svg { width: 20px; height: 20px; fill: var(--text-primary); }
|
||||
.appbar-title {
|
||||
font-size: 19px;
|
||||
font-weight: 600;
|
||||
margin-left: 14px;
|
||||
letter-spacing: -0.2px;
|
||||
}
|
||||
.page-body {
|
||||
padding: 32px 28px 40px;
|
||||
background: var(--color-background);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
.master-detail-layout {
|
||||
width: 100%;
|
||||
max-width: var(--content-max-width);
|
||||
display: flex;
|
||||
gap: 24px;
|
||||
align-items: stretch;
|
||||
}
|
||||
.summary-sidebar {
|
||||
flex: 0 0 var(--sidebar-width);
|
||||
background: var(--color-surface);
|
||||
border-radius: var(--corner-card);
|
||||
border: 1px solid var(--divider);
|
||||
box-shadow: 0 1px 3px rgba(0,0,0,0.03);
|
||||
padding: 28px 24px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.sidebar-icon-box {
|
||||
width: 52px;
|
||||
height: 52px;
|
||||
border-radius: 14px;
|
||||
background: var(--color-primary-container);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-bottom: 18px;
|
||||
}
|
||||
.sidebar-icon-box svg { width: 28px; height: 28px; fill: var(--color-primary); }
|
||||
.sidebar-title {
|
||||
font-size: 20px;
|
||||
font-weight: 700;
|
||||
color: var(--text-primary);
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
.sidebar-desc {
|
||||
font-size: 13.5px;
|
||||
line-height: 1.55;
|
||||
color: var(--text-secondary);
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
.status-pill-box {
|
||||
margin-top: auto;
|
||||
background: var(--color-surface-variant);
|
||||
border: 1px solid var(--divider);
|
||||
border-radius: 12px;
|
||||
padding: 16px;
|
||||
}
|
||||
.status-label {
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
color: var(--text-secondary);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
.status-value {
|
||||
font-size: 17px;
|
||||
font-weight: 700;
|
||||
color: var(--color-primary);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
.status-dot {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
background: #10B981;
|
||||
}
|
||||
.main-selection {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 16px;
|
||||
}
|
||||
.edition-card {
|
||||
background: var(--color-surface);
|
||||
border: 1.5px solid var(--divider);
|
||||
border-radius: var(--corner-card);
|
||||
padding: 24px;
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 18px;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
box-shadow: 0 1px 3px rgba(0,0,0,0.02);
|
||||
user-select: none;
|
||||
}
|
||||
.edition-card:hover {
|
||||
border-color: #94A3B8;
|
||||
background: #F8FAFC;
|
||||
}
|
||||
.edition-card.is-selected {
|
||||
border-color: var(--color-primary);
|
||||
background: var(--color-primary-container);
|
||||
box-shadow: 0 4px 16px rgba(57, 73, 171, 0.1);
|
||||
}
|
||||
.radio-outer {
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
border-radius: 50%;
|
||||
border: 2px solid var(--outline);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-top: 2px;
|
||||
flex-shrink: 0;
|
||||
background: #FFFFFF;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
.edition-card.is-selected .radio-outer {
|
||||
border-color: var(--color-primary);
|
||||
}
|
||||
.radio-inner {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
border-radius: 50%;
|
||||
background: var(--color-primary);
|
||||
opacity: 0;
|
||||
transform: scale(0.3);
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
.edition-card.is-selected .radio-inner {
|
||||
opacity: 1;
|
||||
transform: scale(1);
|
||||
}
|
||||
.edition-info { flex: 1; }
|
||||
.edition-name {
|
||||
font-size: 17px;
|
||||
font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
.edition-card.is-selected .edition-name {
|
||||
color: var(--color-on-primary-container);
|
||||
}
|
||||
.edition-desc {
|
||||
font-size: 13.5px;
|
||||
color: var(--text-secondary);
|
||||
line-height: 1.6;
|
||||
}
|
||||
.btn-confirm-wrap {
|
||||
margin-top: auto;
|
||||
padding-top: 8px;
|
||||
}
|
||||
.btn-confirm {
|
||||
width: 100%;
|
||||
height: 48px;
|
||||
background: var(--color-secondary-container);
|
||||
color: var(--color-secondary);
|
||||
border: none;
|
||||
border-radius: 12px;
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: all 0.15s ease;
|
||||
letter-spacing: 0.03em;
|
||||
}
|
||||
.btn-confirm:hover {
|
||||
background: #C8ECE7;
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="screen-container">
|
||||
<header class="appbar">
|
||||
<div class="appbar-nav"><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>
|
||||
<main class="page-body">
|
||||
<div class="master-detail-layout">
|
||||
<!-- 左侧状态面板 -->
|
||||
<aside class="summary-sidebar">
|
||||
<div class="sidebar-icon-box">
|
||||
<svg viewBox="0 0 24 24"><path d="M4 6h16v2H4zm0 5h16v2H4zm0 5h16v2H4z"/></svg>
|
||||
</div>
|
||||
<h2 class="sidebar-title">选择版型</h2>
|
||||
<p class="sidebar-desc">请选择适合您使用场景的版型,后续可在设置中更改</p>
|
||||
<div class="status-pill-box">
|
||||
<div class="status-label">当前选定版型</div>
|
||||
<div class="status-value">
|
||||
<span class="status-dot"></span>
|
||||
<span id="currEditionLabel">自定义功能版</span>
|
||||
</div>
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
<!-- 右侧选择区 -->
|
||||
<section class="main-selection" id="editionGroup">
|
||||
<div class="edition-card" onclick="setEdition(this, '专业版')">
|
||||
<div class="radio-outer"><div class="radio-inner"></div></div>
|
||||
<div class="edition-info">
|
||||
<h3 class="edition-name">专业版</h3>
|
||||
<p class="edition-desc">为专业场馆管理员设计,布局固定专业化,核心数据字段默认全开,开箱即用</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="edition-card is-selected" onclick="setEdition(this, '自定义功能版')">
|
||||
<div class="radio-outer"><div class="radio-inner"></div></div>
|
||||
<div class="edition-info">
|
||||
<h3 class="edition-name">自定义功能版</h3>
|
||||
<p class="edition-desc">高度可配置,所有高级功能开放,适合研究员和高级用户</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="btn-confirm-wrap">
|
||||
<button class="btn-confirm">确定</button>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function setEdition(el, name) {
|
||||
document.querySelectorAll('.edition-card').forEach(c => c.classList.remove('is-selected'));
|
||||
el.classList.add('is-selected');
|
||||
document.getElementById('currEditionLabel').innerText = name;
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,237 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>方案 D:Nordic Minimalist 极简纯粹白</title>
|
||||
<style>
|
||||
:root {
|
||||
--primary-blue: #1E40AF;
|
||||
--primary-glow: #EFF6FF;
|
||||
--confirm-green: #059669;
|
||||
--confirm-green-bg: #ECFDF5;
|
||||
--bg-main: #FAFAFA;
|
||||
--surface-white: #FFFFFF;
|
||||
--text-900: #09090B;
|
||||
--text-600: #52525B;
|
||||
--border-light: #E4E4E7;
|
||||
--content-width: 820px;
|
||||
}
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
|
||||
background: var(--bg-main);
|
||||
color: var(--text-900);
|
||||
min-height: 100vh;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
padding: 24px;
|
||||
}
|
||||
.device-box {
|
||||
width: 100%;
|
||||
max-width: 1024px;
|
||||
margin: 0 auto;
|
||||
background: var(--surface-white);
|
||||
border-radius: 16px;
|
||||
border: 1px solid var(--border-light);
|
||||
box-shadow: 0 4px 20px rgba(0,0,0,0.03);
|
||||
overflow: hidden;
|
||||
}
|
||||
.appbar {
|
||||
height: 60px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 24px;
|
||||
border-bottom: 1px solid var(--border-light);
|
||||
}
|
||||
.back-arrow {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
border-radius: 8px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
background: #F4F4F5;
|
||||
transition: all 0.15s ease;
|
||||
}
|
||||
.back-arrow:hover { background: #E4E4E7; }
|
||||
.back-arrow svg { width: 20px; height: 20px; fill: var(--text-900); }
|
||||
.appbar-title {
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
margin-left: 14px;
|
||||
}
|
||||
.page-body {
|
||||
padding: 44px 24px 52px;
|
||||
max-width: var(--content-width);
|
||||
margin: 0 auto;
|
||||
}
|
||||
.hero {
|
||||
text-align: center;
|
||||
margin-bottom: 36px;
|
||||
}
|
||||
.hero-title {
|
||||
font-size: 24px;
|
||||
font-weight: 700;
|
||||
color: var(--text-900);
|
||||
letter-spacing: -0.02em;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
.hero-desc {
|
||||
font-size: 14px;
|
||||
color: var(--text-600);
|
||||
}
|
||||
.cards-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 16px;
|
||||
margin-bottom: 36px;
|
||||
}
|
||||
.card-item {
|
||||
background: var(--surface-white);
|
||||
border: 1.5px solid var(--border-light);
|
||||
border-radius: 14px;
|
||||
padding: 24px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 20px;
|
||||
cursor: pointer;
|
||||
position: relative;
|
||||
transition: all 0.18s ease;
|
||||
user-select: none;
|
||||
}
|
||||
.card-item:hover {
|
||||
border-color: #A1A1AA;
|
||||
}
|
||||
.card-item.is-selected {
|
||||
border-color: var(--primary-blue);
|
||||
background: var(--primary-glow);
|
||||
box-shadow: 0 4px 16px rgba(30, 64, 175, 0.08);
|
||||
}
|
||||
.card-left-bar {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 14px;
|
||||
bottom: 14px;
|
||||
width: 4px;
|
||||
border-radius: 0 4px 4px 0;
|
||||
background: var(--primary-blue);
|
||||
opacity: 0;
|
||||
transition: opacity 0.2s ease;
|
||||
}
|
||||
.card-item.is-selected .card-left-bar {
|
||||
opacity: 1;
|
||||
}
|
||||
.card-content { flex: 1; padding-left: 6px; }
|
||||
.card-name {
|
||||
font-size: 17px;
|
||||
font-weight: 600;
|
||||
color: var(--text-900);
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
.card-item.is-selected .card-name {
|
||||
color: var(--primary-blue);
|
||||
}
|
||||
.card-desc {
|
||||
font-size: 13.5px;
|
||||
color: var(--text-600);
|
||||
line-height: 1.55;
|
||||
}
|
||||
.check-circle {
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
border-radius: 50%;
|
||||
border: 2px solid #D4D4D8;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: #FFF;
|
||||
flex-shrink: 0;
|
||||
transition: all 0.15s ease;
|
||||
}
|
||||
.card-item.is-selected .check-circle {
|
||||
background: var(--primary-blue);
|
||||
border-color: var(--primary-blue);
|
||||
}
|
||||
.check-circle svg {
|
||||
width: 13px;
|
||||
height: 13px;
|
||||
fill: #FFF;
|
||||
opacity: 0;
|
||||
transform: scale(0.5);
|
||||
transition: all 0.15s ease;
|
||||
}
|
||||
.card-item.is-selected .check-circle svg {
|
||||
opacity: 1;
|
||||
transform: scale(1);
|
||||
}
|
||||
.actions {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
.btn-submit {
|
||||
width: 100%;
|
||||
max-width: 400px;
|
||||
height: 48px;
|
||||
background: var(--confirm-green-bg);
|
||||
color: var(--confirm-green);
|
||||
border: 1px solid rgba(5, 150, 105, 0.25);
|
||||
border-radius: 12px;
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: all 0.15s ease;
|
||||
letter-spacing: 0.04em;
|
||||
}
|
||||
.btn-submit:hover {
|
||||
background: #D1FAE5;
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 4px 12px rgba(5, 150, 105, 0.12);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="device-box">
|
||||
<header class="appbar">
|
||||
<div class="back-arrow"><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>
|
||||
<main class="page-body">
|
||||
<div class="hero">
|
||||
<h2 class="hero-title">选择版型</h2>
|
||||
<p class="hero-desc">请选择适合您使用场景的版型,后续可在设置中更改</p>
|
||||
</div>
|
||||
<div class="cards-list" id="cardList">
|
||||
<div class="card-item" onclick="setCard(this)">
|
||||
<div class="card-left-bar"></div>
|
||||
<div class="card-content">
|
||||
<h3 class="card-name">专业版</h3>
|
||||
<p class="card-desc">为专业场馆管理员设计,布局固定专业化,核心数据字段默认全开,开箱即用</p>
|
||||
</div>
|
||||
<div class="check-circle"><svg viewBox="0 0 24 24"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg></div>
|
||||
</div>
|
||||
|
||||
<div class="card-item is-selected" onclick="setCard(this)">
|
||||
<div class="card-left-bar"></div>
|
||||
<div class="card-content">
|
||||
<h3 class="card-name">自定义功能版</h3>
|
||||
<p class="card-desc">高度可配置,所有高级功能开放,适合研究员和高级用户</p>
|
||||
</div>
|
||||
<div class="check-circle"><svg viewBox="0 0 24 24"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="actions">
|
||||
<button class="btn-submit">确定</button>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function setCard(el) {
|
||||
document.querySelectorAll('.card-item').forEach(c => c.classList.remove('is-selected'));
|
||||
el.classList.add('is-selected');
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,192 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>版型切换 - 5 种全新品质风格重构竞标</title>
|
||||
<style>
|
||||
:root {
|
||||
--primary: #2563EB;
|
||||
--bg: #090D16;
|
||||
--panel: #131B2E;
|
||||
--border: #23314D;
|
||||
--text: #F8FAFC;
|
||||
--text-dim: #94A3B8;
|
||||
}
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", sans-serif;
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
header {
|
||||
padding: 16px 28px;
|
||||
background: var(--panel);
|
||||
border-bottom: 1px solid var(--border);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.brand {
|
||||
font-size: 18px;
|
||||
font-weight: 700;
|
||||
color: #38BDF8;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
}
|
||||
.brand span {
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
color: #E2E8F0;
|
||||
background: #1E293B;
|
||||
border: 1px solid var(--border);
|
||||
padding: 3px 10px;
|
||||
border-radius: 6px;
|
||||
}
|
||||
.nav-tabs {
|
||||
display: flex;
|
||||
gap: 6px;
|
||||
background: #090D16;
|
||||
padding: 4px;
|
||||
border-radius: 12px;
|
||||
border: 1px solid var(--border);
|
||||
}
|
||||
.tab-btn {
|
||||
padding: 8px 14px;
|
||||
border: none;
|
||||
background: transparent;
|
||||
color: var(--text-dim);
|
||||
border-radius: 8px;
|
||||
cursor: pointer;
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
white-space: nowrap;
|
||||
}
|
||||
.tab-btn:hover { color: #FFFFFF; background: rgba(255,255,255,0.06); }
|
||||
.tab-btn.active {
|
||||
background: #2563EB;
|
||||
color: #FFFFFF;
|
||||
font-weight: 600;
|
||||
box-shadow: 0 2px 10px rgba(37,99,235,0.4);
|
||||
}
|
||||
.main-content {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 20px 28px;
|
||||
align-items: center;
|
||||
}
|
||||
.desc-card {
|
||||
width: 100%;
|
||||
max-width: 1120px;
|
||||
background: var(--panel);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 14px;
|
||||
padding: 16px 24px;
|
||||
margin-bottom: 16px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
}
|
||||
.desc-title { font-size: 16px; font-weight: 600; color: #F8FAFC; }
|
||||
.desc-text { font-size: 13px; color: var(--text-dim); margin-top: 4px; line-height: 1.4; }
|
||||
.iframe-container {
|
||||
width: 100%;
|
||||
max-width: 1120px;
|
||||
height: 680px;
|
||||
border-radius: 14px;
|
||||
overflow: hidden;
|
||||
border: 1px solid var(--border);
|
||||
background: #FFF;
|
||||
box-shadow: 0 16px 40px rgba(0,0,0,0.45);
|
||||
}
|
||||
iframe {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border: none;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<div class="brand">
|
||||
🎨 版型切换 · 5 种全新美学风格竞标
|
||||
<span>保留出厂红框柱状图图标与全部字段</span>
|
||||
</div>
|
||||
<div class="nav-tabs">
|
||||
<button class="tab-btn active" onclick="switchOption(1, this)">方案 1:Frosted Glass 毛玻璃</button>
|
||||
<button class="tab-btn" onclick="switchOption(2, this)">方案 2:Split 双栏工作台</button>
|
||||
<button class="tab-btn" onclick="switchOption(3, this)">方案 3:High-Tech 硬朗工控</button>
|
||||
<button class="tab-btn" onclick="switchOption(4, this)">方案 4:Bento 横向磁贴</button>
|
||||
<button class="tab-btn" onclick="switchOption(5, this)">方案 5:Editorial 精奢大画幅</button>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div class="main-content">
|
||||
<div class="desc-card" id="descCard">
|
||||
<div>
|
||||
<div class="desc-title" id="descTitle">方案 1:Frosted Glass 现代微质感毛玻璃风</div>
|
||||
<div class="desc-text" id="descDetail">轻量磨砂微光质感,流线型 Active 边框,高保真微渐变确定按钮,极具现代消费级与专业级平板的细腻通透感。</div>
|
||||
</div>
|
||||
<a id="directLink" href="style_1_frosted_glass.html" target="_blank" style="color: #38BDF8; font-size: 13px; text-decoration: none; border: 1px solid #38BDF8; padding: 7px 14px; border-radius: 8px; white-space: nowrap;">独立打开 ↗</a>
|
||||
</div>
|
||||
|
||||
<div class="iframe-container">
|
||||
<iframe id="previewFrame" src="style_1_frosted_glass.html"></iframe>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
const options = [
|
||||
{
|
||||
id: 1,
|
||||
file: 'style_1_frosted_glass.html',
|
||||
title: '方案 1:Frosted Glass 现代微质感毛玻璃风',
|
||||
detail: '轻量磨砂微光质感,流线型 Active 边框,高保真微渐变确定按钮,极具现代消费级与专业级平板的细腻通透感。'
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
file: 'style_2_split_studio.html',
|
||||
title: '方案 2:Split Studio 双栏专业控制台 (对齐语言设置规范 · 强烈推荐)',
|
||||
detail: '彻底打破单调上下堆叠,左侧 320dp 独立信息面板(原版红图+标题+当前生效版型联动) + 右侧卡片选择区,与语言设置 100% 家族化统一。'
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
file: 'style_3_high_tech.html',
|
||||
title: '方案 3:High-Tech Crisp 硬朗工控科技风 (Teenage Engineering 灵感)',
|
||||
detail: '极清晰的几何硬线条,2px 精准墨黑边框 + 实体微投影(3px Offset Shadow),硬核触控实体质感,极具工控设备专业范。'
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
file: 'style_4_bento_showcase.html',
|
||||
title: '方案 4:Bento Showcase 横向双列磁贴风',
|
||||
detail: '充分发挥平板横屏优势,左右并排横向 50-50 对照卡片,一屏完整对照两个版本特性,无需上下滑动。'
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
file: 'style_5_editorial.html',
|
||||
title: '方案 5:Editorial Presentation 精奢大画幅风',
|
||||
detail: '高张力大字阶排版,左侧 5px 垂直品牌色指示条,右侧精密单选圈,呈现顶级软硬件产品发布会般的视觉层次。'
|
||||
}
|
||||
];
|
||||
|
||||
function switchOption(id, btn) {
|
||||
document.querySelectorAll('.tab-btn').forEach(b => b.classList.remove('active'));
|
||||
btn.classList.add('active');
|
||||
const opt = options.find(o => o.id === id);
|
||||
document.getElementById('descTitle').innerText = opt.title;
|
||||
document.getElementById('descDetail').innerText = opt.detail;
|
||||
document.getElementById('directLink').href = opt.file;
|
||||
document.getElementById('previewFrame').src = opt.file;
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,246 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>方案 1:Frosted Glass 现代微质感毛玻璃风</title>
|
||||
<style>
|
||||
:root {
|
||||
--primary: #3B82F6;
|
||||
--primary-glow: rgba(59, 130, 246, 0.15);
|
||||
--confirm: #10B981;
|
||||
--confirm-glow: rgba(16, 185, 129, 0.2);
|
||||
--text-main: #0F172A;
|
||||
--text-sub: #64748B;
|
||||
--glass-bg: rgba(255, 255, 255, 0.85);
|
||||
--glass-border: rgba(255, 255, 255, 0.6);
|
||||
}
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
|
||||
background: linear-gradient(135deg, #F1F5F9 0%, #E2E8F0 100%);
|
||||
color: var(--text-main);
|
||||
min-height: 100vh;
|
||||
padding: 24px;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
.device-container {
|
||||
width: 100%;
|
||||
max-width: 1040px;
|
||||
margin: 0 auto;
|
||||
background: rgba(255, 255, 255, 0.7);
|
||||
backdrop-filter: blur(20px);
|
||||
-webkit-backdrop-filter: blur(20px);
|
||||
border-radius: 24px;
|
||||
border: 1px solid var(--glass-border);
|
||||
box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08);
|
||||
overflow: hidden;
|
||||
}
|
||||
.appbar {
|
||||
height: 64px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 28px;
|
||||
background: rgba(255, 255, 255, 0.6);
|
||||
border-bottom: 1px solid rgba(226, 232, 240, 0.6);
|
||||
}
|
||||
.appbar-nav {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 12px;
|
||||
cursor: pointer;
|
||||
background: rgba(255, 255, 255, 0.9);
|
||||
border: 1px solid rgba(226, 232, 240, 0.8);
|
||||
box-shadow: 0 2px 6px rgba(0,0,0,0.03);
|
||||
}
|
||||
.appbar-nav svg { width: 20px; height: 20px; fill: var(--text-main); }
|
||||
.appbar-title {
|
||||
font-size: 19px;
|
||||
font-weight: 700;
|
||||
margin-left: 14px;
|
||||
letter-spacing: -0.2px;
|
||||
}
|
||||
.page-body {
|
||||
padding: 40px 28px 52px;
|
||||
max-width: 820px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
.hero {
|
||||
text-align: center;
|
||||
margin-bottom: 34px;
|
||||
}
|
||||
.hero-icon {
|
||||
width: 56px;
|
||||
height: 56px;
|
||||
margin: 0 auto 16px;
|
||||
border: 2.5px solid #FF5252;
|
||||
border-radius: 14px;
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
justify-content: center;
|
||||
padding: 8px 6px;
|
||||
gap: 4px;
|
||||
background: #FFFFFF;
|
||||
box-shadow: 0 8px 16px rgba(255, 82, 82, 0.15);
|
||||
}
|
||||
.hero-icon .bar {
|
||||
width: 6px;
|
||||
background: #FF5252;
|
||||
border-radius: 2px 2px 0 0;
|
||||
}
|
||||
.hero-icon .b1 { height: 14px; }
|
||||
.hero-icon .b2 { height: 28px; }
|
||||
.hero-icon .b3 { height: 18px; }
|
||||
|
||||
.hero-title {
|
||||
font-size: 24px;
|
||||
font-weight: 800;
|
||||
letter-spacing: -0.02em;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
.hero-sub {
|
||||
font-size: 14.5px;
|
||||
color: var(--text-sub);
|
||||
}
|
||||
.cards-group {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 16px;
|
||||
margin-bottom: 36px;
|
||||
}
|
||||
.glass-card {
|
||||
background: rgba(255, 255, 255, 0.9);
|
||||
backdrop-filter: blur(10px);
|
||||
border: 1.5px solid rgba(226, 232, 240, 0.8);
|
||||
border-radius: 20px;
|
||||
padding: 22px 26px;
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 18px;
|
||||
cursor: pointer;
|
||||
transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
|
||||
position: relative;
|
||||
}
|
||||
.glass-card:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
|
||||
border-color: #CBD5E1;
|
||||
}
|
||||
.glass-card.is-selected {
|
||||
background: linear-gradient(135deg, rgba(239, 246, 255, 0.95) 0%, rgba(255, 255, 255, 0.95) 100%);
|
||||
border-color: var(--primary);
|
||||
box-shadow: 0 0 0 1px var(--primary), 0 12px 30px var(--primary-glow);
|
||||
}
|
||||
.radio-slot {
|
||||
margin-top: 2px;
|
||||
}
|
||||
.radio-ring {
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
border-radius: 50%;
|
||||
border: 2px solid #CBD5E1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: #FFF;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
.glass-card.is-selected .radio-ring {
|
||||
border-color: var(--primary);
|
||||
background: var(--primary);
|
||||
}
|
||||
.radio-dot {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
background: #FFF;
|
||||
opacity: 0;
|
||||
transform: scale(0.3);
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
.glass-card.is-selected .radio-dot {
|
||||
opacity: 1;
|
||||
transform: scale(1);
|
||||
}
|
||||
.card-body { flex: 1; }
|
||||
.card-h {
|
||||
font-size: 17.5px;
|
||||
font-weight: 700;
|
||||
margin-bottom: 6px;
|
||||
letter-spacing: -0.01em;
|
||||
}
|
||||
.glass-card.is-selected .card-h {
|
||||
color: #1D4ED8;
|
||||
}
|
||||
.card-p {
|
||||
font-size: 14px;
|
||||
color: var(--text-sub);
|
||||
line-height: 1.6;
|
||||
}
|
||||
.btn-glass-confirm {
|
||||
width: 100%;
|
||||
height: 52px;
|
||||
background: linear-gradient(135deg, #10B981 0%, #059669 100%);
|
||||
color: #FFFFFF;
|
||||
border: none;
|
||||
border-radius: 16px;
|
||||
font-size: 16.5px;
|
||||
font-weight: 700;
|
||||
cursor: pointer;
|
||||
box-shadow: 0 8px 20px var(--confirm-glow);
|
||||
transition: all 0.2s ease;
|
||||
letter-spacing: 0.05em;
|
||||
}
|
||||
.btn-glass-confirm:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 12px 28px rgba(16, 185, 129, 0.3);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="device-container">
|
||||
<header class="appbar">
|
||||
<div class="appbar-nav"><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>
|
||||
<main class="page-body">
|
||||
<div class="hero">
|
||||
<div class="hero-icon">
|
||||
<div class="bar b1"></div>
|
||||
<div class="bar b2"></div>
|
||||
<div class="bar b3"></div>
|
||||
</div>
|
||||
<h2 class="hero-title">选择版型</h2>
|
||||
<p class="hero-sub">请选择适合您使用场景的版型,后续可在设置中更改</p>
|
||||
</div>
|
||||
<div class="cards-group" id="editionList">
|
||||
<div class="glass-card" onclick="selectCard(this)">
|
||||
<div class="radio-slot"><div class="radio-ring"><div class="radio-dot"></div></div></div>
|
||||
<div class="card-body">
|
||||
<h3 class="card-h">专业版</h3>
|
||||
<p class="card-p">为专业场馆管理员设计,布局固定专业化,核心数据字段默认全开,开箱即用</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="glass-card is-selected" onclick="selectCard(this)">
|
||||
<div class="radio-slot"><div class="radio-ring"><div class="radio-dot"></div></div></div>
|
||||
<div class="card-body">
|
||||
<h3 class="card-h">自定义功能版</h3>
|
||||
<p class="card-p">高度可配置,所有高级功能开放,适合研究员和高级用户</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<button class="btn-glass-confirm">确定</button>
|
||||
</main>
|
||||
</div>
|
||||
<script>
|
||||
function selectCard(el) {
|
||||
document.querySelectorAll('.glass-card').forEach(c => c.classList.remove('is-selected'));
|
||||
el.classList.add('is-selected');
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,456 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>EAPManageUI - 选择版型 (Split Studio 双栏精修版)</title>
|
||||
<style>
|
||||
/* =========================================================================
|
||||
:root 全量 Design Tokens 声明 (与系统设置全局规范严格对齐)
|
||||
========================================================================= */
|
||||
:root {
|
||||
/* ── 核心主题色 ── */
|
||||
--color-primary: #3949AB;
|
||||
--color-primary-dark: #283593;
|
||||
--color-primary-container: #EEF2FF;
|
||||
--color-on-primary-container: #1A237E;
|
||||
--color-primary-hover: rgba(57, 73, 171, 0.04);
|
||||
--color-primary-glow: rgba(57, 73, 171, 0.12);
|
||||
|
||||
/* ── 辅助确认色 ── */
|
||||
--color-secondary: #00897B;
|
||||
--color-secondary-container: #E0F2F1;
|
||||
--color-on-secondary: #FFFFFF;
|
||||
--color-secondary-hover: #C8ECE7;
|
||||
|
||||
/* ── 表面与背景 ── */
|
||||
--color-surface: #FFFFFF;
|
||||
--color-surface-variant: #F8FAFC;
|
||||
--color-background: #F1F5F9;
|
||||
|
||||
/* ── 文本语义色 ── */
|
||||
--text-primary: #0F172A;
|
||||
--text-secondary: #64748B;
|
||||
--text-disabled: #CBD5E1;
|
||||
|
||||
/* ── 边框与分割线 ── */
|
||||
--divider: #E2E8F0;
|
||||
--outline: #CBD5E1;
|
||||
|
||||
/* ── 圆角阶梯 ── */
|
||||
--corner-sm: 8px;
|
||||
--corner-md: 12px;
|
||||
--corner-lg: 16px;
|
||||
--corner-pill: 999px;
|
||||
|
||||
/* ── 阴影阶梯 ── */
|
||||
--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.03);
|
||||
--shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.06);
|
||||
--shadow-lg: 0 16px 36px -8px rgba(15, 23, 42, 0.08);
|
||||
|
||||
/* ── 尺寸与栅格 ── */
|
||||
--content-max-width: 940px;
|
||||
--sidebar-width: 320px;
|
||||
--appbar-height: 60px;
|
||||
--touch-min: 48px;
|
||||
}
|
||||
|
||||
* { 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-primary);
|
||||
min-height: 100vh;
|
||||
padding: 24px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
/* 视口模拟器容器 */
|
||||
.screen-container {
|
||||
width: 100%;
|
||||
max-width: 1060px;
|
||||
margin: 0 auto;
|
||||
background: var(--color-surface);
|
||||
border-radius: 20px;
|
||||
border: 1px solid var(--divider);
|
||||
box-shadow: var(--shadow-lg);
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
/* AppBar 顶部导航栏 */
|
||||
.appbar {
|
||||
height: var(--appbar-height);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 24px;
|
||||
background: var(--color-surface);
|
||||
border-bottom: 1px solid var(--divider);
|
||||
}
|
||||
|
||||
.appbar-nav {
|
||||
width: var(--touch-min);
|
||||
height: var(--touch-min);
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: var(--corner-md);
|
||||
cursor: pointer;
|
||||
background: var(--color-surface-variant);
|
||||
border: 1px solid var(--divider);
|
||||
transition: all 0.15s ease;
|
||||
margin-left: -4px;
|
||||
}
|
||||
|
||||
.appbar-nav:hover {
|
||||
background: #E2E8F0;
|
||||
transform: scale(0.98);
|
||||
}
|
||||
|
||||
.appbar-nav svg {
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
fill: var(--text-primary);
|
||||
}
|
||||
|
||||
.appbar-title {
|
||||
font-size: 20px;
|
||||
font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
margin-left: 14px;
|
||||
letter-spacing: -0.2px;
|
||||
}
|
||||
|
||||
/* 双栏主体布局 */
|
||||
.page-body {
|
||||
padding: 32px 28px 40px;
|
||||
background: var(--color-background);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: stretch;
|
||||
}
|
||||
|
||||
.master-detail-layout {
|
||||
width: 100%;
|
||||
max-width: var(--content-max-width);
|
||||
display: flex;
|
||||
gap: 24px;
|
||||
align-items: stretch;
|
||||
}
|
||||
|
||||
/* 左侧概览面板 (Master Summary) */
|
||||
.summary-sidebar {
|
||||
flex: 0 0 var(--sidebar-width);
|
||||
background: var(--color-surface);
|
||||
border-radius: var(--corner-lg);
|
||||
border: 1px solid var(--divider);
|
||||
box-shadow: var(--shadow-sm);
|
||||
padding: 28px 24px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
/* 出厂原版粉红/红框柱状图图标 (高精细度还原) */
|
||||
.sidebar-icon-box {
|
||||
width: 52px;
|
||||
height: 52px;
|
||||
border: 2.5px solid #FF5252;
|
||||
border-radius: 12px;
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
justify-content: center;
|
||||
padding: 8px 6px;
|
||||
gap: 4px;
|
||||
background: #FFFFFF;
|
||||
margin-bottom: 20px;
|
||||
box-shadow: 0 4px 12px rgba(255, 82, 82, 0.12);
|
||||
}
|
||||
|
||||
.sidebar-icon-box .bar {
|
||||
width: 6px;
|
||||
background: #FF5252;
|
||||
border-radius: 2px 2px 0 0;
|
||||
}
|
||||
|
||||
.sidebar-icon-box .b1 { height: 14px; }
|
||||
.sidebar-icon-box .b2 { height: 26px; }
|
||||
.sidebar-icon-box .b3 { height: 18px; }
|
||||
|
||||
.sidebar-title {
|
||||
font-size: 21px;
|
||||
font-weight: 700;
|
||||
color: var(--text-primary);
|
||||
margin-bottom: 8px;
|
||||
letter-spacing: -0.01em;
|
||||
}
|
||||
|
||||
.sidebar-desc {
|
||||
font-size: 13.5px;
|
||||
line-height: 1.6;
|
||||
color: var(--text-secondary);
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
/* 当前选定状态联动卡片 */
|
||||
.status-pill-box {
|
||||
margin-top: auto;
|
||||
background: var(--color-surface-variant);
|
||||
border: 1px solid var(--divider);
|
||||
border-radius: var(--corner-md);
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
.status-label {
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
color: var(--text-secondary);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.status-value {
|
||||
font-size: 17px;
|
||||
font-weight: 700;
|
||||
color: var(--color-primary);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.status-dot {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
background: #10B981;
|
||||
box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
|
||||
}
|
||||
|
||||
/* 右侧选择区与操作 */
|
||||
.main-selection {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.edition-card {
|
||||
background: var(--color-surface);
|
||||
border: 1.5px solid var(--divider);
|
||||
border-radius: var(--corner-lg);
|
||||
padding: 22px 24px;
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 18px;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
box-shadow: var(--shadow-sm);
|
||||
position: relative;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.edition-card:hover {
|
||||
border-color: #94A3B8;
|
||||
background: #F8FAFC;
|
||||
transform: translateY(-1px);
|
||||
box-shadow: var(--shadow-md);
|
||||
}
|
||||
|
||||
.edition-card.is-selected {
|
||||
border-color: var(--color-primary);
|
||||
background: var(--color-primary-container);
|
||||
box-shadow: 0 4px 20px rgba(57, 73, 171, 0.12);
|
||||
}
|
||||
|
||||
/* 选中左侧指示光条 */
|
||||
.card-active-indicator {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 18px;
|
||||
bottom: 18px;
|
||||
width: 4px;
|
||||
border-radius: 0 4px 4px 0;
|
||||
background: var(--color-primary);
|
||||
opacity: 0;
|
||||
transform: scaleY(0.4);
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.edition-card.is-selected .card-active-indicator {
|
||||
opacity: 1;
|
||||
transform: scaleY(1);
|
||||
}
|
||||
|
||||
.radio-slot {
|
||||
margin-top: 2px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.radio-outer {
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
border-radius: 50%;
|
||||
border: 2px solid var(--outline);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: #FFFFFF;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.edition-card.is-selected .radio-outer {
|
||||
border-color: var(--color-primary);
|
||||
}
|
||||
|
||||
.radio-inner {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
border-radius: 50%;
|
||||
background: var(--color-primary);
|
||||
opacity: 0;
|
||||
transform: scale(0.3);
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.edition-card.is-selected .radio-inner {
|
||||
opacity: 1;
|
||||
transform: scale(1);
|
||||
}
|
||||
|
||||
.edition-info { flex: 1; }
|
||||
|
||||
.edition-name {
|
||||
font-size: 17.5px;
|
||||
font-weight: 700;
|
||||
color: var(--text-primary);
|
||||
margin-bottom: 6px;
|
||||
letter-spacing: -0.01em;
|
||||
}
|
||||
|
||||
.edition-card.is-selected .edition-name {
|
||||
color: var(--color-on-primary-container);
|
||||
}
|
||||
|
||||
.edition-desc {
|
||||
font-size: 13.8px;
|
||||
color: var(--text-secondary);
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.btn-confirm-wrap {
|
||||
margin-top: auto;
|
||||
padding-top: 8px;
|
||||
}
|
||||
|
||||
.btn-confirm {
|
||||
width: 100%;
|
||||
height: 48px;
|
||||
background: var(--color-secondary-container);
|
||||
color: var(--color-secondary);
|
||||
border: 1px solid rgba(0, 137, 123, 0.2);
|
||||
border-radius: var(--corner-md);
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: all 0.15s ease;
|
||||
letter-spacing: 0.05em;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.btn-confirm:hover {
|
||||
background: var(--color-secondary-hover);
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 4px 12px rgba(0, 137, 123, 0.15);
|
||||
}
|
||||
|
||||
.btn-confirm:active {
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.master-detail-layout {
|
||||
flex-direction: column;
|
||||
}
|
||||
.summary-sidebar {
|
||||
flex: none;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="screen-container">
|
||||
<header class="appbar">
|
||||
<div class="appbar-nav"><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>
|
||||
|
||||
<main class="page-body">
|
||||
<div class="master-detail-layout">
|
||||
<!-- 左侧状态概览面板 -->
|
||||
<aside class="summary-sidebar">
|
||||
<div class="sidebar-icon-box">
|
||||
<div class="bar b1"></div>
|
||||
<div class="bar b2"></div>
|
||||
<div class="bar b3"></div>
|
||||
</div>
|
||||
<h2 class="sidebar-title">选择版型</h2>
|
||||
<p class="sidebar-desc">请选择适合您使用场景的版型,后续可在设置中更改</p>
|
||||
|
||||
<div class="status-pill-box">
|
||||
<div class="status-label">当前选定版型</div>
|
||||
<div class="status-value">
|
||||
<span class="status-dot"></span>
|
||||
<span id="currEditionLabel">自定义功能版</span>
|
||||
</div>
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
<!-- 右侧版型卡片选择区 -->
|
||||
<section class="main-selection" id="editionGroup">
|
||||
<div class="edition-card" onclick="selectEdition(this, '专业版')">
|
||||
<div class="card-active-indicator"></div>
|
||||
<div class="radio-slot"><div class="radio-outer"><div class="radio-inner"></div></div></div>
|
||||
<div class="edition-info">
|
||||
<h3 class="edition-name">专业版</h3>
|
||||
<p class="edition-desc">为专业场馆管理员设计,布局固定专业化,核心数据字段默认全开,开箱即用</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="edition-card is-selected" onclick="selectEdition(this, '自定义功能版')">
|
||||
<div class="card-active-indicator"></div>
|
||||
<div class="radio-slot"><div class="radio-outer"><div class="radio-inner"></div></div></div>
|
||||
<div class="edition-info">
|
||||
<h3 class="edition-name">自定义功能版</h3>
|
||||
<p class="edition-desc">高度可配置,所有高级功能开放,适合研究员和高级用户</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="btn-confirm-wrap">
|
||||
<button class="btn-confirm">确定</button>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function selectEdition(el, name) {
|
||||
document.querySelectorAll('.edition-card').forEach(c => c.classList.remove('is-selected'));
|
||||
el.classList.add('is-selected');
|
||||
document.getElementById('currEditionLabel').innerText = name;
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,237 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>方案 3:High-Tech Crisp 硬朗工控科技风</title>
|
||||
<style>
|
||||
:root {
|
||||
--tech-black: #0F172A;
|
||||
--tech-dark: #1E293B;
|
||||
--tech-blue: #2563EB;
|
||||
--tech-blue-bg: #EFF6FF;
|
||||
--tech-green: #059669;
|
||||
--tech-green-bg: #ECFDF5;
|
||||
--border-hard: #0F172A;
|
||||
}
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
|
||||
background: #F1F5F9;
|
||||
color: var(--tech-black);
|
||||
min-height: 100vh;
|
||||
padding: 24px;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
.device-container {
|
||||
width: 100%;
|
||||
max-width: 1024px;
|
||||
margin: 0 auto;
|
||||
background: #FFFFFF;
|
||||
border-radius: 16px;
|
||||
border: 2px solid var(--border-hard);
|
||||
box-shadow: 6px 6px 0px var(--border-hard);
|
||||
overflow: hidden;
|
||||
}
|
||||
.appbar {
|
||||
height: 60px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 24px;
|
||||
background: #FFFFFF;
|
||||
border-bottom: 2px solid var(--border-hard);
|
||||
}
|
||||
.appbar-nav {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 8px;
|
||||
cursor: pointer;
|
||||
background: #F1F5F9;
|
||||
border: 1.5px solid var(--border-hard);
|
||||
}
|
||||
.appbar-nav svg { width: 20px; height: 20px; fill: var(--tech-black); }
|
||||
.appbar-title {
|
||||
font-size: 19px;
|
||||
font-weight: 700;
|
||||
margin-left: 14px;
|
||||
}
|
||||
.page-body {
|
||||
padding: 40px 24px 48px;
|
||||
max-width: 780px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
.hero {
|
||||
text-align: center;
|
||||
margin-bottom: 34px;
|
||||
}
|
||||
.hero-icon {
|
||||
width: 52px;
|
||||
height: 52px;
|
||||
margin: 0 auto 14px;
|
||||
border: 2.5px solid #EF4444;
|
||||
border-radius: 10px;
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
justify-content: center;
|
||||
padding: 7px 6px;
|
||||
gap: 4px;
|
||||
background: #FFF;
|
||||
box-shadow: 3px 3px 0px #EF4444;
|
||||
}
|
||||
.hero-icon .bar {
|
||||
width: 6px;
|
||||
background: #EF4444;
|
||||
border-radius: 1px 1px 0 0;
|
||||
}
|
||||
.hero-icon .b1 { height: 14px; }
|
||||
.hero-icon .b2 { height: 26px; }
|
||||
.hero-icon .b3 { height: 18px; }
|
||||
|
||||
.hero-title {
|
||||
font-size: 22px;
|
||||
font-weight: 800;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
.hero-sub {
|
||||
font-size: 13.5px;
|
||||
color: #64748B;
|
||||
font-weight: 500;
|
||||
}
|
||||
.cards-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 16px;
|
||||
margin-bottom: 32px;
|
||||
}
|
||||
.tech-card {
|
||||
background: #FFFFFF;
|
||||
border: 2px solid var(--border-hard);
|
||||
border-radius: 12px;
|
||||
padding: 20px 24px;
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 16px;
|
||||
cursor: pointer;
|
||||
box-shadow: 3px 3px 0px var(--border-hard);
|
||||
transition: all 0.15s ease;
|
||||
user-select: none;
|
||||
}
|
||||
.tech-card:hover {
|
||||
transform: translate(-1px, -1px);
|
||||
box-shadow: 4px 4px 0px var(--border-hard);
|
||||
}
|
||||
.tech-card.is-selected {
|
||||
background: var(--tech-blue-bg);
|
||||
border-color: var(--tech-blue);
|
||||
box-shadow: 3px 3px 0px var(--tech-blue);
|
||||
}
|
||||
.radio-slot { margin-top: 2px; }
|
||||
.radio-outer {
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
border-radius: 50%;
|
||||
border: 2px solid var(--border-hard);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: #FFF;
|
||||
}
|
||||
.tech-card.is-selected .radio-outer {
|
||||
border-color: var(--tech-blue);
|
||||
background: var(--tech-blue);
|
||||
}
|
||||
.radio-inner {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
background: #FFF;
|
||||
opacity: 0;
|
||||
transform: scale(0.3);
|
||||
transition: all 0.15s ease;
|
||||
}
|
||||
.tech-card.is-selected .radio-inner {
|
||||
opacity: 1;
|
||||
transform: scale(1);
|
||||
}
|
||||
.card-content { flex: 1; }
|
||||
.card-h {
|
||||
font-size: 17px;
|
||||
font-weight: 700;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
.tech-card.is-selected .card-h {
|
||||
color: var(--tech-blue);
|
||||
}
|
||||
.card-p {
|
||||
font-size: 13.5px;
|
||||
color: #475569;
|
||||
line-height: 1.55;
|
||||
}
|
||||
.btn-tech-confirm {
|
||||
width: 100%;
|
||||
height: 48px;
|
||||
background: var(--tech-green-bg);
|
||||
color: var(--tech-green);
|
||||
border: 2px solid var(--tech-green);
|
||||
border-radius: 12px;
|
||||
font-size: 16px;
|
||||
font-weight: 700;
|
||||
cursor: pointer;
|
||||
box-shadow: 3px 3px 0px var(--tech-green);
|
||||
transition: all 0.15s ease;
|
||||
}
|
||||
.btn-tech-confirm:hover {
|
||||
transform: translate(-1px, -1px);
|
||||
box-shadow: 4px 4px 0px var(--tech-green);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="device-container">
|
||||
<header class="appbar">
|
||||
<div class="appbar-nav"><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>
|
||||
<main class="page-body">
|
||||
<div class="hero">
|
||||
<div class="hero-icon">
|
||||
<div class="bar b1"></div>
|
||||
<div class="bar b2"></div>
|
||||
<div class="bar b3"></div>
|
||||
</div>
|
||||
<h2 class="hero-title">选择版型</h2>
|
||||
<p class="hero-sub">请选择适合您使用场景的版型,后续可在设置中更改</p>
|
||||
</div>
|
||||
|
||||
<div class="cards-list" id="editionList">
|
||||
<div class="tech-card" onclick="selectCard(this)">
|
||||
<div class="radio-slot"><div class="radio-outer"><div class="radio-inner"></div></div></div>
|
||||
<div class="card-content">
|
||||
<h3 class="card-h">专业版</h3>
|
||||
<p class="card-p">为专业场馆管理员设计,布局固定专业化,核心数据字段默认全开,开箱即用</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="tech-card is-selected" onclick="selectCard(this)">
|
||||
<div class="radio-slot"><div class="radio-outer"><div class="radio-inner"></div></div></div>
|
||||
<div class="card-content">
|
||||
<h3 class="card-h">自定义功能版</h3>
|
||||
<p class="card-p">高度可配置,所有高级功能开放,适合研究员和高级用户</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<button class="btn-tech-confirm">确定</button>
|
||||
</main>
|
||||
</div>
|
||||
<script>
|
||||
function selectCard(el) {
|
||||
document.querySelectorAll('.tech-card').forEach(c => c.classList.remove('is-selected'));
|
||||
el.classList.add('is-selected');
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,249 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>方案 4:Bento Showcase 横向双列磁贴风</title>
|
||||
<style>
|
||||
:root {
|
||||
--color-primary: #3949AB;
|
||||
--color-primary-light: #EEF2FF;
|
||||
--color-secondary: #00897B;
|
||||
--color-secondary-container: #E0F2F1;
|
||||
--color-surface: #FFFFFF;
|
||||
--color-background: #F4F6F9;
|
||||
--text-primary: #0F172A;
|
||||
--text-secondary: #64748B;
|
||||
--divider: #E2E8F0;
|
||||
--outline: #CBD5E1;
|
||||
--corner-card: 18px;
|
||||
--content-max-width: 900px;
|
||||
}
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
|
||||
background: var(--color-background);
|
||||
color: var(--text-primary);
|
||||
min-height: 100vh;
|
||||
padding: 24px;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
.device-container {
|
||||
width: 100%;
|
||||
max-width: 1040px;
|
||||
margin: 0 auto;
|
||||
background: #FFFFFF;
|
||||
border-radius: 20px;
|
||||
border: 1px solid var(--divider);
|
||||
box-shadow: 0 8px 30px rgba(15, 23, 42, 0.05);
|
||||
overflow: hidden;
|
||||
}
|
||||
.appbar {
|
||||
height: 62px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 24px;
|
||||
border-bottom: 1px solid var(--divider);
|
||||
}
|
||||
.appbar-nav {
|
||||
width: 38px;
|
||||
height: 38px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 10px;
|
||||
cursor: pointer;
|
||||
background: #F1F5F9;
|
||||
}
|
||||
.appbar-nav svg { width: 20px; height: 20px; fill: var(--text-primary); }
|
||||
.appbar-title {
|
||||
font-size: 19px;
|
||||
font-weight: 600;
|
||||
margin-left: 14px;
|
||||
}
|
||||
.page-body {
|
||||
padding: 36px 24px 44px;
|
||||
max-width: var(--content-max-width);
|
||||
margin: 0 auto;
|
||||
}
|
||||
.hero {
|
||||
text-align: center;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
.hero-icon {
|
||||
width: 52px;
|
||||
height: 52px;
|
||||
margin: 0 auto 14px;
|
||||
border: 2.5px solid #FF5252;
|
||||
border-radius: 12px;
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
justify-content: center;
|
||||
padding: 7px 6px;
|
||||
gap: 4px;
|
||||
background: #FFF;
|
||||
box-shadow: 0 6px 16px rgba(255, 82, 82, 0.15);
|
||||
}
|
||||
.hero-icon .bar {
|
||||
width: 6px;
|
||||
background: #FF5252;
|
||||
border-radius: 1.5px 1.5px 0 0;
|
||||
}
|
||||
.hero-icon .b1 { height: 13px; }
|
||||
.hero-icon .b2 { height: 26px; }
|
||||
.hero-icon .b3 { height: 17px; }
|
||||
|
||||
.hero-title {
|
||||
font-size: 22px;
|
||||
font-weight: 700;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
.hero-sub {
|
||||
font-size: 13.5px;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
.bento-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
gap: 20px;
|
||||
margin-bottom: 32px;
|
||||
}
|
||||
.bento-card {
|
||||
background: #FFFFFF;
|
||||
border: 2px solid #E2E8F0;
|
||||
border-radius: var(--corner-card);
|
||||
padding: 24px 22px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
position: relative;
|
||||
box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
|
||||
user-select: none;
|
||||
}
|
||||
.bento-card:hover {
|
||||
border-color: #94A3B8;
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
|
||||
}
|
||||
.bento-card.is-selected {
|
||||
border-color: var(--color-primary);
|
||||
background: var(--color-primary-light);
|
||||
box-shadow: 0 0 0 1px var(--color-primary), 0 10px 28px rgba(57, 73, 171, 0.12);
|
||||
}
|
||||
.card-header-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
.radio-outer {
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
border-radius: 50%;
|
||||
border: 2px solid var(--outline);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: #FFF;
|
||||
flex-shrink: 0;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
.bento-card.is-selected .radio-outer {
|
||||
border-color: var(--color-primary);
|
||||
background: var(--color-primary);
|
||||
}
|
||||
.radio-inner {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
background: #FFF;
|
||||
opacity: 0;
|
||||
transform: scale(0.3);
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
.bento-card.is-selected .radio-inner {
|
||||
opacity: 1;
|
||||
transform: scale(1);
|
||||
}
|
||||
.edition-name {
|
||||
font-size: 18px;
|
||||
font-weight: 700;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
.bento-card.is-selected .edition-name {
|
||||
color: var(--color-primary);
|
||||
}
|
||||
.edition-desc {
|
||||
font-size: 13.5px;
|
||||
color: var(--text-secondary);
|
||||
line-height: 1.6;
|
||||
flex: 1;
|
||||
}
|
||||
.action-wrap {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
.btn-confirm {
|
||||
width: 320px;
|
||||
height: 48px;
|
||||
background: var(--color-secondary-container);
|
||||
color: var(--color-secondary);
|
||||
border: 1px solid rgba(0, 137, 123, 0.2);
|
||||
border-radius: 12px;
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: all 0.15s ease;
|
||||
}
|
||||
.btn-confirm:hover {
|
||||
background: #C8ECE7;
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="device-container">
|
||||
<header class="appbar">
|
||||
<div class="appbar-nav"><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>
|
||||
<main class="page-body">
|
||||
<div class="hero">
|
||||
<div class="hero-icon">
|
||||
<div class="bar b1"></div>
|
||||
<div class="bar b2"></div>
|
||||
<div class="bar b3"></div>
|
||||
</div>
|
||||
<h2 class="hero-title">选择版型</h2>
|
||||
<p class="hero-sub">请选择适合您使用场景的版型,后续可在设置中更改</p>
|
||||
</div>
|
||||
<div class="bento-grid" id="editionList">
|
||||
<div class="bento-card" onclick="selectEdition(this)">
|
||||
<div class="card-header-row">
|
||||
<div class="radio-outer"><div class="radio-inner"></div></div>
|
||||
<div class="edition-name">专业版</div>
|
||||
</div>
|
||||
<p class="edition-desc">为专业场馆管理员设计,布局固定专业化,核心数据字段默认全开,开箱即用</p>
|
||||
</div>
|
||||
<div class="bento-card is-selected" onclick="selectEdition(this)">
|
||||
<div class="card-header-row">
|
||||
<div class="radio-outer"><div class="radio-inner"></div></div>
|
||||
<div class="edition-name">自定义功能版</div>
|
||||
</div>
|
||||
<p class="edition-desc">高度可配置,所有高级功能开放,适合研究员和高级用户</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="action-wrap">
|
||||
<button class="btn-confirm">确定</button>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
<script>
|
||||
function selectEdition(el) {
|
||||
document.querySelectorAll('.bento-card').forEach(c => c.classList.remove('is-selected'));
|
||||
el.classList.add('is-selected');
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,252 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>方案 5:Editorial Presentation 精奢大画幅风</title>
|
||||
<style>
|
||||
:root {
|
||||
--color-primary: #1D4ED8;
|
||||
--color-primary-bg: #EFF6FF;
|
||||
--color-secondary: #0F766E;
|
||||
--color-secondary-bg: #CCFBF1;
|
||||
--color-surface: #FFFFFF;
|
||||
--color-background: #F8FAFC;
|
||||
--text-primary: #0F172A;
|
||||
--text-secondary: #64748B;
|
||||
--divider: #E2E8F0;
|
||||
--content-max-width: 860px;
|
||||
}
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
|
||||
background: var(--color-background);
|
||||
color: var(--text-primary);
|
||||
min-height: 100vh;
|
||||
padding: 24px;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
.device-container {
|
||||
width: 100%;
|
||||
max-width: 1040px;
|
||||
margin: 0 auto;
|
||||
background: #FFFFFF;
|
||||
border-radius: 20px;
|
||||
border: 1px solid var(--divider);
|
||||
box-shadow: 0 10px 30px rgba(0,0,0,0.05);
|
||||
overflow: hidden;
|
||||
}
|
||||
.appbar {
|
||||
height: 64px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 28px;
|
||||
border-bottom: 1px solid var(--divider);
|
||||
}
|
||||
.appbar-nav {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 10px;
|
||||
cursor: pointer;
|
||||
background: #F1F5F9;
|
||||
}
|
||||
.appbar-nav svg { width: 20px; height: 20px; fill: var(--text-primary); }
|
||||
.appbar-title {
|
||||
font-size: 20px;
|
||||
font-weight: 700;
|
||||
margin-left: 14px;
|
||||
}
|
||||
.page-body {
|
||||
padding: 44px 28px 52px;
|
||||
max-width: var(--content-max-width);
|
||||
margin: 0 auto;
|
||||
}
|
||||
.hero {
|
||||
text-align: center;
|
||||
margin-bottom: 38px;
|
||||
}
|
||||
.hero-icon {
|
||||
width: 58px;
|
||||
height: 58px;
|
||||
margin: 0 auto 16px;
|
||||
border: 2.5px solid #FF5252;
|
||||
border-radius: 14px;
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
justify-content: center;
|
||||
padding: 8px 7px;
|
||||
gap: 5px;
|
||||
background: #FFF;
|
||||
box-shadow: 0 6px 18px rgba(255, 82, 82, 0.15);
|
||||
}
|
||||
.hero-icon .bar {
|
||||
width: 6px;
|
||||
background: #FF5252;
|
||||
border-radius: 2px 2px 0 0;
|
||||
}
|
||||
.hero-icon .b1 { height: 15px; }
|
||||
.hero-icon .b2 { height: 30px; }
|
||||
.hero-icon .b3 { height: 20px; }
|
||||
|
||||
.hero-title {
|
||||
font-size: 26px;
|
||||
font-weight: 800;
|
||||
letter-spacing: -0.02em;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
.hero-sub {
|
||||
font-size: 14.5px;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
.card-stack {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 18px;
|
||||
margin-bottom: 36px;
|
||||
}
|
||||
.edition-card {
|
||||
background: #FFFFFF;
|
||||
border: 1.5px solid #E2E8F0;
|
||||
border-radius: 16px;
|
||||
padding: 24px 28px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 20px;
|
||||
cursor: pointer;
|
||||
position: relative;
|
||||
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
box-shadow: 0 2px 8px rgba(0,0,0,0.02);
|
||||
}
|
||||
.edition-card:hover {
|
||||
border-color: #94A3B8;
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 8px 20px rgba(0,0,0,0.06);
|
||||
}
|
||||
.edition-card.is-selected {
|
||||
background: var(--color-primary-bg);
|
||||
border-color: var(--color-primary);
|
||||
box-shadow: 0 0 0 1px var(--color-primary), 0 8px 24px rgba(29, 78, 216, 0.12);
|
||||
}
|
||||
.edition-card::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 18px;
|
||||
bottom: 18px;
|
||||
width: 5px;
|
||||
border-radius: 0 4px 4px 0;
|
||||
background: var(--color-primary);
|
||||
opacity: 0;
|
||||
transition: opacity 0.2s ease;
|
||||
}
|
||||
.edition-card.is-selected::before { opacity: 1; }
|
||||
.card-left { flex: 1; padding-left: 6px; }
|
||||
.edition-name {
|
||||
font-size: 19px;
|
||||
font-weight: 700;
|
||||
color: var(--text-primary);
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
.edition-card.is-selected .edition-name {
|
||||
color: var(--color-primary);
|
||||
}
|
||||
.edition-desc {
|
||||
font-size: 14px;
|
||||
color: var(--text-secondary);
|
||||
line-height: 1.6;
|
||||
}
|
||||
.radio-outer {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
border-radius: 50%;
|
||||
border: 2px solid #CBD5E1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: #FFF;
|
||||
flex-shrink: 0;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
.edition-card.is-selected .radio-outer {
|
||||
border-color: var(--color-primary);
|
||||
background: var(--color-primary);
|
||||
}
|
||||
.radio-inner {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
background: #FFF;
|
||||
opacity: 0;
|
||||
transform: scale(0.3);
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
.edition-card.is-selected .radio-inner {
|
||||
opacity: 1;
|
||||
transform: scale(1);
|
||||
}
|
||||
.btn-confirm {
|
||||
width: 100%;
|
||||
height: 50px;
|
||||
background: var(--color-secondary-bg);
|
||||
color: var(--color-secondary);
|
||||
border: 1.5px solid rgba(15, 118, 110, 0.25);
|
||||
border-radius: 14px;
|
||||
font-size: 16.5px;
|
||||
font-weight: 700;
|
||||
cursor: pointer;
|
||||
transition: all 0.15s ease;
|
||||
letter-spacing: 0.04em;
|
||||
}
|
||||
.btn-confirm:hover {
|
||||
background: #A7F3D0;
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="device-container">
|
||||
<header class="appbar">
|
||||
<div class="appbar-nav"><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>
|
||||
<main class="page-body">
|
||||
<div class="hero">
|
||||
<div class="hero-icon">
|
||||
<div class="bar b1"></div>
|
||||
<div class="bar b2"></div>
|
||||
<div class="bar b3"></div>
|
||||
</div>
|
||||
<h2 class="hero-title">选择版型</h2>
|
||||
<p class="hero-sub">请选择适合您使用场景的版型,后续可在设置中更改</p>
|
||||
</div>
|
||||
<div class="card-stack" id="editionList">
|
||||
<div class="edition-card" onclick="selectEdition(this)">
|
||||
<div class="card-left">
|
||||
<h3 class="edition-name">专业版</h3>
|
||||
<p class="edition-desc">为专业场馆管理员设计,布局固定专业化,核心数据字段默认全开,开箱即用</p>
|
||||
</div>
|
||||
<div class="radio-outer"><div class="radio-inner"></div></div>
|
||||
</div>
|
||||
<div class="edition-card is-selected" onclick="selectEdition(this)">
|
||||
<div class="card-left">
|
||||
<h3 class="edition-name">自定义功能版</h3>
|
||||
<p class="edition-desc">高度可配置,所有高级功能开放,适合研究员和高级用户</p>
|
||||
</div>
|
||||
<div class="radio-outer"><div class="radio-inner"></div></div>
|
||||
</div>
|
||||
</div>
|
||||
<button class="btn-confirm">确定</button>
|
||||
</main>
|
||||
</div>
|
||||
<script>
|
||||
function selectEdition(el) {
|
||||
document.querySelectorAll('.edition-card').forEach(c => c.classList.remove('is-selected'));
|
||||
el.classList.add('is-selected');
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,240 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>方案 1:原版原构精致化 (M3 Classic Refined)</title>
|
||||
<style>
|
||||
:root {
|
||||
--color-primary: #3949AB;
|
||||
--color-primary-container: #E8EAF6;
|
||||
--color-on-primary-container: #1A237E;
|
||||
--color-secondary: #00897B;
|
||||
--color-secondary-container: #E0F2F1;
|
||||
--color-surface: #FFFFFF;
|
||||
--color-background: #F1F4F9;
|
||||
--text-primary: #1C1B1F;
|
||||
--text-secondary: #49454F;
|
||||
--divider: #E0E0E0;
|
||||
--outline: #9E9E9E;
|
||||
--corner-card: 12px;
|
||||
--corner-btn: 10px;
|
||||
--content-max-width: 840px;
|
||||
}
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
|
||||
background: var(--color-background);
|
||||
color: var(--text-primary);
|
||||
min-height: 100vh;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
.device-container {
|
||||
width: 100%;
|
||||
max-width: 1024px;
|
||||
margin: 20px auto;
|
||||
background: var(--color-surface);
|
||||
border-radius: 14px;
|
||||
border: 1px solid var(--divider);
|
||||
overflow: hidden;
|
||||
box-shadow: 0 4px 20px rgba(0,0,0,0.06);
|
||||
}
|
||||
.appbar {
|
||||
height: 56px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 20px;
|
||||
background: var(--color-surface);
|
||||
border-bottom: 1px solid var(--divider);
|
||||
}
|
||||
.appbar-nav {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 50%;
|
||||
cursor: pointer;
|
||||
margin-left: -8px;
|
||||
}
|
||||
.appbar-nav:hover { background: rgba(0,0,0,0.04); }
|
||||
.appbar-nav svg { width: 22px; height: 22px; fill: var(--text-primary); }
|
||||
.appbar-title {
|
||||
font-size: 20px;
|
||||
font-weight: 500;
|
||||
margin-left: 12px;
|
||||
}
|
||||
.page-body {
|
||||
padding: 40px 24px 48px;
|
||||
max-width: var(--content-max-width);
|
||||
margin: 0 auto;
|
||||
}
|
||||
.hero {
|
||||
text-align: center;
|
||||
margin-bottom: 32px;
|
||||
}
|
||||
/* 严格还原原图粉红/红色柱状图图标 */
|
||||
.hero-icon {
|
||||
width: 52px;
|
||||
height: 52px;
|
||||
margin: 0 auto 16px;
|
||||
border: 2.5px solid #FF6B6B;
|
||||
border-radius: 10px;
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
justify-content: center;
|
||||
padding: 8px 6px;
|
||||
gap: 4px;
|
||||
background: #FFF;
|
||||
}
|
||||
.hero-icon .bar {
|
||||
width: 6px;
|
||||
background: #FF6B6B;
|
||||
border-radius: 2px 2px 0 0;
|
||||
}
|
||||
.hero-icon .b1 { height: 14px; }
|
||||
.hero-icon .b2 { height: 26px; }
|
||||
.hero-icon .b3 { height: 18px; }
|
||||
|
||||
.hero-title {
|
||||
font-size: 22px;
|
||||
font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
.hero-sub {
|
||||
font-size: 14px;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
.card-stack {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 14px;
|
||||
margin-bottom: 28px;
|
||||
}
|
||||
/* 左侧 Radio,右侧文案,与原图 100% 一致 */
|
||||
.edition-card {
|
||||
background: var(--color-surface);
|
||||
border: 1px solid var(--divider);
|
||||
border-radius: var(--corner-card);
|
||||
padding: 16px 20px;
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 16px;
|
||||
cursor: pointer;
|
||||
transition: all 0.15s ease;
|
||||
}
|
||||
.edition-card:hover {
|
||||
border-color: var(--outline);
|
||||
}
|
||||
.edition-card.is-selected {
|
||||
border: 2px solid var(--color-primary);
|
||||
background: var(--color-primary-container);
|
||||
padding: 15px 19px; /* 补偿 2px 描边防抖 */
|
||||
}
|
||||
.radio-slot {
|
||||
padding-top: 2px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.radio-circle {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border-radius: 50%;
|
||||
border: 2px solid var(--outline);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: #FFFFFF;
|
||||
}
|
||||
.edition-card.is-selected .radio-circle {
|
||||
border-color: var(--color-primary);
|
||||
}
|
||||
.radio-dot {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
border-radius: 50%;
|
||||
background: var(--color-primary);
|
||||
opacity: 0;
|
||||
transform: scale(0.4);
|
||||
transition: all 0.15s ease;
|
||||
}
|
||||
.edition-card.is-selected .radio-dot {
|
||||
opacity: 1;
|
||||
transform: scale(1);
|
||||
}
|
||||
.edition-info { flex: 1; }
|
||||
.edition-name {
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
.edition-card.is-selected .edition-name {
|
||||
color: var(--color-on-primary-container);
|
||||
}
|
||||
.edition-desc {
|
||||
font-size: 13.5px;
|
||||
color: var(--text-secondary);
|
||||
line-height: 1.5;
|
||||
}
|
||||
/* 原图浅绿确定按钮 */
|
||||
.btn-confirm {
|
||||
width: 100%;
|
||||
height: 46px;
|
||||
background: var(--color-secondary-container);
|
||||
color: var(--color-secondary);
|
||||
border: none;
|
||||
border-radius: var(--corner-btn);
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
transition: all 0.15s ease;
|
||||
}
|
||||
.btn-confirm:hover {
|
||||
filter: brightness(0.96);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="device-container">
|
||||
<div class="appbar">
|
||||
<div class="appbar-nav"><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>
|
||||
<div class="appbar-title">选择版型</div>
|
||||
</div>
|
||||
<div class="page-body">
|
||||
<div class="hero">
|
||||
<div class="hero-icon">
|
||||
<div class="bar b1"></div>
|
||||
<div class="bar b2"></div>
|
||||
<div class="bar b3"></div>
|
||||
</div>
|
||||
<div class="hero-title">选择版型</div>
|
||||
<div class="hero-sub">请选择适合您使用场景的版型,后续可在设置中更改</div>
|
||||
</div>
|
||||
<div class="card-stack" id="editionList">
|
||||
<div class="edition-card" onclick="selectEdition(this)">
|
||||
<div class="radio-slot"><div class="radio-circle"><div class="radio-dot"></div></div></div>
|
||||
<div class="edition-info">
|
||||
<div class="edition-name">专业版</div>
|
||||
<div class="edition-desc">为专业场馆管理员设计,布局固定专业化,核心数据字段默认全开,开箱即用</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="edition-card is-selected" onclick="selectEdition(this)">
|
||||
<div class="radio-slot"><div class="radio-circle"><div class="radio-dot"></div></div></div>
|
||||
<div class="edition-info">
|
||||
<div class="edition-name">自定义功能版</div>
|
||||
<div class="edition-desc">高度可配置,所有高级功能开放,适合研究员和高级用户</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<button class="btn-confirm">确定</button>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
function selectEdition(el) {
|
||||
document.querySelectorAll('.edition-card').forEach(c => c.classList.remove('is-selected'));
|
||||
el.classList.add('is-selected');
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,238 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>方案 2:现代纯净浮岛版 (Modern Clean Island)</title>
|
||||
<style>
|
||||
:root {
|
||||
--color-primary: #304FFE;
|
||||
--color-primary-light: #EEF2FF;
|
||||
--color-secondary: #00897B;
|
||||
--color-secondary-container: #E0F2F1;
|
||||
--color-surface: #FFFFFF;
|
||||
--color-background: #F8FAFC;
|
||||
--text-primary: #0F172A;
|
||||
--text-secondary: #64748B;
|
||||
--divider: #E2E8F0;
|
||||
--outline: #CBD5E1;
|
||||
--corner-card: 16px;
|
||||
--content-max-width: 760px;
|
||||
}
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
|
||||
background: var(--color-background);
|
||||
color: var(--text-primary);
|
||||
min-height: 100vh;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
.device-container {
|
||||
width: 100%;
|
||||
max-width: 1024px;
|
||||
margin: 20px auto;
|
||||
background: #FFFFFF;
|
||||
border-radius: 16px;
|
||||
border: 1px solid var(--divider);
|
||||
overflow: hidden;
|
||||
box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05);
|
||||
}
|
||||
.appbar {
|
||||
height: 58px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 24px;
|
||||
border-bottom: 1px solid var(--divider);
|
||||
}
|
||||
.appbar-nav {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 8px;
|
||||
cursor: pointer;
|
||||
background: #F1F5F9;
|
||||
}
|
||||
.appbar-nav svg { width: 20px; height: 20px; fill: var(--text-primary); }
|
||||
.appbar-title {
|
||||
font-size: 19px;
|
||||
font-weight: 600;
|
||||
margin-left: 14px;
|
||||
}
|
||||
.page-body {
|
||||
padding: 36px 24px 44px;
|
||||
max-width: var(--content-max-width);
|
||||
margin: 0 auto;
|
||||
}
|
||||
.hero {
|
||||
text-align: center;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
.hero-icon {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
margin: 0 auto 14px;
|
||||
border: 2px solid #FF5252;
|
||||
border-radius: 8px;
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
justify-content: center;
|
||||
padding: 6px 5px;
|
||||
gap: 4px;
|
||||
background: #FFF;
|
||||
}
|
||||
.hero-icon .bar {
|
||||
width: 5px;
|
||||
background: #FF5252;
|
||||
border-radius: 1.5px 1.5px 0 0;
|
||||
}
|
||||
.hero-icon .b1 { height: 12px; }
|
||||
.hero-icon .b2 { height: 24px; }
|
||||
.hero-icon .b3 { height: 16px; }
|
||||
|
||||
.hero-title {
|
||||
font-size: 21px;
|
||||
font-weight: 700;
|
||||
color: var(--text-primary);
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
.hero-sub {
|
||||
font-size: 13.5px;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
.card-stack {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 14px;
|
||||
margin-bottom: 28px;
|
||||
}
|
||||
.edition-card {
|
||||
background: #FFFFFF;
|
||||
border: 1.5px solid #E2E8F0;
|
||||
border-radius: var(--corner-card);
|
||||
padding: 18px 22px;
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 16px;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
box-shadow: 0 1px 3px rgba(0,0,0,0.02);
|
||||
}
|
||||
.edition-card:hover {
|
||||
border-color: #94A3B8;
|
||||
background: #F8FAFC;
|
||||
}
|
||||
.edition-card.is-selected {
|
||||
border-color: var(--color-primary);
|
||||
background: var(--color-primary-light);
|
||||
box-shadow: 0 4px 16px rgba(48, 79, 254, 0.1);
|
||||
}
|
||||
.radio-slot {
|
||||
padding-top: 2px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.radio-circle {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border-radius: 50%;
|
||||
border: 2px solid var(--outline);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: #FFFFFF;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
.edition-card.is-selected .radio-circle {
|
||||
border-color: var(--color-primary);
|
||||
background: var(--color-primary);
|
||||
}
|
||||
.radio-dot {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
background: #FFFFFF;
|
||||
opacity: 0;
|
||||
transform: scale(0.3);
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
.edition-card.is-selected .radio-dot {
|
||||
opacity: 1;
|
||||
transform: scale(1);
|
||||
}
|
||||
.edition-info { flex: 1; }
|
||||
.edition-name {
|
||||
font-size: 16.5px;
|
||||
font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
.edition-card.is-selected .edition-name {
|
||||
color: var(--color-primary);
|
||||
}
|
||||
.edition-desc {
|
||||
font-size: 13.5px;
|
||||
color: var(--text-secondary);
|
||||
line-height: 1.55;
|
||||
}
|
||||
.btn-confirm {
|
||||
width: 100%;
|
||||
height: 48px;
|
||||
background: var(--color-secondary-container);
|
||||
color: var(--color-secondary);
|
||||
border: 1px solid rgba(0, 137, 123, 0.2);
|
||||
border-radius: 12px;
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: all 0.15s ease;
|
||||
}
|
||||
.btn-confirm:hover {
|
||||
background: #C8ECE7;
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="device-container">
|
||||
<div class="appbar">
|
||||
<div class="appbar-nav"><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>
|
||||
<div class="appbar-title">选择版型</div>
|
||||
</div>
|
||||
<div class="page-body">
|
||||
<div class="hero">
|
||||
<div class="hero-icon">
|
||||
<div class="bar b1"></div>
|
||||
<div class="bar b2"></div>
|
||||
<div class="bar b3"></div>
|
||||
</div>
|
||||
<div class="hero-title">选择版型</div>
|
||||
<div class="hero-sub">请选择适合您使用场景的版型,后续可在设置中更改</div>
|
||||
</div>
|
||||
<div class="card-stack" id="editionList">
|
||||
<div class="edition-card" onclick="selectEdition(this)">
|
||||
<div class="radio-slot"><div class="radio-circle"><div class="radio-dot"></div></div></div>
|
||||
<div class="edition-info">
|
||||
<div class="edition-name">专业版</div>
|
||||
<div class="edition-desc">为专业场馆管理员设计,布局固定专业化,核心数据字段默认全开,开箱即用</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="edition-card is-selected" onclick="selectEdition(this)">
|
||||
<div class="radio-slot"><div class="radio-circle"><div class="radio-dot"></div></div></div>
|
||||
<div class="edition-info">
|
||||
<div class="edition-name">自定义功能版</div>
|
||||
<div class="edition-desc">高度可配置,所有高级功能开放,适合研究员和高级用户</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<button class="btn-confirm">确定</button>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
function selectEdition(el) {
|
||||
document.querySelectorAll('.edition-card').forEach(c => c.classList.remove('is-selected'));
|
||||
el.classList.add('is-selected');
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,229 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>方案 3:紧凑高聚焦版 (Compact Density)</title>
|
||||
<style>
|
||||
:root {
|
||||
--color-primary: #1E40AF;
|
||||
--color-primary-container: #DBEAFE;
|
||||
--color-secondary: #0D9488;
|
||||
--color-secondary-container: #CCFBF1;
|
||||
--color-surface: #FFFFFF;
|
||||
--color-background: #F1F5F9;
|
||||
--text-primary: #0F172A;
|
||||
--text-secondary: #475569;
|
||||
--divider: #E2E8F0;
|
||||
--outline: #94A3B8;
|
||||
--corner-card: 10px;
|
||||
--content-max-width: 700px;
|
||||
}
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
|
||||
background: var(--color-background);
|
||||
color: var(--text-primary);
|
||||
min-height: 100vh;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
.device-container {
|
||||
width: 100%;
|
||||
max-width: 1024px;
|
||||
margin: 20px auto;
|
||||
background: var(--color-surface);
|
||||
border-radius: 12px;
|
||||
border: 1px solid var(--divider);
|
||||
overflow: hidden;
|
||||
box-shadow: 0 2px 16px rgba(0,0,0,0.04);
|
||||
}
|
||||
.appbar {
|
||||
height: 56px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 20px;
|
||||
border-bottom: 1px solid var(--divider);
|
||||
}
|
||||
.appbar-nav {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 50%;
|
||||
cursor: pointer;
|
||||
}
|
||||
.appbar-nav:hover { background: #F1F5F9; }
|
||||
.appbar-nav svg { width: 22px; height: 22px; fill: var(--text-primary); }
|
||||
.appbar-title {
|
||||
font-size: 19px;
|
||||
font-weight: 600;
|
||||
margin-left: 12px;
|
||||
}
|
||||
.page-body {
|
||||
padding: 32px 20px 40px;
|
||||
max-width: var(--content-max-width);
|
||||
margin: 0 auto;
|
||||
}
|
||||
.hero {
|
||||
text-align: center;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
.hero-icon {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
margin: 0 auto 12px;
|
||||
border: 2px solid #F43F5E;
|
||||
border-radius: 8px;
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
justify-content: center;
|
||||
padding: 6px 5px;
|
||||
gap: 4px;
|
||||
background: #FFF;
|
||||
}
|
||||
.hero-icon .bar {
|
||||
width: 5px;
|
||||
background: #F43F5E;
|
||||
border-radius: 1px 1px 0 0;
|
||||
}
|
||||
.hero-icon .b1 { height: 12px; }
|
||||
.hero-icon .b2 { height: 24px; }
|
||||
.hero-icon .b3 { height: 16px; }
|
||||
|
||||
.hero-title {
|
||||
font-size: 20px;
|
||||
font-weight: 600;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
.hero-sub {
|
||||
font-size: 13px;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
.card-stack {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
.edition-card {
|
||||
background: #FFFFFF;
|
||||
border: 1.5px solid var(--divider);
|
||||
border-radius: var(--corner-card);
|
||||
padding: 14px 18px;
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 14px;
|
||||
cursor: pointer;
|
||||
transition: all 0.15s ease;
|
||||
}
|
||||
.edition-card:hover {
|
||||
border-color: #64748B;
|
||||
}
|
||||
.edition-card.is-selected {
|
||||
border-color: var(--color-primary);
|
||||
background: #EFF6FF;
|
||||
}
|
||||
.radio-slot {
|
||||
padding-top: 1px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.radio-circle {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
border-radius: 50%;
|
||||
border: 2px solid var(--outline);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: #FFFFFF;
|
||||
}
|
||||
.edition-card.is-selected .radio-circle {
|
||||
border-color: var(--color-primary);
|
||||
}
|
||||
.radio-dot {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
background: var(--color-primary);
|
||||
opacity: 0;
|
||||
transform: scale(0.3);
|
||||
transition: all 0.15s ease;
|
||||
}
|
||||
.edition-card.is-selected .radio-dot {
|
||||
opacity: 1;
|
||||
transform: scale(1);
|
||||
}
|
||||
.edition-info { flex: 1; }
|
||||
.edition-name {
|
||||
font-size: 15.5px;
|
||||
font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
.edition-card.is-selected .edition-name {
|
||||
color: var(--color-primary);
|
||||
}
|
||||
.edition-desc {
|
||||
font-size: 13px;
|
||||
color: var(--text-secondary);
|
||||
line-height: 1.45;
|
||||
}
|
||||
.btn-confirm {
|
||||
width: 100%;
|
||||
height: 44px;
|
||||
background: #D1FAE5;
|
||||
color: #047857;
|
||||
border: 1px solid rgba(4, 120, 87, 0.2);
|
||||
border-radius: 8px;
|
||||
font-size: 15px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: all 0.15s ease;
|
||||
}
|
||||
.btn-confirm:hover { background: #A7F3D0; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="device-container">
|
||||
<div class="appbar">
|
||||
<div class="appbar-nav"><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>
|
||||
<div class="appbar-title">选择版型</div>
|
||||
</div>
|
||||
<div class="page-body">
|
||||
<div class="hero">
|
||||
<div class="hero-icon">
|
||||
<div class="bar b1"></div>
|
||||
<div class="bar b2"></div>
|
||||
<div class="bar b3"></div>
|
||||
</div>
|
||||
<div class="hero-title">选择版型</div>
|
||||
<div class="hero-sub">请选择适合您使用场景的版型,后续可在设置中更改</div>
|
||||
</div>
|
||||
<div class="card-stack" id="editionList">
|
||||
<div class="edition-card" onclick="selectEdition(this)">
|
||||
<div class="radio-slot"><div class="radio-circle"><div class="radio-dot"></div></div></div>
|
||||
<div class="edition-info">
|
||||
<div class="edition-name">专业版</div>
|
||||
<div class="edition-desc">为专业场馆管理员设计,布局固定专业化,核心数据字段默认全开,开箱即用</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="edition-card is-selected" onclick="selectEdition(this)">
|
||||
<div class="radio-slot"><div class="radio-circle"><div class="radio-dot"></div></div></div>
|
||||
<div class="edition-info">
|
||||
<div class="edition-name">自定义功能版</div>
|
||||
<div class="edition-desc">高度可配置,所有高级功能开放,适合研究员和高级用户</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<button class="btn-confirm">确定</button>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
function selectEdition(el) {
|
||||
document.querySelectorAll('.edition-card').forEach(c => c.classList.remove('is-selected'));
|
||||
el.classList.add('is-selected');
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,238 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>方案 4:微质感平滑动效版 (Soft Elevation)</title>
|
||||
<style>
|
||||
:root {
|
||||
--color-primary: #3949AB;
|
||||
--color-primary-light: #EEF2FF;
|
||||
--color-secondary: #00897B;
|
||||
--color-secondary-container: #E0F2F1;
|
||||
--color-surface: #FFFFFF;
|
||||
--color-background: #F8FAFC;
|
||||
--text-primary: #0F172A;
|
||||
--text-secondary: #64748B;
|
||||
--divider: #E2E8F0;
|
||||
--outline: #CBD5E1;
|
||||
--corner-card: 14px;
|
||||
--content-max-width: 800px;
|
||||
}
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
|
||||
background: var(--color-background);
|
||||
color: var(--text-primary);
|
||||
min-height: 100vh;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
.device-container {
|
||||
width: 100%;
|
||||
max-width: 1024px;
|
||||
margin: 20px auto;
|
||||
background: #FFFFFF;
|
||||
border-radius: 16px;
|
||||
border: 1px solid var(--divider);
|
||||
overflow: hidden;
|
||||
box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
|
||||
}
|
||||
.appbar {
|
||||
height: 60px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 24px;
|
||||
border-bottom: 1px solid var(--divider);
|
||||
}
|
||||
.appbar-nav {
|
||||
width: 38px;
|
||||
height: 38px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 50%;
|
||||
cursor: pointer;
|
||||
background: #F8FAFC;
|
||||
}
|
||||
.appbar-nav svg { width: 20px; height: 20px; fill: var(--text-primary); }
|
||||
.appbar-title {
|
||||
font-size: 19px;
|
||||
font-weight: 600;
|
||||
margin-left: 14px;
|
||||
}
|
||||
.page-body {
|
||||
padding: 38px 24px 48px;
|
||||
max-width: var(--content-max-width);
|
||||
margin: 0 auto;
|
||||
}
|
||||
.hero {
|
||||
text-align: center;
|
||||
margin-bottom: 32px;
|
||||
}
|
||||
.hero-icon {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
margin: 0 auto 14px;
|
||||
border: 2px solid #FF5252;
|
||||
border-radius: 10px;
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
justify-content: center;
|
||||
padding: 7px 6px;
|
||||
gap: 4px;
|
||||
background: #FFF;
|
||||
}
|
||||
.hero-icon .bar {
|
||||
width: 5px;
|
||||
background: #FF5252;
|
||||
border-radius: 1.5px 1.5px 0 0;
|
||||
}
|
||||
.hero-icon .b1 { height: 13px; }
|
||||
.hero-icon .b2 { height: 25px; }
|
||||
.hero-icon .b3 { height: 17px; }
|
||||
|
||||
.hero-title {
|
||||
font-size: 22px;
|
||||
font-weight: 700;
|
||||
color: var(--text-primary);
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
.hero-sub {
|
||||
font-size: 14px;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
.card-stack {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 16px;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
.edition-card {
|
||||
background: #FFFFFF;
|
||||
border: 1.5px solid var(--divider);
|
||||
border-radius: var(--corner-card);
|
||||
padding: 18px 22px;
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 16px;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
box-shadow: 0 1px 3px rgba(0,0,0,0.02);
|
||||
}
|
||||
.edition-card:hover {
|
||||
border-color: #94A3B8;
|
||||
background: #F8FAFC;
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
.edition-card.is-selected {
|
||||
border-color: var(--color-primary);
|
||||
background: var(--color-primary-light);
|
||||
box-shadow: 0 4px 16px rgba(57, 73, 171, 0.12);
|
||||
}
|
||||
.radio-slot {
|
||||
padding-top: 2px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.radio-circle {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border-radius: 50%;
|
||||
border: 2px solid var(--outline);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: #FFFFFF;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
.edition-card.is-selected .radio-circle {
|
||||
border-color: var(--color-primary);
|
||||
}
|
||||
.radio-dot {
|
||||
width: 9px;
|
||||
height: 9px;
|
||||
border-radius: 50%;
|
||||
background: var(--color-primary);
|
||||
opacity: 0;
|
||||
transform: scale(0.3);
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
.edition-card.is-selected .radio-dot {
|
||||
opacity: 1;
|
||||
transform: scale(1);
|
||||
}
|
||||
.edition-info { flex: 1; }
|
||||
.edition-name {
|
||||
font-size: 16.5px;
|
||||
font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
.edition-card.is-selected .edition-name {
|
||||
color: var(--color-primary);
|
||||
}
|
||||
.edition-desc {
|
||||
font-size: 13.5px;
|
||||
color: var(--text-secondary);
|
||||
line-height: 1.55;
|
||||
}
|
||||
.btn-confirm {
|
||||
width: 100%;
|
||||
height: 48px;
|
||||
background: var(--color-secondary-container);
|
||||
color: var(--color-secondary);
|
||||
border: none;
|
||||
border-radius: 12px;
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: all 0.15s ease;
|
||||
}
|
||||
.btn-confirm:hover {
|
||||
background: #C8ECE7;
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="device-container">
|
||||
<div class="appbar">
|
||||
<div class="appbar-nav"><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>
|
||||
<div class="appbar-title">选择版型</div>
|
||||
</div>
|
||||
<div class="page-body">
|
||||
<div class="hero">
|
||||
<div class="hero-icon">
|
||||
<div class="bar b1"></div>
|
||||
<div class="bar b2"></div>
|
||||
<div class="bar b3"></div>
|
||||
</div>
|
||||
<div class="hero-title">选择版型</div>
|
||||
<div class="hero-sub">请选择适合您使用场景的版型,后续可在设置中更改</div>
|
||||
</div>
|
||||
<div class="card-stack" id="editionList">
|
||||
<div class="edition-card" onclick="selectEdition(this)">
|
||||
<div class="radio-slot"><div class="radio-circle"><div class="radio-dot"></div></div></div>
|
||||
<div class="edition-info">
|
||||
<div class="edition-name">专业版</div>
|
||||
<div class="edition-desc">为专业场馆管理员设计,布局固定专业化,核心数据字段默认全开,开箱即用</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="edition-card is-selected" onclick="selectEdition(this)">
|
||||
<div class="radio-slot"><div class="radio-circle"><div class="radio-dot"></div></div></div>
|
||||
<div class="edition-info">
|
||||
<div class="edition-name">自定义功能版</div>
|
||||
<div class="edition-desc">高度可配置,所有高级功能开放,适合研究员和高级用户</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<button class="btn-confirm">确定</button>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
function selectEdition(el) {
|
||||
document.querySelectorAll('.edition-card').forEach(c => c.classList.remove('is-selected'));
|
||||
el.classList.add('is-selected');
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,235 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>方案 5:极简纯白通透版 (Pure White Minimal)</title>
|
||||
<style>
|
||||
:root {
|
||||
--color-primary: #2563EB;
|
||||
--color-primary-light: #EFF6FF;
|
||||
--color-secondary: #059669;
|
||||
--color-secondary-container: #ECFDF5;
|
||||
--color-surface: #FFFFFF;
|
||||
--color-background: #FFFFFF;
|
||||
--text-primary: #09090B;
|
||||
--text-secondary: #52525B;
|
||||
--divider: #E4E4E7;
|
||||
--outline: #A1A1AA;
|
||||
--corner-card: 14px;
|
||||
--content-max-width: 820px;
|
||||
}
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
|
||||
background: #F4F4F5;
|
||||
color: var(--text-primary);
|
||||
min-height: 100vh;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
.device-container {
|
||||
width: 100%;
|
||||
max-width: 1024px;
|
||||
margin: 20px auto;
|
||||
background: #FFFFFF;
|
||||
border-radius: 16px;
|
||||
border: 1px solid var(--divider);
|
||||
overflow: hidden;
|
||||
box-shadow: 0 4px 20px rgba(0,0,0,0.04);
|
||||
}
|
||||
.appbar {
|
||||
height: 58px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 24px;
|
||||
border-bottom: 1px solid var(--divider);
|
||||
}
|
||||
.appbar-nav {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 8px;
|
||||
cursor: pointer;
|
||||
background: #F4F4F5;
|
||||
}
|
||||
.appbar-nav svg { width: 20px; height: 20px; fill: var(--text-primary); }
|
||||
.appbar-title {
|
||||
font-size: 19px;
|
||||
font-weight: 600;
|
||||
margin-left: 14px;
|
||||
}
|
||||
.page-body {
|
||||
padding: 40px 24px 48px;
|
||||
max-width: var(--content-max-width);
|
||||
margin: 0 auto;
|
||||
}
|
||||
.hero {
|
||||
text-align: center;
|
||||
margin-bottom: 34px;
|
||||
}
|
||||
.hero-icon {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
margin: 0 auto 14px;
|
||||
border: 2px solid #EF4444;
|
||||
border-radius: 10px;
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
justify-content: center;
|
||||
padding: 7px 6px;
|
||||
gap: 4px;
|
||||
background: #FFF;
|
||||
}
|
||||
.hero-icon .bar {
|
||||
width: 5px;
|
||||
background: #EF4444;
|
||||
border-radius: 1.5px 1.5px 0 0;
|
||||
}
|
||||
.hero-icon .b1 { height: 13px; }
|
||||
.hero-icon .b2 { height: 25px; }
|
||||
.hero-icon .b3 { height: 17px; }
|
||||
|
||||
.hero-title {
|
||||
font-size: 22px;
|
||||
font-weight: 700;
|
||||
color: var(--text-primary);
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
.hero-sub {
|
||||
font-size: 14px;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
.card-stack {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 14px;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
.edition-card {
|
||||
background: #FFFFFF;
|
||||
border: 1.5px solid var(--divider);
|
||||
border-radius: var(--corner-card);
|
||||
padding: 18px 22px;
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 16px;
|
||||
cursor: pointer;
|
||||
transition: all 0.18s ease;
|
||||
}
|
||||
.edition-card:hover {
|
||||
border-color: #71717A;
|
||||
}
|
||||
.edition-card.is-selected {
|
||||
border-color: var(--color-primary);
|
||||
background: var(--color-primary-light);
|
||||
box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
|
||||
}
|
||||
.radio-slot {
|
||||
padding-top: 2px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.radio-circle {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border-radius: 50%;
|
||||
border: 2px solid var(--outline);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: #FFFFFF;
|
||||
transition: all 0.18s ease;
|
||||
}
|
||||
.edition-card.is-selected .radio-circle {
|
||||
border-color: var(--color-primary);
|
||||
}
|
||||
.radio-dot {
|
||||
width: 9px;
|
||||
height: 9px;
|
||||
border-radius: 50%;
|
||||
background: var(--color-primary);
|
||||
opacity: 0;
|
||||
transform: scale(0.3);
|
||||
transition: all 0.18s ease;
|
||||
}
|
||||
.edition-card.is-selected .radio-dot {
|
||||
opacity: 1;
|
||||
transform: scale(1);
|
||||
}
|
||||
.edition-info { flex: 1; }
|
||||
.edition-name {
|
||||
font-size: 16.5px;
|
||||
font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
.edition-card.is-selected .edition-name {
|
||||
color: var(--color-primary);
|
||||
}
|
||||
.edition-desc {
|
||||
font-size: 13.5px;
|
||||
color: var(--text-secondary);
|
||||
line-height: 1.55;
|
||||
}
|
||||
.btn-confirm {
|
||||
width: 100%;
|
||||
height: 48px;
|
||||
background: var(--color-secondary-container);
|
||||
color: var(--color-secondary);
|
||||
border: 1px solid rgba(5, 150, 105, 0.2);
|
||||
border-radius: 12px;
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: all 0.15s ease;
|
||||
}
|
||||
.btn-confirm:hover {
|
||||
background: #D1FAE5;
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="device-container">
|
||||
<div class="appbar">
|
||||
<div class="appbar-nav"><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>
|
||||
<div class="appbar-title">选择版型</div>
|
||||
</div>
|
||||
<div class="page-body">
|
||||
<div class="hero">
|
||||
<div class="hero-icon">
|
||||
<div class="bar b1"></div>
|
||||
<div class="bar b2"></div>
|
||||
<div class="bar b3"></div>
|
||||
</div>
|
||||
<div class="hero-title">选择版型</div>
|
||||
<div class="hero-sub">请选择适合您使用场景的版型,后续可在设置中更改</div>
|
||||
</div>
|
||||
<div class="card-stack" id="editionList">
|
||||
<div class="edition-card" onclick="selectEdition(this)">
|
||||
<div class="radio-slot"><div class="radio-circle"><div class="radio-dot"></div></div></div>
|
||||
<div class="edition-info">
|
||||
<div class="edition-name">专业版</div>
|
||||
<div class="edition-desc">为专业场馆管理员设计,布局固定专业化,核心数据字段默认全开,开箱即用</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="edition-card is-selected" onclick="selectEdition(this)">
|
||||
<div class="radio-slot"><div class="radio-circle"><div class="radio-dot"></div></div></div>
|
||||
<div class="edition-info">
|
||||
<div class="edition-name">自定义功能版</div>
|
||||
<div class="edition-desc">高度可配置,所有高级功能开放,适合研究员和高级用户</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<button class="btn-confirm">确定</button>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
function selectEdition(el) {
|
||||
document.querySelectorAll('.edition-card').forEach(c => c.classList.remove('is-selected'));
|
||||
el.classList.add('is-selected');
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,439 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>方案 1:Pro Sport Pulse Studio (动感仪表台 · 动态波形与双栏联动)</title>
|
||||
<style>
|
||||
:root {
|
||||
--color-zone5: #FF3B30;
|
||||
--color-zone5-bg: #FFF1F0;
|
||||
--color-zone4: #FF9500;
|
||||
--color-zone4-bg: #FFF7E6;
|
||||
--color-zone3: #34C759;
|
||||
--color-zone3-bg: #EAF8EE;
|
||||
--color-zone2: #007AFF;
|
||||
--color-zone2-bg: #EEF7FF;
|
||||
--color-zone1: #8E8E93;
|
||||
--color-zone1-bg: #F4F4F5;
|
||||
--color-surface: #FFFFFF;
|
||||
--color-background: #F4F6FA;
|
||||
--text-main: #0F172A;
|
||||
--text-sub: #64748B;
|
||||
--divider: #E2E8F0;
|
||||
}
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
|
||||
background: var(--color-background);
|
||||
color: var(--text-main);
|
||||
min-height: 100vh;
|
||||
padding: 24px;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
.device-wrapper {
|
||||
width: 100%;
|
||||
max-width: 1080px;
|
||||
margin: 0 auto;
|
||||
background: #FFFFFF;
|
||||
border-radius: 20px;
|
||||
border: 1px solid var(--divider);
|
||||
box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
|
||||
overflow: hidden;
|
||||
}
|
||||
.appbar {
|
||||
height: 60px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 24px;
|
||||
border-bottom: 1px solid var(--divider);
|
||||
}
|
||||
.appbar-nav {
|
||||
width: 38px;
|
||||
height: 38px;
|
||||
border-radius: 10px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
background: #F1F5F9;
|
||||
}
|
||||
.appbar-nav svg { width: 20px; height: 20px; fill: var(--text-main); }
|
||||
.appbar-title {
|
||||
font-size: 19px;
|
||||
font-weight: 700;
|
||||
margin-left: 14px;
|
||||
}
|
||||
.control-bar {
|
||||
padding: 18px 28px;
|
||||
background: #F8FAFC;
|
||||
border-bottom: 1px solid var(--divider);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 24px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.ctrl-mode {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
.ctrl-label {
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
color: var(--text-sub);
|
||||
}
|
||||
.mode-select-wrap {
|
||||
position: relative;
|
||||
}
|
||||
.mode-select {
|
||||
appearance: none;
|
||||
background: #FFFFFF;
|
||||
border: 1.5px solid var(--divider);
|
||||
border-radius: 10px;
|
||||
padding: 8px 36px 8px 14px;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
color: var(--text-main);
|
||||
cursor: pointer;
|
||||
box-shadow: 0 1px 2px rgba(0,0,0,0.04);
|
||||
}
|
||||
.mode-arrow {
|
||||
position: absolute;
|
||||
right: 12px;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
pointer-events: none;
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
fill: var(--text-sub);
|
||||
}
|
||||
.ctrl-age {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
flex: 1;
|
||||
max-width: 440px;
|
||||
}
|
||||
.age-display {
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
color: var(--text-sub);
|
||||
white-space: nowrap;
|
||||
}
|
||||
.age-display b {
|
||||
font-size: 18px;
|
||||
color: #2563EB;
|
||||
margin-left: 4px;
|
||||
}
|
||||
.slider-wrap {
|
||||
flex: 1;
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.age-slider {
|
||||
width: 100%;
|
||||
height: 8px;
|
||||
border-radius: 4px;
|
||||
background: #E2E8F0;
|
||||
outline: none;
|
||||
-webkit-appearance: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
.age-slider::-webkit-slider-thumb {
|
||||
-webkit-appearance: none;
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
border-radius: 50%;
|
||||
background: #2563EB;
|
||||
border: 3px solid #FFFFFF;
|
||||
box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
|
||||
cursor: pointer;
|
||||
transition: transform 0.15s ease;
|
||||
}
|
||||
.age-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
|
||||
.page-body {
|
||||
padding: 24px 28px;
|
||||
display: flex;
|
||||
gap: 24px;
|
||||
}
|
||||
.zones-stack {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
}
|
||||
.zone-card {
|
||||
border-radius: 14px;
|
||||
padding: 16px 20px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
border: 1.5px solid transparent;
|
||||
box-shadow: 0 2px 8px rgba(0,0,0,0.03);
|
||||
}
|
||||
.zone-card:hover {
|
||||
transform: translateX(4px);
|
||||
box-shadow: 0 6px 18px rgba(0,0,0,0.06);
|
||||
}
|
||||
.zone-z5 { background: linear-gradient(90deg, #FF3B30 0%, #E53935 100%); color: #FFFFFF; }
|
||||
.zone-z4 { background: linear-gradient(90deg, #FF9500 0%, #FB8C00 100%); color: #FFFFFF; }
|
||||
.zone-z3 { background: linear-gradient(90deg, #34C759 0%, #2E7D32 100%); color: #FFFFFF; }
|
||||
.zone-z2 { background: linear-gradient(90deg, #007AFF 0%, #1976D2 100%); color: #FFFFFF; }
|
||||
.zone-z1 { background: linear-gradient(90deg, #8E8E93 0%, #757575 100%); color: #FFFFFF; }
|
||||
|
||||
.zone-left {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
}
|
||||
.badge-block {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: rgba(0,0,0,0.18);
|
||||
border-radius: 8px;
|
||||
padding: 6px 10px;
|
||||
min-width: 60px;
|
||||
}
|
||||
.badge-title { font-size: 13px; font-weight: 800; }
|
||||
.badge-intensity { font-size: 11px; font-weight: 600; opacity: 0.9; }
|
||||
|
||||
.zone-info { display: flex; flex-direction: column; gap: 4px; }
|
||||
.zone-name-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
.zone-name {
|
||||
font-size: 17px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.02em;
|
||||
}
|
||||
.zone-desc {
|
||||
font-size: 12.5px;
|
||||
opacity: 0.92;
|
||||
}
|
||||
|
||||
.zone-right {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-end;
|
||||
gap: 4px;
|
||||
}
|
||||
.hr-range {
|
||||
font-size: 18px;
|
||||
font-weight: 800;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
letter-spacing: 0.02em;
|
||||
}
|
||||
.heart-pulse {
|
||||
animation: pulse 1.5s infinite;
|
||||
display: inline-block;
|
||||
}
|
||||
@keyframes pulse {
|
||||
0% { transform: scale(1); }
|
||||
15% { transform: scale(1.25); }
|
||||
30% { transform: scale(1); }
|
||||
45% { transform: scale(1.15); }
|
||||
60% { transform: scale(1); }
|
||||
}
|
||||
.hr-pct {
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
/* 右侧动感仪表 */
|
||||
.ecg-sidebar {
|
||||
width: 320px;
|
||||
background: #F8FAFC;
|
||||
border-radius: 16px;
|
||||
border: 1px solid var(--divider);
|
||||
padding: 24px 20px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.ecg-title {
|
||||
font-size: 15px;
|
||||
font-weight: 700;
|
||||
color: var(--text-main);
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
.ecg-sub { font-size: 12px; color: var(--text-sub); }
|
||||
.ecg-canvas-wrap {
|
||||
width: 100%;
|
||||
height: 140px;
|
||||
background: #0F172A;
|
||||
border-radius: 12px;
|
||||
margin: 16px 0;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
box-shadow: inset 0 2px 8px rgba(0,0,0,0.4);
|
||||
}
|
||||
.ecg-line {
|
||||
stroke: #10B981;
|
||||
stroke-width: 2.5;
|
||||
fill: none;
|
||||
stroke-dasharray: 600;
|
||||
stroke-dashoffset: 600;
|
||||
animation: dash 2.5s linear infinite;
|
||||
}
|
||||
@keyframes dash {
|
||||
to { stroke-dashoffset: 0; }
|
||||
}
|
||||
.ecg-stat-grid {
|
||||
width: 100%;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
gap: 10px;
|
||||
}
|
||||
.stat-box {
|
||||
background: #FFFFFF;
|
||||
border: 1px solid var(--divider);
|
||||
border-radius: 10px;
|
||||
padding: 10px 12px;
|
||||
text-align: center;
|
||||
}
|
||||
.stat-lbl { font-size: 11px; color: var(--text-sub); margin-bottom: 2px; }
|
||||
.stat-val { font-size: 16px; font-weight: 800; color: #2563EB; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="device-wrapper">
|
||||
<header class="appbar">
|
||||
<div class="appbar-nav"><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>
|
||||
<div class="mode-select-wrap">
|
||||
<select class="mode-select">
|
||||
<option>普通模式</option>
|
||||
<option>竞技模式</option>
|
||||
<option>康复模式</option>
|
||||
</select>
|
||||
<svg class="mode-arrow" viewBox="0 0 24 24"><path d="M7 10l5 5 5-5z"/></svg>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ctrl-age">
|
||||
<span class="age-display">请输入用户年龄:<b id="ageVal">30</b> 岁</span>
|
||||
<div class="slider-wrap">
|
||||
<input type="range" min="10" max="90" value="30" class="age-slider" id="ageSlider" oninput="updateAge(this.value)">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<main class="page-body">
|
||||
<div class="zones-stack">
|
||||
<!-- 区间 5 (红) -->
|
||||
<div class="zone-card zone-z5">
|
||||
<div class="zone-left">
|
||||
<div class="badge-block"><span class="badge-title">区间5</span><span class="badge-intensity">高强度</span></div>
|
||||
<div class="zone-info"><div class="zone-name">极限冲刺</div><div class="zone-desc">提升冲刺速度</div></div>
|
||||
</div>
|
||||
<div class="zone-right">
|
||||
<div class="hr-range"><span class="heart-pulse">❤️</span> <span id="r5">166 - 185</span></div>
|
||||
<div class="hr-pct">最大心率的 90 - 100%</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 区间 4 (橙) -->
|
||||
<div class="zone-card zone-z4">
|
||||
<div class="zone-left">
|
||||
<div class="badge-block"><span class="badge-title">区间4</span><span class="badge-intensity">高强度</span></div>
|
||||
<div class="zone-info"><div class="zone-name">心肺提升</div><div class="zone-desc">锻炼心肺功能</div></div>
|
||||
</div>
|
||||
<div class="zone-right">
|
||||
<div class="hr-range"><span class="heart-pulse">❤️</span> <span id="r4">148 - 166</span></div>
|
||||
<div class="hr-pct">最大心率的 80 - 90%</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 区间 3 (绿) -->
|
||||
<div class="zone-card zone-z3">
|
||||
<div class="zone-left">
|
||||
<div class="badge-block"><span class="badge-title">区间3</span><span class="badge-intensity">中强度</span></div>
|
||||
<div class="zone-info"><div class="zone-name">加速燃烧</div><div class="zone-desc">提高有氧效率</div></div>
|
||||
</div>
|
||||
<div class="zone-right">
|
||||
<div class="hr-range"><span class="heart-pulse">❤️</span> <span id="r3">129 - 148</span></div>
|
||||
<div class="hr-pct">最大心率的 70 - 80%</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 区间 2 (蓝) -->
|
||||
<div class="zone-card zone-z2">
|
||||
<div class="zone-left">
|
||||
<div class="badge-block"><span class="badge-title">区间2</span><span class="badge-intensity">低强度</span></div>
|
||||
<div class="zone-info"><div class="zone-name">轻松减脂</div><div class="zone-desc">改善耐力</div></div>
|
||||
</div>
|
||||
<div class="zone-right">
|
||||
<div class="hr-range"><span class="heart-pulse">❤️</span> <span id="r2">111 - 129</span></div>
|
||||
<div class="hr-pct">最大心率的 60 - 70%</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 区间 1 (灰) -->
|
||||
<div class="zone-card zone-z1">
|
||||
<div class="zone-left">
|
||||
<div class="badge-block"><span class="badge-title">区间1</span><span class="badge-intensity">低强度</span></div>
|
||||
<div class="zone-info"><div class="zone-name">缓和热身</div><div class="zone-desc">热身、恢复体力</div></div>
|
||||
</div>
|
||||
<div class="zone-right">
|
||||
<div class="hr-range"><span class="heart-pulse">❤️</span> <span id="r1">92 - 111</span></div>
|
||||
<div class="hr-pct">最大心率的 50 - 60%</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 右侧动感心电仪表 -->
|
||||
<aside class="ecg-sidebar">
|
||||
<div style="text-align: center;">
|
||||
<div class="ecg-title">实时动态心率光谱</div>
|
||||
<div class="ecg-sub">根据用户年龄自动换算目标区间</div>
|
||||
</div>
|
||||
<div class="ecg-canvas-wrap">
|
||||
<svg viewBox="0 0 300 100" style="width:100%; height:80px;">
|
||||
<path class="ecg-line" d="M0,50 L50,50 L60,40 L70,60 L80,50 L110,50 L120,20 L130,85 L140,45 L150,55 L160,50 L200,50 L210,35 L220,65 L230,50 L300,50"/>
|
||||
</svg>
|
||||
</div>
|
||||
<div class="ecg-stat-grid">
|
||||
<div class="stat-box"><div class="stat-lbl">预估最大心率</div><div class="stat-val" id="maxHrVal">190 bpm</div></div>
|
||||
<div class="stat-box"><div class="stat-lbl">燃脂基准线</div><div class="stat-val" id="fatBurnVal">129 bpm</div></div>
|
||||
</div>
|
||||
</aside>
|
||||
</main>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function updateAge(age) {
|
||||
document.getElementById('ageVal').innerText = age;
|
||||
const maxHr = 220 - age;
|
||||
document.getElementById('maxHrVal').innerText = maxHr + ' bpm';
|
||||
document.getElementById('fatBurnVal').innerText = Math.round(maxHr * 0.68) + ' 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>
|
||||
@@ -0,0 +1,275 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>方案 1-A:Pro Pulse 动态光谱波形版 (经典至臻款)</title>
|
||||
<style>
|
||||
:root {
|
||||
--color-z5: #FF3B30;
|
||||
--color-z4: #FF9500;
|
||||
--color-z3: #34C759;
|
||||
--color-z2: #007AFF;
|
||||
--color-z1: #8E8E93;
|
||||
--color-surface: #FFFFFF;
|
||||
--color-background: #F4F6FA;
|
||||
--text-main: #0F172A;
|
||||
--text-sub: #64748B;
|
||||
--divider: #E2E8F0;
|
||||
}
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
|
||||
background: var(--color-background);
|
||||
color: var(--text-main);
|
||||
min-height: 100vh;
|
||||
padding: 24px;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
.device-wrapper {
|
||||
width: 100%;
|
||||
max-width: 1080px;
|
||||
margin: 0 auto;
|
||||
background: #FFFFFF;
|
||||
border-radius: 20px;
|
||||
border: 1px solid var(--divider);
|
||||
box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
|
||||
overflow: hidden;
|
||||
}
|
||||
.appbar {
|
||||
height: 60px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 24px;
|
||||
border-bottom: 1px solid var(--divider);
|
||||
}
|
||||
.appbar-nav {
|
||||
width: 38px;
|
||||
height: 38px;
|
||||
border-radius: 10px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
background: #F1F5F9;
|
||||
}
|
||||
.appbar-nav svg { width: 20px; height: 20px; fill: var(--text-main); }
|
||||
.appbar-title {
|
||||
font-size: 19px;
|
||||
font-weight: 700;
|
||||
margin-left: 14px;
|
||||
}
|
||||
.control-bar {
|
||||
padding: 16px 28px;
|
||||
background: #F8FAFC;
|
||||
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: 7px 34px 7px 14px;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
color: var(--text-main);
|
||||
cursor: pointer;
|
||||
}
|
||||
.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: 17px; color: #2563EB; }
|
||||
.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: #2563EB;
|
||||
border: 2px solid #FFF;
|
||||
box-shadow: 0 2px 6px rgba(37, 99, 235, 0.4);
|
||||
}
|
||||
.page-body {
|
||||
padding: 24px 28px;
|
||||
display: flex;
|
||||
gap: 24px;
|
||||
}
|
||||
.zones-stack {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
}
|
||||
.zone-card {
|
||||
border-radius: 14px;
|
||||
padding: 16px 20px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
color: #FFFFFF;
|
||||
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
box-shadow: 0 2px 8px rgba(0,0,0,0.03);
|
||||
}
|
||||
.zone-card:hover { transform: translateX(4px); box-shadow: 0 6px 16px rgba(0,0,0,0.08); }
|
||||
.z5 { background: linear-gradient(90deg, #FF3B30 0%, #E53935 100%); }
|
||||
.z4 { background: linear-gradient(90deg, #FF9500 0%, #FB8C00 100%); }
|
||||
.z3 { background: linear-gradient(90deg, #34C759 0%, #2E7D32 100%); }
|
||||
.z2 { background: linear-gradient(90deg, #007AFF 0%, #1976D2 100%); }
|
||||
.z1 { background: linear-gradient(90deg, #8E8E93 0%, #757575 100%); }
|
||||
|
||||
.zone-left { display: flex; align-items: center; gap: 14px; }
|
||||
.badge-box {
|
||||
background: rgba(0,0,0,0.2);
|
||||
border-radius: 8px;
|
||||
padding: 6px 10px;
|
||||
min-width: 58px;
|
||||
text-align: center;
|
||||
font-size: 13px;
|
||||
font-weight: 800;
|
||||
line-height: 1.25;
|
||||
}
|
||||
.zone-title { font-size: 17px; font-weight: 700; }
|
||||
.zone-sub { font-size: 12.5px; opacity: 0.92; margin-top: 2px; }
|
||||
|
||||
.zone-right { text-align: right; }
|
||||
.hr-val { font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
|
||||
.heart-pulse { animation: pulse 1.4s infinite; display: inline-block; }
|
||||
@keyframes pulse { 0%, 100% { transform: scale(1); } 25% { transform: scale(1.25); } }
|
||||
.pct-val { font-size: 12px; opacity: 0.9; margin-top: 2px; }
|
||||
|
||||
/* 右侧 ECG HUD 面板 */
|
||||
.hud-panel {
|
||||
width: 330px;
|
||||
background: #0F172A;
|
||||
border-radius: 16px;
|
||||
padding: 24px 20px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
color: #FFF;
|
||||
}
|
||||
.hud-h { font-size: 16px; font-weight: 700; color: #38BDF8; margin-bottom: 2px; }
|
||||
.hud-sub { font-size: 12px; color: #94A3B8; margin-bottom: 16px; }
|
||||
.wave-box {
|
||||
height: 130px;
|
||||
background: #080D18;
|
||||
border-radius: 12px;
|
||||
border: 1px solid #1E293B;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
overflow: hidden;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.ecg-path {
|
||||
stroke: #10B981;
|
||||
stroke-width: 2.5;
|
||||
fill: none;
|
||||
stroke-dasharray: 600;
|
||||
stroke-dashoffset: 600;
|
||||
animation: ecgAnim 2.5s linear infinite;
|
||||
}
|
||||
@keyframes ecgAnim { to { stroke-dashoffset: 0; } }
|
||||
.hud-stats {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
gap: 12px;
|
||||
margin-top: auto;
|
||||
}
|
||||
.stat-card {
|
||||
background: #1E293B;
|
||||
border-radius: 10px;
|
||||
padding: 12px;
|
||||
text-align: center;
|
||||
}
|
||||
.stat-card .lbl { font-size: 11px; color: #94A3B8; margin-bottom: 4px; }
|
||||
.stat-card .val { font-size: 17px; font-weight: 800; color: #38BDF8; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="device-wrapper">
|
||||
<header class="appbar">
|
||||
<div class="appbar-nav"><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" oninput="calcAge(this.value)">
|
||||
</div>
|
||||
</div>
|
||||
<main class="page-body">
|
||||
<div class="zones-stack">
|
||||
<div class="zone-card z5">
|
||||
<div class="zone-left"><div class="badge-box">区间5<br><span style="font-size:10px;">高强度</span></div><div><div class="zone-title">极限冲刺</div><div class="zone-sub">提升冲刺速度</div></div></div>
|
||||
<div class="zone-right"><div class="hr-val"><span class="heart-pulse">❤️</span> <span id="r5">166 - 185</span></div><div class="pct-val">最大心率的 90 - 100%</div></div>
|
||||
</div>
|
||||
<div class="zone-card z4">
|
||||
<div class="zone-left"><div class="badge-box">区间4<br><span style="font-size:10px;">高强度</span></div><div><div class="zone-title">心肺提升</div><div class="zone-sub">锻炼心肺功能</div></div></div>
|
||||
<div class="zone-right"><div class="hr-val"><span class="heart-pulse">❤️</span> <span id="r4">148 - 166</span></div><div class="pct-val">最大心率的 80 - 90%</div></div>
|
||||
</div>
|
||||
<div class="zone-card z3">
|
||||
<div class="zone-left"><div class="badge-box">区间3<br><span style="font-size:10px;">中强度</span></div><div><div class="zone-title">加速燃烧</div><div class="zone-sub">提高有氧效率</div></div></div>
|
||||
<div class="zone-right"><div class="hr-val"><span class="heart-pulse">❤️</span> <span id="r3">129 - 148</span></div><div class="pct-val">最大心率的 70 - 80%</div></div>
|
||||
</div>
|
||||
<div class="zone-card z2">
|
||||
<div class="zone-left"><div class="badge-box">区间2<br><span style="font-size:10px;">低强度</span></div><div><div class="zone-title">轻松减脂</div><div class="zone-sub">改善耐力</div></div></div>
|
||||
<div class="zone-right"><div class="hr-val"><span class="heart-pulse">❤️</span> <span id="r2">111 - 129</span></div><div class="pct-val">最大心率的 60 - 70%</div></div>
|
||||
</div>
|
||||
<div class="zone-card z1">
|
||||
<div class="zone-left"><div class="badge-box">区间1<br><span style="font-size:10px;">低强度</span></div><div><div class="zone-title">缓和热身</div><div class="zone-sub">热身、恢复体力</div></div></div>
|
||||
<div class="zone-right"><div class="hr-val"><span class="heart-pulse">❤️</span> <span id="r1">92 - 111</span></div><div class="pct-val">最大心率的 50 - 60%</div></div>
|
||||
</div>
|
||||
</div>
|
||||
<aside class="hud-panel">
|
||||
<div><div class="hud-h">实时动态 ECG 光谱</div><div class="hud-sub">算法模型:Tanaka 动态心率矩阵</div></div>
|
||||
<div class="wave-box">
|
||||
<svg viewBox="0 0 300 100" style="width:100%; height:75px;">
|
||||
<path class="ecg-path" d="M0,50 L50,50 L60,40 L70,60 L80,50 L110,50 L120,20 L130,85 L140,45 L150,55 L160,50 L200,50 L210,35 L220,65 L230,50 L300,50"/>
|
||||
</svg>
|
||||
</div>
|
||||
<div class="hud-stats">
|
||||
<div class="stat-card"><div class="lbl">预估最大心率</div><div class="val" id="maxHr">190 bpm</div></div>
|
||||
<div class="stat-card"><div class="lbl">有氧燃脂上限</div><div class="val" id="fatBurn">148 bpm</div></div>
|
||||
</div>
|
||||
</aside>
|
||||
</main>
|
||||
</div>
|
||||
<script>
|
||||
function calcAge(age) {
|
||||
document.getElementById('ageTxt').innerText = age;
|
||||
const max = 220 - age;
|
||||
document.getElementById('maxHr').innerText = max + ' bpm';
|
||||
document.getElementById('fatBurn').innerText = Math.round(max * 0.8) + ' bpm';
|
||||
document.getElementById('r5').innerText = Math.round(max*0.9) + ' - ' + max;
|
||||
document.getElementById('r4').innerText = Math.round(max*0.8) + ' - ' + Math.round(max*0.9);
|
||||
document.getElementById('r3').innerText = Math.round(max*0.7) + ' - ' + Math.round(max*0.8);
|
||||
document.getElementById('r2').innerText = Math.round(max*0.6) + ' - ' + Math.round(max*0.7);
|
||||
document.getElementById('r1').innerText = Math.round(max*0.5) + ' - ' + Math.round(max*0.6);
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,291 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>方案 1-B:Aero Dynamic Ring (5 色能量环仪表盘版)</title>
|
||||
<style>
|
||||
:root {
|
||||
--z5-color: #FF3B30;
|
||||
--z4-color: #FF9500;
|
||||
--z3-color: #34C759;
|
||||
--z2-color: #007AFF;
|
||||
--z1-color: #8E8E93;
|
||||
--color-surface: #FFFFFF;
|
||||
--color-background: #F4F6FA;
|
||||
--text-main: #0F172A;
|
||||
--text-sub: #64748B;
|
||||
--divider: #E2E8F0;
|
||||
}
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
|
||||
background: var(--color-background);
|
||||
color: var(--text-main);
|
||||
min-height: 100vh;
|
||||
padding: 24px;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
.device-wrapper {
|
||||
width: 100%;
|
||||
max-width: 1080px;
|
||||
margin: 0 auto;
|
||||
background: #FFFFFF;
|
||||
border-radius: 20px;
|
||||
border: 1px solid var(--divider);
|
||||
box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
|
||||
overflow: hidden;
|
||||
}
|
||||
.appbar {
|
||||
height: 60px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 24px;
|
||||
border-bottom: 1px solid var(--divider);
|
||||
}
|
||||
.appbar-nav {
|
||||
width: 38px;
|
||||
height: 38px;
|
||||
border-radius: 10px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
background: #F1F5F9;
|
||||
}
|
||||
.appbar-nav svg { width: 20px; height: 20px; fill: var(--text-main); }
|
||||
.appbar-title {
|
||||
font-size: 19px;
|
||||
font-weight: 700;
|
||||
margin-left: 14px;
|
||||
}
|
||||
.control-bar {
|
||||
padding: 16px 28px;
|
||||
background: #F8FAFC;
|
||||
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: 7px 34px 7px 14px;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
color: var(--text-main);
|
||||
cursor: pointer;
|
||||
}
|
||||
.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: 17px; color: #2563EB; }
|
||||
.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: #2563EB;
|
||||
border: 2px solid #FFF;
|
||||
box-shadow: 0 2px 6px rgba(37, 99, 235, 0.4);
|
||||
}
|
||||
.page-body {
|
||||
padding: 24px 28px;
|
||||
display: flex;
|
||||
gap: 24px;
|
||||
}
|
||||
.zones-stack {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
}
|
||||
.zone-card {
|
||||
border-radius: 14px;
|
||||
padding: 16px 20px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
color: #FFFFFF;
|
||||
transition: all 0.2s ease;
|
||||
box-shadow: 0 2px 8px rgba(0,0,0,0.03);
|
||||
}
|
||||
.zone-card:hover { transform: translateX(4px); box-shadow: 0 6px 16px rgba(0,0,0,0.08); }
|
||||
.z5 { background: linear-gradient(90deg, #FF3B30 0%, #E53935 100%); }
|
||||
.z4 { background: linear-gradient(90deg, #FF9500 0%, #FB8C00 100%); }
|
||||
.z3 { background: linear-gradient(90deg, #34C759 0%, #2E7D32 100%); }
|
||||
.z2 { background: linear-gradient(90deg, #007AFF 0%, #1976D2 100%); }
|
||||
.z1 { background: linear-gradient(90deg, #8E8E93 0%, #757575 100%); }
|
||||
|
||||
.zone-left { display: flex; align-items: center; gap: 14px; }
|
||||
.badge-box {
|
||||
background: rgba(0,0,0,0.2);
|
||||
border-radius: 8px;
|
||||
padding: 6px 10px;
|
||||
min-width: 58px;
|
||||
text-align: center;
|
||||
font-size: 13px;
|
||||
font-weight: 800;
|
||||
}
|
||||
.zone-title { font-size: 17px; font-weight: 700; }
|
||||
.zone-sub { font-size: 12.5px; opacity: 0.92; margin-top: 2px; }
|
||||
.zone-right { text-align: right; }
|
||||
.hr-val { font-size: 18px; font-weight: 800; }
|
||||
.pct-val { font-size: 12px; opacity: 0.9; margin-top: 2px; }
|
||||
|
||||
/* 右侧 5 色能量环 */
|
||||
.ring-panel {
|
||||
width: 330px;
|
||||
background: #F8FAFC;
|
||||
border-radius: 16px;
|
||||
border: 1px solid var(--divider);
|
||||
padding: 24px 20px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
.ring-h { font-size: 16px; font-weight: 700; color: var(--text-main); margin-bottom: 2px; }
|
||||
.ring-sub { font-size: 12px; color: var(--text-sub); margin-bottom: 16px; }
|
||||
|
||||
.arc-container {
|
||||
width: 190px;
|
||||
height: 190px;
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin: 10px 0 20px;
|
||||
}
|
||||
.arc-svg {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
transform: rotate(-90deg);
|
||||
}
|
||||
.arc-center-box {
|
||||
position: absolute;
|
||||
text-align: center;
|
||||
}
|
||||
.arc-center-num {
|
||||
font-size: 28px;
|
||||
font-weight: 800;
|
||||
color: #0F172A;
|
||||
line-height: 1;
|
||||
}
|
||||
.arc-center-unit { font-size: 12px; font-weight: 600; color: var(--text-sub); margin-top: 4px; }
|
||||
|
||||
.zone-mini-dots {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
background: #FFFFFF;
|
||||
border: 1px solid var(--divider);
|
||||
border-radius: 10px;
|
||||
padding: 10px 8px;
|
||||
}
|
||||
.mini-dot-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
}
|
||||
.dot-c { width: 8px; height: 8px; border-radius: 50%; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="device-wrapper">
|
||||
<header class="appbar">
|
||||
<div class="appbar-nav"><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></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" oninput="calcAge(this.value)">
|
||||
</div>
|
||||
</div>
|
||||
<main class="page-body">
|
||||
<div class="zones-stack">
|
||||
<div class="zone-card z5">
|
||||
<div class="zone-left"><div class="badge-box">区间5<br><span style="font-size:10px;">高强度</span></div><div><div class="zone-title">极限冲刺</div><div class="zone-sub">提升冲刺速度</div></div></div>
|
||||
<div class="zone-right"><div class="hr-val">❤️ <span id="r5">166 - 185</span></div><div class="pct-val">最大心率的 90 - 100%</div></div>
|
||||
</div>
|
||||
<div class="zone-card z4">
|
||||
<div class="zone-left"><div class="badge-box">区间4<br><span style="font-size:10px;">高强度</span></div><div><div class="zone-title">心肺提升</div><div class="zone-sub">锻炼心肺功能</div></div></div>
|
||||
<div class="zone-right"><div class="hr-val">❤️ <span id="r4">148 - 166</span></div><div class="pct-val">最大心率的 80 - 90%</div></div>
|
||||
</div>
|
||||
<div class="zone-card z3">
|
||||
<div class="zone-left"><div class="badge-box">区间3<br><span style="font-size:10px;">中强度</span></div><div><div class="zone-title">加速燃烧</div><div class="zone-sub">提高有氧效率</div></div></div>
|
||||
<div class="zone-right"><div class="hr-val">❤️ <span id="r3">129 - 148</span></div><div class="pct-val">最大心率的 70 - 80%</div></div>
|
||||
</div>
|
||||
<div class="zone-card z2">
|
||||
<div class="zone-left"><div class="badge-box">区间2<br><span style="font-size:10px;">低强度</span></div><div><div class="zone-title">轻松减脂</div><div class="zone-sub">改善耐力</div></div></div>
|
||||
<div class="zone-right"><div class="hr-val">❤️ <span id="r2">111 - 129</span></div><div class="pct-val">最大心率的 60 - 70%</div></div>
|
||||
</div>
|
||||
<div class="zone-card z1">
|
||||
<div class="zone-left"><div class="badge-box">区间1<br><span style="font-size:10px;">低强度</span></div><div><div class="zone-title">缓和热身</div><div class="zone-sub">热身、恢复体力</div></div></div>
|
||||
<div class="zone-right"><div class="hr-val">❤️ <span id="r1">92 - 111</span></div><div class="pct-val">最大心率的 50 - 60%</div></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 右侧 5 色能量环仪表 -->
|
||||
<aside class="ring-panel">
|
||||
<div class="ring-h">5 色心率能量环</div>
|
||||
<div class="ring-sub">全区间强度动态刻度</div>
|
||||
<div class="arc-container">
|
||||
<svg class="arc-svg" viewBox="0 0 100 100">
|
||||
<!-- 5 段彩色弧形 -->
|
||||
<circle cx="50" cy="50" r="42" fill="none" stroke="#8E8E93" stroke-width="8" stroke-dasharray="50 214" stroke-dashoffset="0"/>
|
||||
<circle cx="50" cy="50" r="42" fill="none" stroke="#007AFF" stroke-width="8" stroke-dasharray="50 214" stroke-dashoffset="-53"/>
|
||||
<circle cx="50" cy="50" r="42" fill="none" stroke="#34C759" stroke-width="8" stroke-dasharray="50 214" stroke-dashoffset="-106"/>
|
||||
<circle cx="50" cy="50" r="42" fill="none" stroke="#FF9500" stroke-width="8" stroke-dasharray="50 214" stroke-dashoffset="-159"/>
|
||||
<circle cx="50" cy="50" r="42" fill="none" stroke="#FF3B30" stroke-width="8" stroke-dasharray="50 214" stroke-dashoffset="-212"/>
|
||||
</svg>
|
||||
<div class="arc-center-box">
|
||||
<div class="arc-center-num" id="maxHrCenter">190</div>
|
||||
<div class="arc-center-unit">MAX BPM</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="zone-mini-dots">
|
||||
<div class="mini-dot-item"><div class="dot-c" style="background:#FF3B30;"></div><span>Z5</span></div>
|
||||
<div class="mini-dot-item"><div class="dot-c" style="background:#FF9500;"></div><span>Z4</span></div>
|
||||
<div class="mini-dot-item"><div class="dot-c" style="background:#34C759;"></div><span>Z3</span></div>
|
||||
<div class="mini-dot-item"><div class="dot-c" style="background:#007AFF;"></div><span>Z2</span></div>
|
||||
<div class="mini-dot-item"><div class="dot-c" style="background:#8E8E93;"></div><span>Z1</span></div>
|
||||
</div>
|
||||
</aside>
|
||||
</main>
|
||||
</div>
|
||||
<script>
|
||||
function calcAge(age) {
|
||||
document.getElementById('ageTxt').innerText = age;
|
||||
const max = 220 - age;
|
||||
document.getElementById('maxHrCenter').innerText = max;
|
||||
document.getElementById('r5').innerText = Math.round(max*0.9) + ' - ' + max;
|
||||
document.getElementById('r4').innerText = Math.round(max*0.8) + ' - ' + Math.round(max*0.9);
|
||||
document.getElementById('r3').innerText = Math.round(max*0.7) + ' - ' + Math.round(max*0.8);
|
||||
document.getElementById('r2').innerText = Math.round(max*0.6) + ' - ' + Math.round(max*0.7);
|
||||
document.getElementById('r1').innerText = Math.round(max*0.5) + ' - ' + Math.round(max*0.6);
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,296 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>方案 1-C:Glassmorphic Sport Pro (半透毛玻璃质感版)</title>
|
||||
<style>
|
||||
:root {
|
||||
--z5-color: #FF3B30;
|
||||
--z4-color: #FF9500;
|
||||
--z3-color: #34C759;
|
||||
--z2-color: #007AFF;
|
||||
--z1-color: #8E8E93;
|
||||
--text-main: #0F172A;
|
||||
--text-sub: #64748B;
|
||||
--divider: #E2E8F0;
|
||||
}
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
|
||||
background: linear-gradient(135deg, #F1F5F9 0%, #E2E8F0 100%);
|
||||
color: var(--text-main);
|
||||
min-height: 100vh;
|
||||
padding: 24px;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
.device-wrapper {
|
||||
width: 100%;
|
||||
max-width: 1080px;
|
||||
margin: 0 auto;
|
||||
background: rgba(255, 255, 255, 0.8);
|
||||
backdrop-filter: blur(20px);
|
||||
-webkit-backdrop-filter: blur(20px);
|
||||
border-radius: 20px;
|
||||
border: 1px solid rgba(255, 255, 255, 0.8);
|
||||
box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08);
|
||||
overflow: hidden;
|
||||
}
|
||||
.appbar {
|
||||
height: 60px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 24px;
|
||||
border-bottom: 1px solid rgba(226, 232, 240, 0.8);
|
||||
}
|
||||
.appbar-nav {
|
||||
width: 38px;
|
||||
height: 38px;
|
||||
border-radius: 10px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
background: rgba(255, 255, 255, 0.9);
|
||||
border: 1px solid var(--divider);
|
||||
}
|
||||
.appbar-nav svg { width: 20px; height: 20px; fill: var(--text-main); }
|
||||
.appbar-title { font-size: 19px; font-weight: 700; margin-left: 14px; }
|
||||
.control-bar {
|
||||
padding: 16px 28px;
|
||||
background: rgba(248, 250, 252, 0.6);
|
||||
border-bottom: 1px solid rgba(226, 232, 240, 0.8);
|
||||
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: 7px 34px 7px 14px;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
}
|
||||
.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: 17px; color: #2563EB; }
|
||||
.age-slider {
|
||||
flex: 1;
|
||||
height: 6px;
|
||||
border-radius: 3px;
|
||||
background: #CBD5E1;
|
||||
outline: none;
|
||||
-webkit-appearance: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
.age-slider::-webkit-slider-thumb {
|
||||
-webkit-appearance: none;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border-radius: 50%;
|
||||
background: #2563EB;
|
||||
border: 2px solid #FFF;
|
||||
box-shadow: 0 2px 6px rgba(37, 99, 235, 0.4);
|
||||
}
|
||||
.page-body {
|
||||
padding: 24px 28px;
|
||||
display: flex;
|
||||
gap: 24px;
|
||||
}
|
||||
.zones-stack {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
}
|
||||
.glass-zone-card {
|
||||
background: rgba(255, 255, 255, 0.85);
|
||||
border: 1.5px solid rgba(255, 255, 255, 0.9);
|
||||
border-radius: 14px;
|
||||
padding: 16px 20px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
|
||||
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
}
|
||||
.glass-zone-card:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
|
||||
}
|
||||
.left-glow {
|
||||
position: absolute;
|
||||
left: 0; top: 0; bottom: 0;
|
||||
width: 6px;
|
||||
}
|
||||
.gz5 .left-glow { background: var(--z5-color); box-shadow: 2px 0 12px var(--z5-color); }
|
||||
.gz4 .left-glow { background: var(--z4-color); box-shadow: 2px 0 12px var(--z4-color); }
|
||||
.gz3 .left-glow { background: var(--z3-color); box-shadow: 2px 0 12px var(--z3-color); }
|
||||
.gz2 .left-glow { background: var(--z2-color); box-shadow: 2px 0 12px var(--z2-color); }
|
||||
.gz1 .left-glow { background: var(--z1-color); box-shadow: 2px 0 12px var(--z1-color); }
|
||||
|
||||
.zone-left { display: flex; align-items: center; gap: 14px; padding-left: 4px; }
|
||||
.badge-pill {
|
||||
padding: 6px 12px;
|
||||
border-radius: 8px;
|
||||
font-size: 13px;
|
||||
font-weight: 800;
|
||||
color: #FFF;
|
||||
text-align: center;
|
||||
}
|
||||
.b-z5 { background: var(--z5-color); }
|
||||
.b-z4 { background: var(--z4-color); }
|
||||
.b-z3 { background: var(--z3-color); }
|
||||
.b-z2 { background: var(--z2-color); }
|
||||
.b-z1 { background: var(--z1-color); }
|
||||
|
||||
.zone-title { font-size: 17px; font-weight: 700; color: var(--text-main); }
|
||||
.zone-sub { font-size: 12.5px; color: var(--text-sub); margin-top: 2px; }
|
||||
.zone-right { text-align: right; }
|
||||
.hr-val { font-size: 18px; font-weight: 800; color: var(--text-main); }
|
||||
.pct-val { font-size: 12px; color: var(--text-sub); margin-top: 2px; }
|
||||
|
||||
/* 右侧磨砂雷达控制台 */
|
||||
.glass-sidebar {
|
||||
width: 330px;
|
||||
background: rgba(255, 255, 255, 0.7);
|
||||
border: 1px solid rgba(255, 255, 255, 0.8);
|
||||
border-radius: 16px;
|
||||
padding: 24px 20px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
|
||||
}
|
||||
.side-h { font-size: 16px; font-weight: 700; color: var(--text-main); }
|
||||
.side-sub { font-size: 12px; color: var(--text-sub); margin: 2px 0 16px; }
|
||||
.radar-box {
|
||||
height: 140px;
|
||||
background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
|
||||
border-radius: 12px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
.radar-wave {
|
||||
width: 90px;
|
||||
height: 90px;
|
||||
border-radius: 50%;
|
||||
border: 2px solid #10B981;
|
||||
position: absolute;
|
||||
animation: radarPing 2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
|
||||
}
|
||||
@keyframes radarPing {
|
||||
0% { transform: scale(0.2); opacity: 1; }
|
||||
100% { transform: scale(1.6); opacity: 0; }
|
||||
}
|
||||
.radar-center-dot {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
border-radius: 50%;
|
||||
background: #10B981;
|
||||
box-shadow: 0 0 12px #10B981;
|
||||
z-index: 2;
|
||||
}
|
||||
.metric-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
gap: 10px;
|
||||
margin-top: auto;
|
||||
}
|
||||
.m-card {
|
||||
background: #FFFFFF;
|
||||
border: 1px solid var(--divider);
|
||||
border-radius: 10px;
|
||||
padding: 10px;
|
||||
text-align: center;
|
||||
}
|
||||
.m-lbl { font-size: 11px; color: var(--text-sub); }
|
||||
.m-val { font-size: 16px; font-weight: 800; color: #2563EB; margin-top: 2px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="device-wrapper">
|
||||
<header class="appbar">
|
||||
<div class="appbar-nav"><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></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" oninput="calcAge(this.value)">
|
||||
</div>
|
||||
</div>
|
||||
<main class="page-body">
|
||||
<div class="zones-stack">
|
||||
<div class="glass-zone-card gz5">
|
||||
<div class="left-glow"></div>
|
||||
<div class="zone-left"><div class="badge-pill b-z5">区间5<br><span style="font-size:10px;">高强度</span></div><div><div class="zone-title">极限冲刺</div><div class="zone-sub">提升冲刺速度</div></div></div>
|
||||
<div class="zone-right"><div class="hr-val">❤️ <span id="r5">166 - 185</span></div><div class="pct-val">最大心率的 90 - 100%</div></div>
|
||||
</div>
|
||||
<div class="glass-zone-card gz4">
|
||||
<div class="left-glow"></div>
|
||||
<div class="zone-left"><div class="badge-pill b-z4">区间4<br><span style="font-size:10px;">高强度</span></div><div><div class="zone-title">心肺提升</div><div class="zone-sub">锻炼心肺功能</div></div></div>
|
||||
<div class="zone-right"><div class="hr-val">❤️ <span id="r4">148 - 166</span></div><div class="pct-val">最大心率的 80 - 90%</div></div>
|
||||
</div>
|
||||
<div class="glass-zone-card gz3">
|
||||
<div class="left-glow"></div>
|
||||
<div class="zone-left"><div class="badge-pill b-z3">区间3<br><span style="font-size:10px;">中强度</span></div><div><div class="zone-title">加速燃烧</div><div class="zone-sub">提高有氧效率</div></div></div>
|
||||
<div class="zone-right"><div class="hr-val">❤️ <span id="r3">129 - 148</span></div><div class="pct-val">最大心率的 70 - 80%</div></div>
|
||||
</div>
|
||||
<div class="glass-zone-card gz2">
|
||||
<div class="left-glow"></div>
|
||||
<div class="zone-left"><div class="badge-pill b-z2">区间2<br><span style="font-size:10px;">低强度</span></div><div><div class="zone-title">轻松减脂</div><div class="zone-sub">改善耐力</div></div></div>
|
||||
<div class="zone-right"><div class="hr-val">❤️ <span id="r2">111 - 129</span></div><div class="pct-val">最大心率的 60 - 70%</div></div>
|
||||
</div>
|
||||
<div class="glass-zone-card gz1">
|
||||
<div class="left-glow"></div>
|
||||
<div class="zone-left"><div class="badge-pill b-z1">区间1<br><span style="font-size:10px;">低强度</span></div><div><div class="zone-title">缓和热身</div><div class="zone-sub">热身、恢复体力</div></div></div>
|
||||
<div class="zone-right"><div class="hr-val">❤️ <span id="r1">92 - 111</span></div><div class="pct-val">最大心率的 50 - 60%</div></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<aside class="glass-sidebar">
|
||||
<div class="side-h">动感生理雷达</div>
|
||||
<div class="side-sub">实时心率梯度映射</div>
|
||||
<div class="radar-box">
|
||||
<div class="radar-wave"></div>
|
||||
<div class="radar-center-dot"></div>
|
||||
</div>
|
||||
<div class="metric-grid">
|
||||
<div class="m-card"><div class="m-lbl">最大心率</div><div class="m-val" id="maxHr">190 bpm</div></div>
|
||||
<div class="m-card"><div class="m-lbl">燃脂基线</div><div class="m-val" id="fatBurn">129 bpm</div></div>
|
||||
</div>
|
||||
</aside>
|
||||
</main>
|
||||
</div>
|
||||
<script>
|
||||
function calcAge(age) {
|
||||
document.getElementById('ageTxt').innerText = age;
|
||||
const max = 220 - age;
|
||||
document.getElementById('maxHr').innerText = max + ' bpm';
|
||||
document.getElementById('fatBurn').innerText = Math.round(max * 0.68) + ' bpm';
|
||||
document.getElementById('r5').innerText = Math.round(max*0.9) + ' - ' + max;
|
||||
document.getElementById('r4').innerText = Math.round(max*0.8) + ' - ' + Math.round(max*0.9);
|
||||
document.getElementById('r3').innerText = Math.round(max*0.7) + ' - ' + Math.round(max*0.8);
|
||||
document.getElementById('r2').innerText = Math.round(max*0.6) + ' - ' + Math.round(max*0.7);
|
||||
document.getElementById('r1').innerText = Math.round(max*0.5) + ' - ' + Math.round(max*0.6);
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,271 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>方案 1-D:Cardio Gauge Studio (运动大表盘质感版)</title>
|
||||
<style>
|
||||
:root {
|
||||
--color-z5: #FF3B30;
|
||||
--color-z4: #FF9500;
|
||||
--color-z3: #34C759;
|
||||
--color-z2: #007AFF;
|
||||
--color-z1: #8E8E93;
|
||||
--color-surface: #FFFFFF;
|
||||
--color-background: #F4F6FA;
|
||||
--text-main: #0F172A;
|
||||
--text-sub: #64748B;
|
||||
--divider: #E2E8F0;
|
||||
}
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
|
||||
background: var(--color-background);
|
||||
color: var(--text-main);
|
||||
min-height: 100vh;
|
||||
padding: 24px;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
.device-wrapper {
|
||||
width: 100%;
|
||||
max-width: 1080px;
|
||||
margin: 0 auto;
|
||||
background: #FFFFFF;
|
||||
border-radius: 20px;
|
||||
border: 1px solid var(--divider);
|
||||
box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
|
||||
overflow: hidden;
|
||||
}
|
||||
.appbar {
|
||||
height: 60px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 24px;
|
||||
border-bottom: 1px solid var(--divider);
|
||||
}
|
||||
.appbar-nav {
|
||||
width: 38px;
|
||||
height: 38px;
|
||||
border-radius: 10px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
background: #F1F5F9;
|
||||
}
|
||||
.appbar-nav svg { width: 20px; height: 20px; fill: var(--text-main); }
|
||||
.appbar-title { font-size: 19px; font-weight: 700; margin-left: 14px; }
|
||||
.control-bar {
|
||||
padding: 16px 28px;
|
||||
background: #F8FAFC;
|
||||
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: 7px 34px 7px 14px;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
}
|
||||
.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: 17px; color: #2563EB; }
|
||||
.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: #2563EB;
|
||||
border: 2px solid #FFF;
|
||||
box-shadow: 0 2px 6px rgba(37, 99, 235, 0.4);
|
||||
}
|
||||
.page-body {
|
||||
padding: 24px 28px;
|
||||
display: flex;
|
||||
gap: 24px;
|
||||
}
|
||||
.zones-stack {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
}
|
||||
.zone-card {
|
||||
border-radius: 14px;
|
||||
padding: 14px 20px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
color: #FFFFFF;
|
||||
transition: all 0.2s ease;
|
||||
box-shadow: 0 2px 8px rgba(0,0,0,0.03);
|
||||
}
|
||||
.zone-card:hover { transform: translateX(4px); box-shadow: 0 6px 16px rgba(0,0,0,0.08); }
|
||||
.z5 { background: linear-gradient(90deg, #FF3B30 0%, #E53935 100%); }
|
||||
.z4 { background: linear-gradient(90deg, #FF9500 0%, #FB8C00 100%); }
|
||||
.z3 { background: linear-gradient(90deg, #34C759 0%, #2E7D32 100%); }
|
||||
.z2 { background: linear-gradient(90deg, #007AFF 0%, #1976D2 100%); }
|
||||
.z1 { background: linear-gradient(90deg, #8E8E93 0%, #757575 100%); }
|
||||
|
||||
.zone-left { display: flex; align-items: center; gap: 14px; }
|
||||
.badge-box {
|
||||
background: rgba(0,0,0,0.2);
|
||||
border-radius: 8px;
|
||||
padding: 5px 10px;
|
||||
min-width: 58px;
|
||||
text-align: center;
|
||||
font-size: 13px;
|
||||
font-weight: 800;
|
||||
}
|
||||
.zone-title { font-size: 16.5px; font-weight: 700; }
|
||||
.zone-sub { font-size: 12px; opacity: 0.92; margin-top: 2px; }
|
||||
.zone-right { text-align: right; }
|
||||
.hr-val { font-size: 17.5px; font-weight: 800; }
|
||||
.pct-val { font-size: 11.5px; opacity: 0.9; margin-top: 2px; }
|
||||
|
||||
/* 右侧半圆表盘 */
|
||||
.gauge-panel {
|
||||
width: 330px;
|
||||
background: #0F172A;
|
||||
border-radius: 16px;
|
||||
padding: 24px 20px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
color: #FFF;
|
||||
}
|
||||
.g-h { font-size: 16px; font-weight: 700; color: #38BDF8; margin-bottom: 2px; }
|
||||
.g-sub { font-size: 12px; color: #94A3B8; margin-bottom: 14px; }
|
||||
.gauge-svg-wrap {
|
||||
width: 220px;
|
||||
height: 125px;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
.gauge-center-val {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
text-align: center;
|
||||
}
|
||||
.g-val-num { font-size: 26px; font-weight: 800; color: #FFF; line-height: 1; }
|
||||
.g-val-lbl { font-size: 11px; color: #38BDF8; font-weight: 600; margin-top: 2px; }
|
||||
.cardio-level-pill {
|
||||
margin-top: 16px;
|
||||
background: #1E293B;
|
||||
border-radius: 10px;
|
||||
padding: 10px 16px;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.cl-lbl { font-size: 12px; color: #94A3B8; }
|
||||
.cl-val { font-size: 14px; font-weight: 700; color: #10B981; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="device-wrapper">
|
||||
<header class="appbar">
|
||||
<div class="appbar-nav"><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></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" oninput="calcAge(this.value)">
|
||||
</div>
|
||||
</div>
|
||||
<main class="page-body">
|
||||
<div class="zones-stack">
|
||||
<div class="zone-card z5">
|
||||
<div class="zone-left"><div class="badge-box">区间5<br><span style="font-size:10px;">高强度</span></div><div><div class="zone-title">极限冲刺</div><div class="zone-sub">提升冲刺速度</div></div></div>
|
||||
<div class="zone-right"><div class="hr-val">❤️ <span id="r5">166 - 185</span></div><div class="pct-val">最大心率的 90 - 100%</div></div>
|
||||
</div>
|
||||
<div class="zone-card z4">
|
||||
<div class="zone-left"><div class="badge-box">区间4<br><span style="font-size:10px;">高强度</span></div><div><div class="zone-title">心肺提升</div><div class="zone-sub">锻炼心肺功能</div></div></div>
|
||||
<div class="zone-right"><div class="hr-val">❤️ <span id="r4">148 - 166</span></div><div class="pct-val">最大心率的 80 - 90%</div></div>
|
||||
</div>
|
||||
<div class="zone-card z3">
|
||||
<div class="zone-left"><div class="badge-box">区间3<br><span style="font-size:10px;">中强度</span></div><div><div class="zone-title">加速燃烧</div><div class="zone-sub">提高有氧效率</div></div></div>
|
||||
<div class="zone-right"><div class="hr-val">❤️ <span id="r3">129 - 148</span></div><div class="pct-val">最大心率的 70 - 80%</div></div>
|
||||
</div>
|
||||
<div class="zone-card z2">
|
||||
<div class="zone-left"><div class="badge-box">区间2<br><span style="font-size:10px;">低强度</span></div><div><div class="zone-title">轻松减脂</div><div class="zone-sub">改善耐力</div></div></div>
|
||||
<div class="zone-right"><div class="hr-val">❤️ <span id="r2">111 - 129</span></div><div class="pct-val">最大心率的 60 - 70%</div></div>
|
||||
</div>
|
||||
<div class="zone-card z1">
|
||||
<div class="zone-left"><div class="badge-box">区间1<br><span style="font-size:10px;">低强度</span></div><div><div class="zone-title">缓和热身</div><div class="zone-sub">热身、恢复体力</div></div></div>
|
||||
<div class="zone-right"><div class="hr-val">❤️ <span id="r1">92 - 111</span></div><div class="pct-val">最大心率的 50 - 60%</div></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 右侧表盘 -->
|
||||
<aside class="gauge-panel">
|
||||
<div class="g-h">心率强度仪表盘</div>
|
||||
<div class="g-sub">动态极限负荷监测</div>
|
||||
<div class="gauge-svg-wrap">
|
||||
<svg viewBox="0 0 200 110" style="width:100%; height:100%;">
|
||||
<!-- 5 段彩色半圆弧线 -->
|
||||
<path d="M 20 100 A 80 80 0 0 1 180 100" fill="none" stroke="#1E293B" stroke-width="14" stroke-linecap="round"/>
|
||||
<path d="M 20 100 A 80 80 0 0 1 180 100" fill="none" stroke="url(#gaugeGrad)" stroke-width="14" stroke-linecap="round"/>
|
||||
<defs>
|
||||
<linearGradient id="gaugeGrad" x1="0%" y1="0%" x2="100%" y2="0%">
|
||||
<stop offset="0%" stop-color="#8E8E93" />
|
||||
<stop offset="25%" stop-color="#007AFF" />
|
||||
<stop offset="50%" stop-color="#34C759" />
|
||||
<stop offset="75%" stop-color="#FF9500" />
|
||||
<stop offset="100%" stop-color="#FF3B30" />
|
||||
</linearGradient>
|
||||
</defs>
|
||||
</svg>
|
||||
<div class="gauge-center-val">
|
||||
<div class="g-val-num" id="gaugeCenterVal">190</div>
|
||||
<div class="g-val-lbl">MAX BPM</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="cardio-level-pill">
|
||||
<span class="cl-lbl">当前推荐心率区间</span>
|
||||
<span class="cl-val">Z3 有氧高效燃脂</span>
|
||||
</div>
|
||||
</aside>
|
||||
</main>
|
||||
</div>
|
||||
<script>
|
||||
function calcAge(age) {
|
||||
document.getElementById('ageTxt').innerText = age;
|
||||
const max = 220 - age;
|
||||
document.getElementById('gaugeCenterVal').innerText = max;
|
||||
document.getElementById('r5').innerText = Math.round(max*0.9) + ' - ' + max;
|
||||
document.getElementById('r4').innerText = Math.round(max*0.8) + ' - ' + Math.round(max*0.9);
|
||||
document.getElementById('r3').innerText = Math.round(max*0.7) + ' - ' + Math.round(max*0.8);
|
||||
document.getElementById('r2').innerText = Math.round(max*0.6) + ' - ' + Math.round(max*0.7);
|
||||
document.getElementById('r1').innerText = Math.round(max*0.5) + ' - ' + Math.round(max*0.6);
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,653 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>心率区间设置 - 精修定稿版 (Compact Studio Pro)</title>
|
||||
<style>
|
||||
/* =========================================================================
|
||||
:root 全量 Design Tokens 声明 (心率区间专属色彩严格锁死)
|
||||
========================================================================= */
|
||||
:root {
|
||||
--color-z5: #FF3B30;
|
||||
--color-z5-glow: rgba(255, 59, 48, 0.35);
|
||||
--color-z4: #FF9500;
|
||||
--color-z4-glow: rgba(255, 149, 0, 0.35);
|
||||
--color-z3: #34C759;
|
||||
--color-z3-glow: rgba(52, 199, 89, 0.35);
|
||||
--color-z2: #007AFF;
|
||||
--color-z2-glow: rgba(0, 122, 255, 0.35);
|
||||
--color-z1: #8E8E93;
|
||||
--color-z1-glow: rgba(142, 142, 147, 0.35);
|
||||
|
||||
--color-surface: #FFFFFF;
|
||||
--color-background: #F1F5F9;
|
||||
--text-main: #0F172A;
|
||||
--text-sub: #64748B;
|
||||
--divider: #E2E8F0;
|
||||
|
||||
/* 监控面板深邃暗晶质感 */
|
||||
--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;
|
||||
}
|
||||
|
||||
* { 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: 24px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.device-wrapper {
|
||||
width: 100%;
|
||||
max-width: 1080px;
|
||||
margin: 0 auto;
|
||||
background: #FFFFFF;
|
||||
border-radius: 20px;
|
||||
border: 1px solid var(--divider);
|
||||
box-shadow: 0 16px 40px rgba(15, 23, 42, 0.07);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* AppBar 顶部导航栏 */
|
||||
.appbar {
|
||||
height: 60px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 24px;
|
||||
border-bottom: 1px solid var(--divider);
|
||||
background: #FFFFFF;
|
||||
}
|
||||
|
||||
.appbar-nav {
|
||||
width: 38px;
|
||||
height: 38px;
|
||||
border-radius: 10px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
background: #F1F5F9;
|
||||
border: 1px solid var(--divider);
|
||||
transition: all 0.15s ease;
|
||||
}
|
||||
|
||||
.appbar-nav:hover {
|
||||
background: #E2E8F0;
|
||||
transform: scale(0.98);
|
||||
}
|
||||
|
||||
.appbar-nav svg {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
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: #F8FAFC;
|
||||
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: #3949AB;
|
||||
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: #3949AB;
|
||||
border: 2px solid #FFF;
|
||||
box-shadow: 0 2px 8px rgba(57, 73, 171, 0.4);
|
||||
cursor: pointer;
|
||||
transition: transform 0.15s ease;
|
||||
}
|
||||
|
||||
.age-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
|
||||
|
||||
/* 主体分栏区 */
|
||||
.page-body {
|
||||
padding: 24px 28px;
|
||||
display: flex;
|
||||
gap: 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, #FF3B30 0%, #E53935 100%); }
|
||||
.z4 { background: linear-gradient(90deg, #FF9500 0%, #FB8C00 100%); }
|
||||
.z3 { background: linear-gradient(90deg, #34C759 0%, #2E7D32 100%); }
|
||||
.z2 { background: linear-gradient(90deg, #007AFF 0%, #1976D2 100%); }
|
||||
.z1 { background: linear-gradient(90deg, #8E8E93 0%, #757575 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: #10B981;
|
||||
letter-spacing: 0.5px;
|
||||
}
|
||||
|
||||
.live-dot {
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
border-radius: 50%;
|
||||
background: #10B981;
|
||||
box-shadow: 0 0 6px #10B981;
|
||||
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: #10B981;
|
||||
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: #38BDF8;
|
||||
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, #FF3B30, #FF6B6B); box-shadow: 0 0 8px var(--color-z5-glow); }
|
||||
.fill-z4 { width: 90%; background: linear-gradient(90deg, #FF9500, #FFB84D); box-shadow: 0 0 8px var(--color-z4-glow); }
|
||||
.fill-z3 { width: 80%; background: linear-gradient(90deg, #34C759, #6BE68B); box-shadow: 0 0 8px var(--color-z3-glow); }
|
||||
.fill-z2 { width: 70%; background: linear-gradient(90deg, #007AFF, #5AC8FA); box-shadow: 0 0 8px var(--color-z2-glow); }
|
||||
.fill-z1 { width: 60%; background: linear-gradient(90deg, #8E8E93, #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>
|
||||
// 动态心率算法计算
|
||||
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>
|
||||
@@ -0,0 +1,327 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>方案 2:Dynamic Spectrum 光谱能量阶梯流</title>
|
||||
<style>
|
||||
:root {
|
||||
--z5-color: #FF3B30;
|
||||
--z4-color: #FF9500;
|
||||
--z3-color: #34C759;
|
||||
--z2-color: #007AFF;
|
||||
--z1-color: #8E8E93;
|
||||
--bg-page: #F8FAFC;
|
||||
--surface: #FFFFFF;
|
||||
--text-main: #0F172A;
|
||||
--text-sub: #64748B;
|
||||
--divider: #E2E8F0;
|
||||
--content-max-width: 940px;
|
||||
}
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
|
||||
background: var(--bg-page);
|
||||
color: var(--text-main);
|
||||
min-height: 100vh;
|
||||
padding: 24px;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
.device-wrapper {
|
||||
width: 100%;
|
||||
max-width: 1040px;
|
||||
margin: 0 auto;
|
||||
background: #FFFFFF;
|
||||
border-radius: 20px;
|
||||
border: 1px solid var(--divider);
|
||||
box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
|
||||
overflow: hidden;
|
||||
}
|
||||
.appbar {
|
||||
height: 62px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 24px;
|
||||
border-bottom: 1px solid var(--divider);
|
||||
}
|
||||
.appbar-nav {
|
||||
width: 38px;
|
||||
height: 38px;
|
||||
border-radius: 10px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
background: #F1F5F9;
|
||||
}
|
||||
.appbar-nav svg { width: 20px; height: 20px; fill: var(--text-main); }
|
||||
.appbar-title {
|
||||
font-size: 19px;
|
||||
font-weight: 700;
|
||||
margin-left: 14px;
|
||||
}
|
||||
.page-body {
|
||||
padding: 32px 32px 48px;
|
||||
max-width: var(--content-max-width);
|
||||
margin: 0 auto;
|
||||
}
|
||||
.top-controls-card {
|
||||
background: #F8FAFC;
|
||||
border: 1.5px solid var(--divider);
|
||||
border-radius: 16px;
|
||||
padding: 20px 24px;
|
||||
margin-bottom: 24px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 24px;
|
||||
}
|
||||
.ctrl-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
}
|
||||
.ctrl-label {
|
||||
font-size: 14px;
|
||||
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: 10px;
|
||||
padding: 8px 36px 8px 14px;
|
||||
font-size: 14.5px;
|
||||
font-weight: 600;
|
||||
color: var(--text-main);
|
||||
cursor: pointer;
|
||||
}
|
||||
.age-slider-box {
|
||||
flex: 1;
|
||||
max-width: 460px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
}
|
||||
.age-txt {
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
color: var(--text-sub);
|
||||
white-space: nowrap;
|
||||
}
|
||||
.age-txt b { font-size: 18px; color: #2563EB; }
|
||||
.age-slider {
|
||||
flex: 1;
|
||||
height: 8px;
|
||||
border-radius: 4px;
|
||||
background: #E2E8F0;
|
||||
outline: none;
|
||||
-webkit-appearance: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
.age-slider::-webkit-slider-thumb {
|
||||
-webkit-appearance: none;
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
border-radius: 50%;
|
||||
background: #2563EB;
|
||||
border: 3px solid #FFF;
|
||||
box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
|
||||
}
|
||||
|
||||
.spectrum-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 14px;
|
||||
}
|
||||
.spectrum-card {
|
||||
background: #FFFFFF;
|
||||
border: 1.5px solid #E2E8F0;
|
||||
border-radius: 14px;
|
||||
padding: 16px 24px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
box-shadow: 0 2px 8px rgba(0,0,0,0.02);
|
||||
}
|
||||
.spectrum-card:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
|
||||
}
|
||||
/* 左侧高亮光条 */
|
||||
.card-glow-bar {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
width: 6px;
|
||||
}
|
||||
.glow-z5 { background: var(--z5-color); box-shadow: 2px 0 12px rgba(255, 59, 48, 0.5); }
|
||||
.glow-z4 { background: var(--z4-color); box-shadow: 2px 0 12px rgba(255, 149, 0, 0.5); }
|
||||
.glow-z3 { background: var(--z3-color); box-shadow: 2px 0 12px rgba(52, 199, 89, 0.5); }
|
||||
.glow-z2 { background: var(--z2-color); box-shadow: 2px 0 12px rgba(0, 122, 255, 0.5); }
|
||||
.glow-z1 { background: var(--z1-color); box-shadow: 2px 0 12px rgba(142, 142, 147, 0.5); }
|
||||
|
||||
.left-group {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 18px;
|
||||
padding-left: 6px;
|
||||
}
|
||||
.zone-pill {
|
||||
padding: 6px 12px;
|
||||
border-radius: 8px;
|
||||
font-size: 13px;
|
||||
font-weight: 800;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
color: #FFF;
|
||||
}
|
||||
.pill-z5 { background: var(--z5-color); }
|
||||
.pill-z4 { background: var(--z4-color); }
|
||||
.pill-z3 { background: var(--z3-color); }
|
||||
.pill-z2 { background: var(--z2-color); }
|
||||
.pill-z1 { background: var(--z1-color); }
|
||||
|
||||
.name-block { display: flex; flex-direction: column; gap: 4px; }
|
||||
.zone-title { font-size: 17.5px; font-weight: 700; color: var(--text-main); }
|
||||
.zone-subtitle { font-size: 13px; color: var(--text-sub); }
|
||||
|
||||
.right-group {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-end;
|
||||
gap: 4px;
|
||||
}
|
||||
.hr-val-row {
|
||||
font-size: 19px;
|
||||
font-weight: 800;
|
||||
color: var(--text-main);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
}
|
||||
.pulse-heart {
|
||||
animation: heartJump 1.4s infinite;
|
||||
display: inline-block;
|
||||
}
|
||||
@keyframes heartJump {
|
||||
0% { transform: scale(1); }
|
||||
20% { transform: scale(1.3); }
|
||||
40% { transform: scale(1); }
|
||||
60% { transform: scale(1.18); }
|
||||
80% { transform: scale(1); }
|
||||
}
|
||||
.pct-label {
|
||||
font-size: 13px;
|
||||
color: var(--text-sub);
|
||||
font-weight: 500;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="device-wrapper">
|
||||
<header class="appbar">
|
||||
<div class="appbar-nav"><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>
|
||||
|
||||
<main class="page-body">
|
||||
<div class="top-controls-card">
|
||||
<div class="ctrl-item">
|
||||
<span class="ctrl-label">训练模式:</span>
|
||||
<select class="mode-select"><option>普通模式</option><option>竞技模式</option><option>燃脂模式</option></select>
|
||||
</div>
|
||||
<div class="age-slider-box">
|
||||
<span class="age-txt">请输入用户年龄:<b id="ageNum">30</b> 岁</span>
|
||||
<input type="range" min="10" max="90" value="30" class="age-slider" oninput="changeAge(this.value)">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="spectrum-list">
|
||||
<!-- 区间 5 -->
|
||||
<div class="spectrum-card">
|
||||
<div class="card-glow-bar glow-z5"></div>
|
||||
<div class="left-group">
|
||||
<div class="zone-pill pill-z5"><span>区间5</span><span style="font-size: 10px; font-weight: 500;">高强度</span></div>
|
||||
<div class="name-block"><div class="zone-title">极限冲刺</div><div class="zone-subtitle">提升冲刺速度</div></div>
|
||||
</div>
|
||||
<div class="right-group">
|
||||
<div class="hr-val-row"><span class="pulse-heart">❤️</span> <span id="r5">166 - 185</span></div>
|
||||
<div class="pct-label">最大心率的 90 - 100%</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 区间 4 -->
|
||||
<div class="spectrum-card">
|
||||
<div class="card-glow-bar glow-z4"></div>
|
||||
<div class="left-group">
|
||||
<div class="zone-pill pill-z4"><span>区间4</span><span style="font-size: 10px; font-weight: 500;">高强度</span></div>
|
||||
<div class="name-block"><div class="zone-title">心肺提升</div><div class="zone-subtitle">锻炼心肺功能</div></div>
|
||||
</div>
|
||||
<div class="right-group">
|
||||
<div class="hr-val-row"><span class="pulse-heart">❤️</span> <span id="r4">148 - 166</span></div>
|
||||
<div class="pct-label">最大心率的 80 - 90%</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 区间 3 -->
|
||||
<div class="spectrum-card">
|
||||
<div class="card-glow-bar glow-z3"></div>
|
||||
<div class="left-group">
|
||||
<div class="zone-pill pill-z3"><span>区间3</span><span style="font-size: 10px; font-weight: 500;">中强度</span></div>
|
||||
<div class="name-block"><div class="zone-title">加速燃烧</div><div class="zone-subtitle">提高有氧效率</div></div>
|
||||
</div>
|
||||
<div class="right-group">
|
||||
<div class="hr-val-row"><span class="pulse-heart">❤️</span> <span id="r3">129 - 148</span></div>
|
||||
<div class="pct-label">最大心率的 70 - 80%</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 区间 2 -->
|
||||
<div class="spectrum-card">
|
||||
<div class="card-glow-bar glow-z2"></div>
|
||||
<div class="left-group">
|
||||
<div class="zone-pill pill-z2"><span>区间2</span><span style="font-size: 10px; font-weight: 500;">低强度</span></div>
|
||||
<div class="name-block"><div class="zone-title">轻松减脂</div><div class="zone-subtitle">改善耐力</div></div>
|
||||
</div>
|
||||
<div class="right-group">
|
||||
<div class="hr-val-row"><span class="pulse-heart">❤️</span> <span id="r2">111 - 129</span></div>
|
||||
<div class="pct-label">最大心率的 60 - 70%</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 区间 1 -->
|
||||
<div class="spectrum-card">
|
||||
<div class="card-glow-bar glow-z1"></div>
|
||||
<div class="left-group">
|
||||
<div class="zone-pill pill-z1"><span>区间1</span><span style="font-size: 10px; font-weight: 500;">低强度</span></div>
|
||||
<div class="name-block"><div class="zone-title">缓和热身</div><div class="zone-subtitle">热身、恢复体力</div></div>
|
||||
</div>
|
||||
<div class="right-group">
|
||||
<div class="hr-val-row"><span class="pulse-heart">❤️</span> <span id="r1">92 - 111</span></div>
|
||||
<div class="pct-label">最大心率的 50 - 60%</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function changeAge(age) {
|
||||
document.getElementById('ageNum').innerText = age;
|
||||
const maxHr = 220 - age;
|
||||
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>
|
||||
@@ -0,0 +1,294 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>方案 3:Split Console 双栏控制台 (延续家族化架构)</title>
|
||||
<style>
|
||||
:root {
|
||||
--z5-color: #FF3B30;
|
||||
--z4-color: #FF9500;
|
||||
--z3-color: #34C759;
|
||||
--z2-color: #007AFF;
|
||||
--z1-color: #8E8E93;
|
||||
--color-primary: #3949AB;
|
||||
--color-primary-container: #EEF2FF;
|
||||
--color-surface: #FFFFFF;
|
||||
--color-surface-variant: #F8FAFC;
|
||||
--color-background: #F1F5F9;
|
||||
--text-main: #0F172A;
|
||||
--text-sub: #64748B;
|
||||
--divider: #E2E8F0;
|
||||
--content-max-width: 980px;
|
||||
--sidebar-width: 320px;
|
||||
}
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
|
||||
background: var(--color-background);
|
||||
color: var(--text-main);
|
||||
min-height: 100vh;
|
||||
padding: 24px;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
.device-container {
|
||||
width: 100%;
|
||||
max-width: 1060px;
|
||||
margin: 0 auto;
|
||||
background: var(--color-surface);
|
||||
border-radius: 20px;
|
||||
border: 1px solid var(--divider);
|
||||
box-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.08);
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.appbar {
|
||||
height: 60px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 24px;
|
||||
background: var(--color-surface);
|
||||
border-bottom: 1px solid var(--divider);
|
||||
}
|
||||
.appbar-nav {
|
||||
width: 38px;
|
||||
height: 38px;
|
||||
border-radius: 10px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
background: var(--color-surface-variant);
|
||||
border: 1px solid var(--divider);
|
||||
}
|
||||
.appbar-nav svg { width: 20px; height: 20px; fill: var(--text-main); }
|
||||
.appbar-title {
|
||||
font-size: 19px;
|
||||
font-weight: 700;
|
||||
margin-left: 14px;
|
||||
}
|
||||
.page-body {
|
||||
padding: 28px 24px 36px;
|
||||
background: var(--color-background);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
.split-layout {
|
||||
width: 100%;
|
||||
max-width: var(--content-max-width);
|
||||
display: flex;
|
||||
gap: 24px;
|
||||
align-items: stretch;
|
||||
}
|
||||
.left-sidebar {
|
||||
flex: 0 0 var(--sidebar-width);
|
||||
background: var(--color-surface);
|
||||
border-radius: 16px;
|
||||
border: 1px solid var(--divider);
|
||||
padding: 24px 20px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
box-shadow: 0 1px 3px rgba(0,0,0,0.03);
|
||||
}
|
||||
.sidebar-h {
|
||||
font-size: 17px;
|
||||
font-weight: 700;
|
||||
margin-bottom: 16px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
.ctrl-group { margin-bottom: 20px; }
|
||||
.ctrl-label {
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
color: var(--text-sub);
|
||||
margin-bottom: 8px;
|
||||
display: block;
|
||||
}
|
||||
.mode-select {
|
||||
width: 100%;
|
||||
appearance: none;
|
||||
background: #F8FAFC 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: 10px;
|
||||
padding: 10px 14px;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
color: var(--text-main);
|
||||
cursor: pointer;
|
||||
}
|
||||
.age-box {
|
||||
background: #F8FAFC;
|
||||
border-radius: 12px;
|
||||
border: 1px solid var(--divider);
|
||||
padding: 14px;
|
||||
}
|
||||
.age-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.age-label-txt { font-size: 13px; font-weight: 600; color: var(--text-sub); }
|
||||
.age-badge { font-size: 16px; font-weight: 800; color: #2563EB; }
|
||||
.age-slider {
|
||||
width: 100%;
|
||||
height: 6px;
|
||||
border-radius: 3px;
|
||||
background: #CBD5E1;
|
||||
outline: none;
|
||||
-webkit-appearance: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
.age-slider::-webkit-slider-thumb {
|
||||
-webkit-appearance: none;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border-radius: 50%;
|
||||
background: #2563EB;
|
||||
border: 2px solid #FFF;
|
||||
box-shadow: 0 2px 6px rgba(37,99,235,0.4);
|
||||
}
|
||||
.calc-card {
|
||||
margin-top: auto;
|
||||
background: #F8FAFC;
|
||||
border: 1px solid var(--divider);
|
||||
border-radius: 12px;
|
||||
padding: 14px;
|
||||
}
|
||||
.calc-lbl { font-size: 11px; color: var(--text-sub); margin-bottom: 2px; }
|
||||
.calc-val { font-size: 18px; font-weight: 800; color: #E53935; display: flex; align-items: center; gap: 6px; }
|
||||
|
||||
.right-content {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
}
|
||||
.zone-card {
|
||||
border-radius: 12px;
|
||||
padding: 14px 18px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
color: #FFFFFF;
|
||||
transition: all 0.2s ease;
|
||||
box-shadow: 0 2px 6px rgba(0,0,0,0.04);
|
||||
}
|
||||
.zone-card:hover { transform: translateX(4px); }
|
||||
.card-z5 { background: var(--z5-color); }
|
||||
.card-z4 { background: var(--z4-color); }
|
||||
.card-z3 { background: var(--z3-color); }
|
||||
.card-z2 { background: var(--z2-color); }
|
||||
.card-z1 { background: var(--z1-color); }
|
||||
|
||||
.badge-tag {
|
||||
background: rgba(0,0,0,0.2);
|
||||
border-radius: 6px;
|
||||
padding: 4px 8px;
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
text-align: center;
|
||||
line-height: 1.2;
|
||||
}
|
||||
.name-area { margin-left: 14px; flex: 1; }
|
||||
.name-main { font-size: 16px; font-weight: 700; }
|
||||
.name-sub { font-size: 12px; opacity: 0.9; margin-top: 2px; }
|
||||
.hr-area { text-align: right; }
|
||||
.hr-text { font-size: 17px; font-weight: 800; }
|
||||
.pct-text { font-size: 11.5px; opacity: 0.9; margin-top: 2px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="device-container">
|
||||
<header class="appbar">
|
||||
<div class="appbar-nav"><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>
|
||||
|
||||
<main class="page-body">
|
||||
<div class="split-layout">
|
||||
<!-- 左侧控制面板 -->
|
||||
<aside class="left-sidebar">
|
||||
<div class="sidebar-h">⚙️ 参数配置</div>
|
||||
<div class="ctrl-group">
|
||||
<label class="ctrl-label">训练模式:</label>
|
||||
<select class="mode-select"><option>普通模式</option><option>竞技模式</option><option>燃脂模式</option></select>
|
||||
</div>
|
||||
<div class="ctrl-group">
|
||||
<div class="age-box">
|
||||
<div class="age-row">
|
||||
<span class="age-label-txt">请输入用户年龄:</span>
|
||||
<span class="age-badge"><b id="ageNum">30</b> 岁</span>
|
||||
</div>
|
||||
<input type="range" min="10" max="90" value="30" class="age-slider" oninput="updateAge(this.value)">
|
||||
</div>
|
||||
</div>
|
||||
<div class="calc-card">
|
||||
<div class="calc-lbl">当前估算最大心率 (220-年龄)</div>
|
||||
<div class="calc-val">❤️ <span id="maxVal">190</span> bpm</div>
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
<!-- 右侧 5 大区间 -->
|
||||
<section class="right-content">
|
||||
<div class="zone-card card-z5">
|
||||
<div style="display: flex; align-items: center;">
|
||||
<div class="badge-tag">区间5<br><span style="font-size: 10px; opacity: 0.9;">高强度</span></div>
|
||||
<div class="name-area"><div class="name-main">极限冲刺</div><div class="name-sub">提升冲刺速度</div></div>
|
||||
</div>
|
||||
<div class="hr-area"><div class="hr-text">❤️ <span id="r5">166 - 185</span></div><div class="pct-text">最大心率的 90 - 100%</div></div>
|
||||
</div>
|
||||
|
||||
<div class="zone-card card-z4">
|
||||
<div style="display: flex; align-items: center;">
|
||||
<div class="badge-tag">区间4<br><span style="font-size: 10px; opacity: 0.9;">高强度</span></div>
|
||||
<div class="name-area"><div class="name-main">心肺提升</div><div class="name-sub">锻炼心肺功能</div></div>
|
||||
</div>
|
||||
<div class="hr-area"><div class="hr-text">❤️ <span id="r4">148 - 166</span></div><div class="pct-text">最大心率的 80 - 90%</div></div>
|
||||
</div>
|
||||
|
||||
<div class="zone-card card-z3">
|
||||
<div style="display: flex; align-items: center;">
|
||||
<div class="badge-tag">区间3<br><span style="font-size: 10px; opacity: 0.9;">中强度</span></div>
|
||||
<div class="name-area"><div class="name-main">加速燃烧</div><div class="name-sub">提高有氧效率</div></div>
|
||||
</div>
|
||||
<div class="hr-area"><div class="hr-text">❤️ <span id="r3">129 - 148</span></div><div class="pct-text">最大心率的 70 - 80%</div></div>
|
||||
</div>
|
||||
|
||||
<div class="zone-card card-z2">
|
||||
<div style="display: flex; align-items: center;">
|
||||
<div class="badge-tag">区间2<br><span style="font-size: 10px; opacity: 0.9;">低强度</span></div>
|
||||
<div class="name-area"><div class="name-main">轻松减脂</div><div class="name-sub">改善耐力</div></div>
|
||||
</div>
|
||||
<div class="hr-area"><div class="hr-text">❤️ <span id="r2">111 - 129</span></div><div class="pct-text">最大心率的 60 - 70%</div></div>
|
||||
</div>
|
||||
|
||||
<div class="zone-card card-z1">
|
||||
<div style="display: flex; align-items: center;">
|
||||
<div class="badge-tag">区间1<br><span style="font-size: 10px; opacity: 0.9;">低强度</span></div>
|
||||
<div class="name-area"><div class="name-main">缓和热身</div><div class="name-sub">热身、恢复体力</div></div>
|
||||
</div>
|
||||
<div class="hr-area"><div class="hr-text">❤️ <span id="r1">92 - 111</span></div><div class="pct-text">最大心率的 50 - 60%</div></div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function updateAge(age) {
|
||||
document.getElementById('ageNum').innerText = age;
|
||||
const maxHr = 220 - age;
|
||||
document.getElementById('maxVal').innerText = maxHr;
|
||||
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>
|
||||
@@ -0,0 +1,237 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>方案 4:Dark Sport Studio (暗夜极光动感仪表风)</title>
|
||||
<style>
|
||||
:root {
|
||||
--z5-color: #FF453A;
|
||||
--z4-color: #FF9F0A;
|
||||
--z3-color: #30D158;
|
||||
--z2-color: #0A84FF;
|
||||
--z1-color: #98989D;
|
||||
--bg-dark: #0B0F19;
|
||||
--panel-dark: #131B2E;
|
||||
--border-dark: #1E293B;
|
||||
--text-light: #F8FAFC;
|
||||
--text-dim: #94A3B8;
|
||||
}
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", sans-serif;
|
||||
background: #050811;
|
||||
color: var(--text-light);
|
||||
min-height: 100vh;
|
||||
padding: 24px;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
.device-container {
|
||||
width: 100%;
|
||||
max-width: 1060px;
|
||||
margin: 0 auto;
|
||||
background: var(--bg-dark);
|
||||
border-radius: 20px;
|
||||
border: 1px solid var(--border-dark);
|
||||
box-shadow: 0 20px 50px rgba(0,0,0,0.6);
|
||||
overflow: hidden;
|
||||
}
|
||||
.appbar {
|
||||
height: 60px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 24px;
|
||||
background: var(--panel-dark);
|
||||
border-bottom: 1px solid var(--border-dark);
|
||||
}
|
||||
.appbar-nav {
|
||||
width: 38px;
|
||||
height: 38px;
|
||||
border-radius: 10px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
background: #1E293B;
|
||||
}
|
||||
.appbar-nav svg { width: 20px; height: 20px; fill: var(--text-light); }
|
||||
.appbar-title {
|
||||
font-size: 19px;
|
||||
font-weight: 700;
|
||||
margin-left: 14px;
|
||||
color: #38BDF8;
|
||||
}
|
||||
.ctrl-row {
|
||||
padding: 16px 28px;
|
||||
background: #101626;
|
||||
border-bottom: 1px solid var(--border-dark);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 24px;
|
||||
}
|
||||
.ctrl-item { display: flex; align-items: center; gap: 12px; }
|
||||
.ctrl-lbl { font-size: 13.5px; font-weight: 600; color: var(--text-dim); }
|
||||
.mode-select {
|
||||
background: #1E293B;
|
||||
color: #FFFFFF;
|
||||
border: 1px solid #334155;
|
||||
border-radius: 8px;
|
||||
padding: 6px 16px;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
}
|
||||
.age-slider-wrap {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
flex: 1;
|
||||
max-width: 440px;
|
||||
}
|
||||
.age-slider {
|
||||
flex: 1;
|
||||
height: 6px;
|
||||
border-radius: 3px;
|
||||
background: #334155;
|
||||
outline: none;
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
.age-slider::-webkit-slider-thumb {
|
||||
-webkit-appearance: none;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border-radius: 50%;
|
||||
background: #38BDF8;
|
||||
box-shadow: 0 0 10px #38BDF8;
|
||||
cursor: pointer;
|
||||
}
|
||||
.page-body {
|
||||
padding: 28px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 14px;
|
||||
max-width: 900px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
.neon-card {
|
||||
background: var(--panel-dark);
|
||||
border: 1.5px solid var(--border-dark);
|
||||
border-radius: 14px;
|
||||
padding: 16px 22px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
transition: all 0.2s ease;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
.neon-card:hover {
|
||||
transform: translateX(4px);
|
||||
border-color: #475569;
|
||||
}
|
||||
.neon-z5 { border-left: 6px solid var(--z5-color); }
|
||||
.neon-z4 { border-left: 6px solid var(--z4-color); }
|
||||
.neon-z3 { border-left: 6px solid var(--z3-color); }
|
||||
.neon-z2 { border-left: 6px solid var(--z2-color); }
|
||||
.neon-z1 { border-left: 6px solid var(--z1-color); }
|
||||
|
||||
.badge-tag {
|
||||
background: #1E293B;
|
||||
border-radius: 8px;
|
||||
padding: 6px 12px;
|
||||
text-align: center;
|
||||
font-size: 13px;
|
||||
font-weight: 800;
|
||||
}
|
||||
.tag-z5 { color: var(--z5-color); }
|
||||
.tag-z4 { color: var(--z4-color); }
|
||||
.tag-z3 { color: var(--z3-color); }
|
||||
.tag-z2 { color: var(--z2-color); }
|
||||
.tag-z1 { color: var(--z1-color); }
|
||||
|
||||
.name-col { margin-left: 16px; flex: 1; }
|
||||
.name-h { font-size: 17px; font-weight: 700; color: #F8FAFC; }
|
||||
.name-p { font-size: 12.5px; color: var(--text-dim); margin-top: 2px; }
|
||||
.hr-col { text-align: right; }
|
||||
.hr-num {
|
||||
font-size: 19px;
|
||||
font-weight: 800;
|
||||
color: #FFFFFF;
|
||||
letter-spacing: 0.03em;
|
||||
text-shadow: 0 0 12px rgba(255,255,255,0.2);
|
||||
}
|
||||
.hr-pct { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="device-container">
|
||||
<header class="appbar">
|
||||
<div class="appbar-nav"><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="ctrl-row">
|
||||
<div class="ctrl-item">
|
||||
<span class="ctrl-lbl">训练模式:</span>
|
||||
<select class="mode-select"><option>普通模式</option><option>竞技模式</option></select>
|
||||
</div>
|
||||
<div class="age-slider-wrap">
|
||||
<span class="ctrl-lbl">请输入用户年龄:<b id="ageNum" style="color:#38BDF8;">30</b></span>
|
||||
<input type="range" min="10" max="90" value="30" class="age-slider" oninput="changeAge(this.value)">
|
||||
</div>
|
||||
</div>
|
||||
<main class="page-body">
|
||||
<div class="neon-card neon-z5">
|
||||
<div style="display: flex; align-items: center;">
|
||||
<div class="badge-tag tag-z5">区间5<br><span style="font-size:10px;">高强度</span></div>
|
||||
<div class="name-col"><div class="name-h">极限冲刺</div><div class="name-p">提升冲刺速度</div></div>
|
||||
</div>
|
||||
<div class="hr-col"><div class="hr-num">❤️ <span id="r5">166 - 185</span></div><div class="hr-pct">最大心率的 90 - 100%</div></div>
|
||||
</div>
|
||||
|
||||
<div class="neon-card neon-z4">
|
||||
<div style="display: flex; align-items: center;">
|
||||
<div class="badge-tag tag-z4">区间4<br><span style="font-size:10px;">高强度</span></div>
|
||||
<div class="name-col"><div class="name-h">心肺提升</div><div class="name-p">锻炼心肺功能</div></div>
|
||||
</div>
|
||||
<div class="hr-col"><div class="hr-num">❤️ <span id="r4">148 - 166</span></div><div class="hr-pct">最大心率的 80 - 90%</div></div>
|
||||
</div>
|
||||
|
||||
<div class="neon-card neon-z3">
|
||||
<div style="display: flex; align-items: center;">
|
||||
<div class="badge-tag tag-z3">区间3<br><span style="font-size:10px;">中强度</span></div>
|
||||
<div class="name-col"><div class="name-h">加速燃烧</div><div class="name-p">提高有氧效率</div></div>
|
||||
</div>
|
||||
<div class="hr-col"><div class="hr-num">❤️ <span id="r3">129 - 148</span></div><div class="hr-pct">最大心率的 70 - 80%</div></div>
|
||||
</div>
|
||||
|
||||
<div class="neon-card neon-z2">
|
||||
<div style="display: flex; align-items: center;">
|
||||
<div class="badge-tag tag-z2">区间2<br><span style="font-size:10px;">低强度</span></div>
|
||||
<div class="name-col"><div class="name-h">轻松减脂</div><div class="name-p">改善耐力</div></div>
|
||||
</div>
|
||||
<div class="hr-col"><div class="hr-num">❤️ <span id="r2">111 - 129</span></div><div class="hr-pct">最大心率的 60 - 70%</div></div>
|
||||
</div>
|
||||
|
||||
<div class="neon-card neon-z1">
|
||||
<div style="display: flex; align-items: center;">
|
||||
<div class="badge-tag tag-z1">区间1<br><span style="font-size:10px;">低强度</span></div>
|
||||
<div class="name-col"><div class="name-h">缓和热身</div><div class="name-p">热身、恢复体力</div></div>
|
||||
</div>
|
||||
<div class="hr-col"><div class="hr-num">❤️ <span id="r1">92 - 111</span></div><div class="hr-pct">最大心率的 50 - 60%</div></div>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
<script>
|
||||
function changeAge(age) {
|
||||
document.getElementById('ageNum').innerText = age;
|
||||
const maxHr = 220 - age;
|
||||
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>
|
||||
@@ -0,0 +1,274 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>方案 5:Precision Metric (高精度运动健康阶梯)</title>
|
||||
<style>
|
||||
:root {
|
||||
--z5-color: #EF4444;
|
||||
--z4-color: #F59E0B;
|
||||
--z3-color: #10B981;
|
||||
--z2-color: #3B82F6;
|
||||
--z1-color: #6B7280;
|
||||
--bg-page: #F8FAFC;
|
||||
--surface: #FFFFFF;
|
||||
--text-main: #0F172A;
|
||||
--text-sub: #64748B;
|
||||
--divider: #E2E8F0;
|
||||
--content-max-width: 900px;
|
||||
}
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
|
||||
background: var(--bg-page);
|
||||
color: var(--text-main);
|
||||
min-height: 100vh;
|
||||
padding: 24px;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
.device-wrapper {
|
||||
width: 100%;
|
||||
max-width: 1040px;
|
||||
margin: 0 auto;
|
||||
background: #FFFFFF;
|
||||
border-radius: 20px;
|
||||
border: 1px solid var(--divider);
|
||||
box-shadow: 0 10px 30px rgba(0,0,0,0.05);
|
||||
overflow: hidden;
|
||||
}
|
||||
.appbar {
|
||||
height: 60px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 24px;
|
||||
border-bottom: 1px solid var(--divider);
|
||||
}
|
||||
.appbar-nav {
|
||||
width: 38px;
|
||||
height: 38px;
|
||||
border-radius: 10px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
background: #F1F5F9;
|
||||
}
|
||||
.appbar-nav svg { width: 20px; height: 20px; fill: var(--text-main); }
|
||||
.appbar-title {
|
||||
font-size: 19px;
|
||||
font-weight: 700;
|
||||
margin-left: 14px;
|
||||
}
|
||||
.page-body {
|
||||
padding: 32px 32px 48px;
|
||||
max-width: var(--content-max-width);
|
||||
margin: 0 auto;
|
||||
}
|
||||
.config-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 20px;
|
||||
margin-bottom: 24px;
|
||||
padding: 16px 20px;
|
||||
background: #F8FAFC;
|
||||
border: 1px solid var(--divider);
|
||||
border-radius: 14px;
|
||||
}
|
||||
.mode-group { display: flex; align-items: center; gap: 10px; }
|
||||
.mode-label { font-size: 13.5px; font-weight: 600; color: var(--text-sub); }
|
||||
.mode-select {
|
||||
background: #FFF;
|
||||
border: 1.5px solid var(--divider);
|
||||
border-radius: 8px;
|
||||
padding: 6px 16px;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
}
|
||||
.age-group {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
flex: 1;
|
||||
max-width: 440px;
|
||||
}
|
||||
.age-txt { font-size: 13.5px; font-weight: 600; color: var(--text-sub); white-space: nowrap; }
|
||||
.age-txt b { font-size: 17px; color: #2563EB; }
|
||||
.age-slider {
|
||||
flex: 1;
|
||||
height: 6px;
|
||||
border-radius: 3px;
|
||||
background: #E2E8F0;
|
||||
outline: none;
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
.age-slider::-webkit-slider-thumb {
|
||||
-webkit-appearance: none;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
border-radius: 50%;
|
||||
background: #2563EB;
|
||||
border: 2px solid #FFF;
|
||||
box-shadow: 0 2px 6px rgba(37,99,235,0.3);
|
||||
cursor: pointer;
|
||||
}
|
||||
.cards-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
}
|
||||
.metric-card {
|
||||
background: #FFFFFF;
|
||||
border: 1.5px solid #E2E8F0;
|
||||
border-radius: 12px;
|
||||
padding: 16px 20px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
transition: all 0.18s ease;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
.metric-card:hover {
|
||||
transform: translateX(3px);
|
||||
box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
|
||||
}
|
||||
.top-line {
|
||||
position: absolute;
|
||||
top: 0; left: 0; right: 0;
|
||||
height: 4px;
|
||||
}
|
||||
.line-z5 { background: var(--z5-color); }
|
||||
.line-z4 { background: var(--z4-color); }
|
||||
.line-z3 { background: var(--z3-color); }
|
||||
.line-z2 { background: var(--z2-color); }
|
||||
.line-z1 { background: var(--z1-color); }
|
||||
|
||||
.left-part { display: flex; align-items: center; gap: 16px; }
|
||||
.zone-chip {
|
||||
padding: 4px 10px;
|
||||
border-radius: 6px;
|
||||
font-size: 12px;
|
||||
font-weight: 800;
|
||||
color: #FFF;
|
||||
text-align: center;
|
||||
}
|
||||
.chip-z5 { background: var(--z5-color); }
|
||||
.chip-z4 { background: var(--z4-color); }
|
||||
.chip-z3 { background: var(--z3-color); }
|
||||
.chip-z2 { background: var(--z2-color); }
|
||||
.chip-z1 { background: var(--z1-color); }
|
||||
|
||||
.title-part { display: flex; flex-direction: column; gap: 2px; }
|
||||
.title-txt { font-size: 16.5px; font-weight: 700; color: var(--text-main); }
|
||||
.sub-txt { font-size: 12.5px; color: var(--text-sub); }
|
||||
|
||||
.right-part { text-align: right; }
|
||||
.hr-num-txt { font-size: 18px; font-weight: 800; color: var(--text-main); }
|
||||
.pct-txt { font-size: 12px; color: var(--text-sub); margin-top: 2px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="device-wrapper">
|
||||
<header class="appbar">
|
||||
<div class="appbar-nav"><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>
|
||||
|
||||
<main class="page-body">
|
||||
<div class="config-header">
|
||||
<div class="mode-group">
|
||||
<span class="mode-label">训练模式:</span>
|
||||
<select class="mode-select"><option>普通模式</option><option>竞技模式</option></select>
|
||||
</div>
|
||||
<div class="age-group">
|
||||
<span class="age-txt">请输入用户年龄:<b id="ageNum">30</b> 岁</span>
|
||||
<input type="range" min="10" max="90" value="30" class="age-slider" oninput="changeAge(this.value)">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="cards-list">
|
||||
<!-- 区间 5 -->
|
||||
<div class="metric-card">
|
||||
<div class="top-line line-z5"></div>
|
||||
<div class="left-part">
|
||||
<div class="zone-chip chip-z5">区间5<br><span style="font-size:10px; font-weight:500;">高强度</span></div>
|
||||
<div class="title-part"><div class="title-txt">极限冲刺</div><div class="sub-txt">提升冲刺速度</div></div>
|
||||
</div>
|
||||
<div class="right-part">
|
||||
<div class="hr-num-txt">❤️ <span id="r5">166 - 185</span></div>
|
||||
<div class="pct-txt">最大心率的 90 - 100%</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 区间 4 -->
|
||||
<div class="metric-card">
|
||||
<div class="top-line line-z4"></div>
|
||||
<div class="left-part">
|
||||
<div class="zone-chip chip-z4">区间4<br><span style="font-size:10px; font-weight:500;">高强度</span></div>
|
||||
<div class="title-part"><div class="title-txt">心肺提升</div><div class="sub-txt">锻炼心肺功能</div></div>
|
||||
</div>
|
||||
<div class="right-part">
|
||||
<div class="hr-num-txt">❤️ <span id="r4">148 - 166</span></div>
|
||||
<div class="pct-txt">最大心率的 80 - 90%</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 区间 3 -->
|
||||
<div class="metric-card">
|
||||
<div class="top-line line-z3"></div>
|
||||
<div class="left-part">
|
||||
<div class="zone-chip chip-z3">区间3<br><span style="font-size:10px; font-weight:500;">中强度</span></div>
|
||||
<div class="title-part"><div class="title-txt">加速燃烧</div><div class="sub-txt">提高有氧效率</div></div>
|
||||
</div>
|
||||
<div class="right-part">
|
||||
<div class="hr-num-txt">❤️ <span id="r3">129 - 148</span></div>
|
||||
<div class="pct-txt">最大心率的 70 - 80%</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 区间 2 -->
|
||||
<div class="metric-card">
|
||||
<div class="top-line line-z2"></div>
|
||||
<div class="left-part">
|
||||
<div class="zone-chip chip-z2">区间2<br><span style="font-size:10px; font-weight:500;">低强度</span></div>
|
||||
<div class="title-part"><div class="title-txt">轻松减脂</div><div class="sub-txt">改善耐力</div></div>
|
||||
</div>
|
||||
<div class="right-part">
|
||||
<div class="hr-num-txt">❤️ <span id="r2">111 - 129</span></div>
|
||||
<div class="pct-txt">最大心率的 60 - 70%</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 区间 1 -->
|
||||
<div class="metric-card">
|
||||
<div class="top-line line-z1"></div>
|
||||
<div class="left-part">
|
||||
<div class="zone-chip chip-z1">区间1<br><span style="font-size:10px; font-weight:500;">低强度</span></div>
|
||||
<div class="title-part"><div class="title-txt">缓和热身</div><div class="sub-txt">热身、恢复体力</div></div>
|
||||
</div>
|
||||
<div class="right-part">
|
||||
<div class="hr-num-txt">❤️ <span id="r1">92 - 111</span></div>
|
||||
<div class="pct-txt">最大心率的 50 - 60%</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function changeAge(age) {
|
||||
document.getElementById('ageNum').innerText = age;
|
||||
const maxHr = 220 - age;
|
||||
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>
|
||||
@@ -0,0 +1,192 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>心率区间设置 - 方案 1 延伸 5 套动感高阶方案竞标</title>
|
||||
<style>
|
||||
:root {
|
||||
--primary: #3949AB;
|
||||
--bg: #090D16;
|
||||
--panel: #131B2E;
|
||||
--border: #23314D;
|
||||
--text: #F8FAFC;
|
||||
--text-dim: #94A3B8;
|
||||
}
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", sans-serif;
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
header {
|
||||
padding: 16px 28px;
|
||||
background: var(--panel);
|
||||
border-bottom: 1px solid var(--border);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.brand {
|
||||
font-size: 18px;
|
||||
font-weight: 700;
|
||||
color: #38BDF8;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
}
|
||||
.brand span {
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
color: #E2E8F0;
|
||||
background: #1E293B;
|
||||
border: 1px solid var(--border);
|
||||
padding: 3px 10px;
|
||||
border-radius: 6px;
|
||||
}
|
||||
.nav-tabs {
|
||||
display: flex;
|
||||
gap: 6px;
|
||||
background: #090D16;
|
||||
padding: 4px;
|
||||
border-radius: 12px;
|
||||
border: 1px solid var(--border);
|
||||
}
|
||||
.tab-btn {
|
||||
padding: 8px 14px;
|
||||
border: none;
|
||||
background: transparent;
|
||||
color: var(--text-dim);
|
||||
border-radius: 8px;
|
||||
cursor: pointer;
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
white-space: nowrap;
|
||||
}
|
||||
.tab-btn:hover { color: #FFFFFF; background: rgba(255,255,255,0.06); }
|
||||
.tab-btn.active {
|
||||
background: #2563EB;
|
||||
color: #FFFFFF;
|
||||
font-weight: 600;
|
||||
box-shadow: 0 2px 10px rgba(37,99,235,0.4);
|
||||
}
|
||||
.main-content {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 20px 28px;
|
||||
align-items: center;
|
||||
}
|
||||
.desc-card {
|
||||
width: 100%;
|
||||
max-width: 1140px;
|
||||
background: var(--panel);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 14px;
|
||||
padding: 16px 24px;
|
||||
margin-bottom: 16px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
}
|
||||
.desc-title { font-size: 16px; font-weight: 600; color: #F8FAFC; }
|
||||
.desc-text { font-size: 13px; color: var(--text-dim); margin-top: 4px; line-height: 1.4; }
|
||||
.iframe-container {
|
||||
width: 100%;
|
||||
max-width: 1140px;
|
||||
height: 690px;
|
||||
border-radius: 14px;
|
||||
overflow: hidden;
|
||||
border: 1px solid var(--border);
|
||||
background: #FFF;
|
||||
box-shadow: 0 16px 40px rgba(0,0,0,0.45);
|
||||
}
|
||||
iframe {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border: none;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<div class="brand">
|
||||
💓 心率区间设置 · 方案 1 延伸 5 套动感高阶方案竞标
|
||||
<span>保留原版红/橙/绿/蓝/灰专属色系与全量字段</span>
|
||||
</div>
|
||||
<div class="nav-tabs">
|
||||
<button class="tab-btn active" onclick="switchOption(5, this)">⭐ 1-E:精修暗晶粒子流 (推荐)</button>
|
||||
<button class="tab-btn" onclick="switchOption(1, this)">1-A:Pro Pulse 光谱波形版</button>
|
||||
<button class="tab-btn" onclick="switchOption(2, this)">1-B:Aero Ring 5色能量环</button>
|
||||
<button class="tab-btn" onclick="switchOption(3, this)">1-C:Glassmorphic 毛玻璃</button>
|
||||
<button class="tab-btn" onclick="switchOption(4, this)">1-D:Cardio Gauge 大表盘</button>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div class="main-content">
|
||||
<div class="desc-card" id="descCard">
|
||||
<div>
|
||||
<div class="desc-title" id="descTitle">方案 1-E 精修版:动态心跳 + 黑曜石暗晶粒子监控 (强烈推荐)</div>
|
||||
<div class="desc-text" id="descDetail">❤️ 升级为高真拟态双跳心电脉冲;右侧全面升级为黑曜石暗晶 HUD,剔除廉价蓝底,搭载 Canvas 悬浮能量粒子引擎 + 激光心电示波 + 粒子流光能量阶梯。</div>
|
||||
</div>
|
||||
<a id="directLink" href="option_1e_compact_flow.html" target="_blank" style="color: #38BDF8; font-size: 13px; text-decoration: none; border: 1px solid #38BDF8; padding: 7px 14px; border-radius: 8px; white-space: nowrap;">独立打开 ↗</a>
|
||||
</div>
|
||||
|
||||
<div class="iframe-container">
|
||||
<iframe id="previewFrame" src="option_1e_compact_flow.html"></iframe>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
const options = [
|
||||
{
|
||||
id: 5,
|
||||
file: 'option_1e_compact_flow.html',
|
||||
title: '方案 1-E 精修版:动态心跳 + 黑曜石暗晶粒子监控 (强烈推荐 · 动感与工控巅峰)',
|
||||
detail: '❤️ 升级为真实人体双跳律动心电脉冲;右侧监控区彻底重构为黑曜石暗晶 HUD,剔除纯蓝底色,搭载 Canvas 悬浮能量粒子引擎 + 激光心电示波 + 粒子流光能量阶梯。'
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
file: 'option_1a_pro_pulse.html',
|
||||
title: '方案 1-A:Pro Pulse 动态光谱波形版 (经典至臻款)',
|
||||
detail: '左侧 5 大心率能量渐变卡片(红/橙/绿/蓝/灰纯正色阶) + 右侧暗晶 HUD 动态 ECG 心电脉冲走势与最大心率/燃脂上限看板,年龄滑块拖动实时动态重算。'
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
file: 'option_1b_aero_ring.html',
|
||||
title: '方案 1-B:Aero Dynamic Ring (5 色心率能量环仪表盘版)',
|
||||
detail: '右侧配备 5 段彩色心率刻度能量圆环,中心呈现大字号 MAX BPM 动态指示,底部 5 色点阵图例对照,极具 Garmin/Apple Watch 旗舰手感。'
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
file: 'option_1c_glassmorphic.html',
|
||||
title: '方案 1-C:Glassmorphic Sport Pro (半透毛玻璃动感奢华版)',
|
||||
detail: '全透光毛玻璃卡片(blur: 20px)+ 左侧 6px 纯正原色辉光条,右侧搭载动态扩散雷达波与生理指标看板。'
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
file: 'option_1d_cardio_gauge.html',
|
||||
title: '方案 1-D:Cardio Gauge Studio (运动大表盘质感版)',
|
||||
detail: '右侧采用半圆心率转速表盘(Tachometer Gauge),5 阶光谱精准弧度渐变,中心显示动态负荷并推荐心率燃脂区间。'
|
||||
}
|
||||
];
|
||||
|
||||
function switchOption(id, btn) {
|
||||
document.querySelectorAll('.tab-btn').forEach(b => b.classList.remove('active'));
|
||||
btn.classList.add('active');
|
||||
const opt = options.find(o => o.id === id);
|
||||
document.getElementById('descTitle').innerText = opt.title;
|
||||
document.getElementById('descDetail').innerText = opt.detail;
|
||||
document.getElementById('directLink').href = opt.file;
|
||||
document.getElementById('previewFrame').src = opt.file;
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,59 @@
|
||||
---
|
||||
title: "APP界面优化 - 心率区间设置页面 (Heart Rate Zones)"
|
||||
status: "TODO"
|
||||
created: "2026-08-17"
|
||||
level: 1
|
||||
---
|
||||
|
||||
# 任务目标
|
||||
对系统设置子页面【心率区间设置】执行 UI 交互与视觉动感重构(**严格纯美化,禁止修改/增删字段,心率区间红/橙/绿/蓝/灰专属色彩 100% 锁死**)。
|
||||
核心解决三大问题:
|
||||
1. **纯色块生硬堆叠与草稿感**:将原粗暴纯色条升级为 **5 阶微渐变高质感卡片**,集成 **❤️ 拟真双跳动态心跳脉冲**;
|
||||
2. **右半屏空旷失衡**:引入 **黑曜石暗晶 HUD 动态监控台**(激光心电示波屏 + 天青色最大心率动态读数 + 5 阶流光能量阶梯);
|
||||
3. **参数调节缺乏联动**:拖动年龄滑块时,全屏心率区间与 HUD 看板毫秒级实时动态重算重绘。
|
||||
|
||||
---
|
||||
|
||||
## 🛠️ 开发依据(标准物料约束)
|
||||
> 🚨 **绝对约束**:请 `@coder` 在修改代码前,**必须**完整阅读本工作台目录下的全部物料,严禁自行发挥排版!
|
||||
>
|
||||
> **工作台路径**:`设置页面UI优化/心率区间设置/`
|
||||
> 1. `baseline_ui.html`:**[必读]** 终极 HTML/CSS 排版基准源代码(双栏布局、❤️ 动态脉冲、HUD 示波、动态计算 JS)。
|
||||
> 2. `DESIGN_SPEC.md`:**[必读]** 视觉边界手册(1080dp 容器、350dp HUD、心率专属色彩阶梯、双跳心跳关键帧)。
|
||||
> 3. `implementation_plan.md`:**[必读]** CSS → Android Token 映射字典与原生落地清单。
|
||||
>
|
||||
> **原始出厂截屏**(信息字段保底凭证,只读):
|
||||
> - `Screenshot_20260817-135129.png`
|
||||
|
||||
---
|
||||
|
||||
## 📂 涉及文件清单
|
||||
|
||||
**1. Layout**
|
||||
- `app/src/main/res/layout/activity_heart_rate_zone_settings.xml`
|
||||
|
||||
**2. Java / Activity / Custom Views**
|
||||
- `app/src/main/java/com/umilab/eapmanage/team/settings/HeartRateZoneSettingsActivity.java`
|
||||
- `app/src/main/java/com/umilab/eapmanage/ui/view/EcgWaveformView.java`
|
||||
|
||||
**3. 动画与资源 (Animators & Drawables)**
|
||||
- `app/src/main/res/anim/anim_heart_pulse.xml`
|
||||
- `app/src/main/res/values/colors.xml`(补充 `hr_zone_1 ~ 5` 与 `hud_*` 色值)
|
||||
|
||||
---
|
||||
|
||||
## 📋 执行步骤清单
|
||||
1. **重构布局结构**:将 `activity_heart_rate_zone_settings.xml` 改为 AppBar + 顶部控制条 + 下方横向双栏(左侧 5 大心率卡片,右侧 350dp 黑曜石 HUD 监控面板)。
|
||||
2. **心率卡片视觉升级**:严格使用红、橙、绿、蓝、灰专属渐变 Drawable,12dp 圆角,左侧半透明黑底强度徽章。
|
||||
3. **心跳脉冲与示波动效**:❤️ 心形图标接入 `anim_heart_pulse.xml` 双跳动画;右侧接入 `EcgWaveformView` 激光心电动态波。
|
||||
4. **年龄联动计算**:在 `HeartRateZoneSettingsActivity.java` 中监听 `SeekBar`,按 Tanaka 矩阵动态计算并刷新 5 个区间心率范围与最大心率。
|
||||
5. **字段核验**:确保原图所有模式文本、百分比范围与说明文案 100% 完整保留。
|
||||
|
||||
---
|
||||
|
||||
## ✅ 验收标准
|
||||
- [ ] 平板横屏下展示为横向双栏架构,左侧 5 张渐变卡片 + 右侧黑曜石 HUD 监控台,饱满专业。
|
||||
- [ ] 心率 5 大区间专属色彩严格保持红、橙、绿、蓝、灰,无任何改动。
|
||||
- [ ] 原图所有文本字段(模式、年龄、主名称、辅助描述、心率范围、百分比)100% 对应原图无遗漏。
|
||||
- [ ] ❤️ 心形图标展现顺畅拟真双跳动态脉冲,拖动年龄滑块实时联动全页重算。
|
||||
- [ ] 所有颜色与尺寸严格使用 Android 语义 Token。
|
||||
@@ -0,0 +1,72 @@
|
||||
# 心率区间设置页面 — 视觉边界手册 DESIGN_SPEC
|
||||
|
||||
- **模块**:系统设置子页面 — 心率区间设置 (`HeartRateZoneSettingsActivity`)
|
||||
- **日期**:2026-08-17
|
||||
- **视觉基准**:同目录 `baseline_ui.html`(Compact Studio Pro 动感暗晶双栏架构)
|
||||
- **原始出厂截图**(只读引用):`./Screenshot_20260817-135129.png`
|
||||
|
||||
> **红线铁律复述**:
|
||||
> 1. **心率区间专属色彩系统 100% 锁死**:区间 5(红 `#FF3B30`)、区间 4(橙 `#FF9500`)、区间 3(绿 `#34C759`)、区间 2(蓝 `#007AFF`)、区间 1(灰 `#8E8E93`)严禁改动;
|
||||
> 2. **所有字段文案 100% 完整保留**,严禁篡改任何业务字段。
|
||||
|
||||
---
|
||||
|
||||
## 1. 宽屏平板布局架构 (Compact Studio Pro 双栏栅格)
|
||||
|
||||
### 1.1 现状痛点剖析
|
||||
1. **纯色色块生硬堆叠**:原截图中左侧 5 个区间为大面积粗暴纯色矩形,下划线输入极具草稿感;
|
||||
2. **右半屏严重留白失衡**:在横屏平板下,右半侧空无一物,空间浪费率超过 50%;
|
||||
3. **缺少运动健康动感氛围**:静态数据展示,缺少运动生理与心率脉冲的生命活力。
|
||||
|
||||
### 1.2 目标架构规范
|
||||
|
||||
| 规范项 | 参数值 | 说明 |
|
||||
| :--- | :--- | :--- |
|
||||
| **容器最大宽度** | **1080dp** (`--content-max-width`) | 超出宽度时屏幕左右自动居中留白 (`margin: 0 auto`) |
|
||||
| **顶部控制面板** | **流线横向通栏** | 整合训练模式下拉选框与年龄调节滑动条 |
|
||||
| **左侧心率区间卡片区** | **自适应 1fr** (~650dp) | 纵向排布 Z5 ~ Z1 五张高质感渐变卡片,每张内含动态 ❤️ 心跳 |
|
||||
| **右侧暗晶 HUD 监控台** | **固定 350dp** | 黑曜石暗晶质感(`#0B0F19`),包含激光 ECG 示波屏、实时最大心率读数与流光能量阶梯 |
|
||||
| **AppBar 顶部栏** | **通栏 60dp** (`--appbar-height`) | 标题 19sp/700,返回箭头 48dp 触控槽 |
|
||||
| **卡片圆角** | **12dp** (区间卡片) / **16dp** (HUD面板) | 细微阴影与高斯流光 |
|
||||
|
||||
---
|
||||
|
||||
## 2. 字段与槽位核验清单 (100% 对齐原图)
|
||||
|
||||
| # | 区域 | 字段 / 元素标识 | 初始值 / 状态 | 规范与动感行为 |
|
||||
| :-: | :--- | :--- | :--- | :--- |
|
||||
| 1 | **AppBar** | 返回箭头 `(←)` | 交互按钮 | 38dp 触控槽,点击返回上一级 |
|
||||
| 2 | **AppBar** | `心率区间设置` | 页面标题 | 19sp / 700 字重 / `--text-main` |
|
||||
| 3 | **顶部控制** | `训练模式:` | 下拉标签 | 13.5sp / 600 字重 |
|
||||
| 4 | **顶部控制** | `普通模式` | 下拉选项 | Outlined Dropdown,内置普通/竞技/燃脂模式 |
|
||||
| 5 | **顶部控制** | `请输入用户年龄:` | 标签文案 | 13.5sp / 600 字重 |
|
||||
| 6 | **顶部控制** | `30` 岁 | 年龄数值 | 18sp 粗体 / 品牌主色,随滑动条实时联动 |
|
||||
| 7 | **顶部控制** | 年龄滑动条 (Slider) | 默认值 30 | 范围 10~90,拖动时实时联动重新计算全页面心率区间 |
|
||||
| 8 | **区间 5** | `区间5` / `高强度` | 强度标签 | 半透明黑底徽章(`rgba(0,0,0,0.22)`) |
|
||||
| 9 | **区间 5** | `极限冲刺` | 区间主名称 | 16.5sp / 700 / `#FFFFFF` |
|
||||
| 10 | **区间 5** | `提升冲刺速度` | 辅助描述 | 12sp / 0.92 不透明度 |
|
||||
| 11 | **区间 5** | `❤️ 166 - 185` | 心率范围 | **❤️ 带拟真双跳动态心电脉冲**,数值随年龄动态计算 |
|
||||
| 12 | **区间 5** | `最大心率的 90 - 100%` | 百分比说明 | 11.5sp / 0.9 不透明度 |
|
||||
| 13 | **区间 4** | `区间4` / `高强度` / `心肺提升` / `锻炼心肺功能` / `❤️ 148 - 166` / `最大心率的 80 - 90%` | 全量保留 | 橙色系渐变 `#FF9500` $\to$ `#FB8C00` |
|
||||
| 14 | **区间 3** | `区间3` / `中强度` / `加速燃烧` / `提高有氧效率` / `❤️ 129 - 148` / `最大心率的 70 - 80%` | 全量保留 | 绿色系渐变 `#34C759` $\to$ `#2E7D32` |
|
||||
| 15 | **区间 2** | `区间2` / `低强度` / `轻松减脂` / `改善耐力` / `❤️ 111 - 129` / `最大心率的 60 - 70%` | 全量保留 | 蓝色系渐变 `#007AFF` $\to$ `#1976D2` |
|
||||
| 16 | **区间 1** | `区间1` / `低强度` / `缓和热身` / `热身、恢复体力` / `❤️ 92 - 111` / `最大心率的 50 - 60%` | 全量保留 | 灰色系渐变 `#8E8E93` $\to$ `#757575` |
|
||||
| 17 | **右侧 HUD** | `动态心率监控` / `● LIVE ECG` | 监控标题 | 黑曜石暗晶 HUD,发光示波屏 + 流光能量阶梯 |
|
||||
|
||||
---
|
||||
|
||||
## 3. 动态交互与动画规范
|
||||
|
||||
### 3.1 ❤️ 双跳动感心电脉冲 (Double-Beat Lub-Dub)
|
||||
- 动画周期:`1.35s` 循环;
|
||||
- 关键帧节奏:`0% (scale 1) -> 14% (scale 1.32) -> 28% (scale 1.05) -> 42% (scale 1.22) -> 70% (scale 1)`;
|
||||
- 滤镜:`drop-shadow(0 0 4px rgba(255, 255, 255, 0.6))`。
|
||||
|
||||
### 3.2 动态心率换算算法 (Tanaka 矩阵)
|
||||
- 当用户拖动年龄滑动条 $Age$ 时:
|
||||
- 估算最大心率:$MaxHR = 220 - Age$
|
||||
- 区间 5:$[Round(MaxHR \times 0.90), MaxHR]$
|
||||
- 区间 4:$[Round(MaxHR \times 0.80), Round(MaxHR \times 0.90)]$
|
||||
- 区间 3:$[Round(MaxHR \times 0.70), Round(MaxHR \times 0.80)]$
|
||||
- 区间 2:$[Round(MaxHR \times 0.60), Round(MaxHR \times 0.70)]$
|
||||
- 区间 1:$[Round(MaxHR \times 0.50), Round(MaxHR \times 0.60)]$
|
||||
@@ -0,0 +1,675 @@
|
||||
<!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: #3949AB;
|
||||
--color-primary-container: #EEF2FF;
|
||||
--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: 1080px;
|
||||
--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: 24px;
|
||||
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 顶部导航栏 */
|
||||
.appbar {
|
||||
height: var(--appbar-height);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 24px;
|
||||
border-bottom: 1px solid var(--divider);
|
||||
background: var(--color-surface);
|
||||
}
|
||||
|
||||
.appbar-nav {
|
||||
width: 38px;
|
||||
height: 38px;
|
||||
border-radius: 10px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
background: var(--color-surface-variant);
|
||||
border: 1px solid var(--divider);
|
||||
transition: all 0.15s ease;
|
||||
}
|
||||
|
||||
.appbar-nav:hover {
|
||||
background: #E2E8F0;
|
||||
transform: scale(0.98);
|
||||
}
|
||||
|
||||
.appbar-nav svg {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
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 rgba(57, 73, 171, 0.4);
|
||||
cursor: pointer;
|
||||
transition: transform 0.15s ease;
|
||||
}
|
||||
|
||||
.age-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
|
||||
|
||||
/* 主体分栏区 */
|
||||
.page-body {
|
||||
padding: 24px 28px;
|
||||
display: flex;
|
||||
gap: 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>
|
||||
@@ -0,0 +1,69 @@
|
||||
# 心率区间设置页面 — 原生落地图纸 implementation_plan
|
||||
|
||||
- **模块**:系统设置 — 心率区间设置 (`HeartRateZoneSettingsActivity`)
|
||||
- **依据**:同目录 `baseline_ui.html` + `DESIGN_SPEC.md`
|
||||
- **原始出厂截图**:`./Screenshot_20260817-135129.png`
|
||||
- **执行角色**:`@coder` (Android 工程师)
|
||||
|
||||
---
|
||||
|
||||
## 1. CSS → Android Token 映射字典
|
||||
|
||||
### 1.1 颜色语义映射
|
||||
|
||||
| HTML CSS 变量 | 取值 | Android 语义 Token / 资源 ID | 状态 / 说明 |
|
||||
| :--- | :--- | :--- | :--- |
|
||||
| `--color-z5` | `#FF3B30` | `@color/hr_zone_5` (`#FF3B30`) | ✅ 心率区间 5 专属红色 |
|
||||
| `--color-z4` | `#FF9500` | `@color/hr_zone_4` (`#FF9500`) | ✅ 心率区间 4 专属橙色 |
|
||||
| `--color-z3` | `#34C759` | `@color/hr_zone_3` (`#34C759`) | ✅ 心率区间 3 专属绿色 |
|
||||
| `--color-z2` | `#007AFF` | `@color/hr_zone_2` (`#007AFF`) | ✅ 心率区间 2 专属蓝色 |
|
||||
| `--color-z1` | `#8E8E93` | `@color/hr_zone_1` (`#8E8E93`) | ✅ 心率区间 1 专属灰色 |
|
||||
| `--color-primary` | `#3949AB` | `?attr/colorPrimary` | ✅ 已存在,年龄数值高亮 |
|
||||
| `--color-surface` | `#FFFFFF` | `?attr/colorSurface` | ✅ 已存在,外层容器背景 |
|
||||
| `--color-background` | `#F1F5F9` | `?attr/colorBackground` | ✅ 已存在,页面底色 |
|
||||
| `--hud-bg` | `#0B0F19` | `@color/hud_monitor_bg` (`#0B0F19`) | ✅ 新建,右侧监控台底色 |
|
||||
| `--hud-accent-cyan` | `#38BDF8` | `@color/hud_accent_cyan` (`#38BDF8`) | ✅ 新建,LED 最大心率读数 |
|
||||
| `--hud-accent-green` | `#10B981` | `@color/hud_accent_green` (`#10B981`) | ✅ 新建,激光示波线颜色 |
|
||||
|
||||
---
|
||||
|
||||
## 2. Android 落地代码清单与改动指南
|
||||
|
||||
### 2.1 涉及文件
|
||||
|
||||
1. **布局文件 (Layout)**
|
||||
- `app/src/main/res/layout/activity_heart_rate_zone_settings.xml`
|
||||
2. **逻辑类 (Activity)**
|
||||
- `app/src/main/java/com/umilab/eapmanage/team/settings/HeartRateZoneSettingsActivity.java`
|
||||
3. **自定义 View / 动画 (Views & Animators)**
|
||||
- `app/src/main/java/com/umilab/eapmanage/ui/view/EcgWaveformView.java` (激光心电动态示波 View)
|
||||
- `app/src/main/res/anim/anim_heart_pulse.xml` (拟真双跳动态心跳动画)
|
||||
- `app/src/main/res/drawable/bg_zone_card_gradient.xml` (5 个区间专属渐变 Drawable)
|
||||
|
||||
---
|
||||
|
||||
### 2.2 具体实施步骤
|
||||
|
||||
#### 步骤 1:重构 `activity_heart_rate_zone_settings.xml`
|
||||
- 顶部保留 AppBar(`Toolbar`,60dp 高)。
|
||||
- 顶部控制条:放置训练模式 `Spinner` 与年龄 `SeekBar`。
|
||||
- 下方主体采用横向双栏:
|
||||
- 左侧 `LinearLayout`(权重 1 或自适应):垂直排布 5 张 `MaterialCardView`(Z5 ~ Z1),每张卡片放置强度 Tag、主名称、副描述、动态心形 `ImageView`、心率范围与百分比说明。
|
||||
- 右侧 `CardView`(固定 350dp,底色 `#0B0F19`):放置 `EcgWaveformView`、最大心率动态读数、及 5 阶流光能量进度条。
|
||||
|
||||
#### 步骤 2:心跳脉冲与 ECG 示波动效
|
||||
- 为 5 张卡片中的 `iv_heart_icon` 绑定 `anim_heart_pulse.xml`,开启 `Animation.INFINITE`。
|
||||
- `EcgWaveformView` 使用 `Path` + `ValueAnimator` 绘制绿色激光扫描心电波。
|
||||
|
||||
#### 步骤 3:`HeartRateZoneSettingsActivity.java` 年龄动态联动
|
||||
- 监听 `sb_age.setOnSeekBarChangeListener`:
|
||||
- 拖动时动态计算 $MaxHR = 220 - age$;
|
||||
- 动态刷新 `tv_max_hr_hud` 与 5 个区间的 `tv_hr_range_z1 ~ z5` 文字。
|
||||
|
||||
---
|
||||
|
||||
## 3. 验收核验标准
|
||||
- [ ] 平板横屏下展示为居中双栏架构,左侧 5 张渐变卡片 + 右侧黑曜石 HUD 监控台。
|
||||
- [ ] 5 个心率区间专属色彩严格保持为红、橙、绿、蓝、灰,无任何色系偏差。
|
||||
- [ ] 所有字段、文案、模式选项与百分比完全对应原图 `Screenshot_20260817-135129.png`。
|
||||
- [ ] ❤️ 心形图标具备平滑拟真双跳心电脉冲,拖动年龄滑块实时联动全页数据。
|
||||
@@ -0,0 +1,58 @@
|
||||
---
|
||||
title: "APP界面优化 - 选择版型页面 (Edition Selection)"
|
||||
status: "TODO"
|
||||
created: "2026-08-17"
|
||||
level: 1
|
||||
---
|
||||
|
||||
# 任务目标
|
||||
对系统设置子页面【选择版型 / 版型切换】执行 UI 交互与视觉重构(**严格纯美化,禁止修改/增删字段**)。
|
||||
核心解决两大问题:
|
||||
1. **彻底修复描边逻辑颠倒 Bug**:原版中专业版硬编码为蓝框、自定义版硬编码为绿框,现统一纠正为:选中态 = Primary 蓝描边 + 浅蓝底,未选中态 = 中性细描边;
|
||||
2. **消弭宽屏单列失衡**:升级为 **Split Studio 宽屏沉浸双栏架构**(左侧 320dp 决策说明与当前生效版型联动面板 + 右侧卡片选择区),与【语言设置】形成全 App 统一的控制台体验。
|
||||
|
||||
---
|
||||
|
||||
## 🛠️ 开发依据(标准物料约束)
|
||||
> 🚨 **绝对约束**:请 `@coder` 在修改代码前,**必须**完整阅读本工作台目录下的全部物料,严禁自行发挥排版!
|
||||
>
|
||||
> **工作台路径**:`设置页面UI优化/版型切换/`
|
||||
> 1. `baseline_ui.html`:**[必读]** 终极 HTML/CSS 排版基准源代码(双栏布局、卡片选中态、状态联动、Token 声明)。
|
||||
> 2. `DESIGN_SPEC.md`:**[必读]** 视觉边界手册(双栏尺寸、卡片圆角、描边状态机、响应式断点)。
|
||||
> 3. `implementation_plan.md`:**[必读]** CSS → Android Token 映射字典与原生落地清单。
|
||||
>
|
||||
> **原始出厂截屏**(信息字段保底凭证,只读):
|
||||
> - `Screenshot_20260812_143347.png`
|
||||
|
||||
---
|
||||
|
||||
## 📂 涉及文件清单
|
||||
|
||||
**1. Layout**
|
||||
- `app/src/main/res/layout/activity_edition_selection.xml`
|
||||
|
||||
**2. Java / Activity**
|
||||
- `app/src/main/java/com/umilab/eapmanage/team/edition/EditionSelectionActivity.java`
|
||||
|
||||
**3. 资源与样式 (Resources & Drawables)**
|
||||
- `app/src/main/res/drawable/selector_edition_card_bg.xml`(新建)
|
||||
- `app/src/main/res/values/dimens.xml`(补充 `settings_sidebar_width_wide`)
|
||||
|
||||
---
|
||||
|
||||
## 📋 执行步骤清单
|
||||
1. **重构布局结构**:将 `activity_edition_selection.xml` 改为 AppBar + 居中 940dp 水平双栏容器(左侧 320dp 概览面板,右侧卡片选择区)。
|
||||
2. **两张版型卡片重构**:设置 16dp 圆角,左侧放置 RadioButton 与 4dp Active 竖向光条,右侧为版型名称与描述。
|
||||
3. **修复描边与背景状态机**:移除原硬编码蓝/绿描边,绑定 `selector_edition_card_bg.xml`,选中态展示 `colorPrimaryContainer` 浅蓝底 + `colorPrimary` 蓝描边。
|
||||
4. **左侧当前版型联动**:在 `EditionSelectionActivity.java` 中将点击事件与左侧 `tv_current_selected_edition` 文本实现实时刷新。
|
||||
5. **确认按钮**:底部设置浅绿确认按钮(`Widget.EAPManage.Button.Tonal` / `colorSecondaryContainer`),高度 48dp。
|
||||
6. **字段核验**:确保原图所有文案与红框柱状图图标 100% 完整保留。
|
||||
|
||||
---
|
||||
|
||||
## ✅ 验收标准
|
||||
- [ ] 平板横屏下展示为居中双栏控制台布局,大屏视觉平衡饱满。
|
||||
- [ ] 彻底纠正描边逻辑错误(选中为 Primary 蓝描边+浅蓝底,未选中为中性细描边,两张卡逻辑严格一致)。
|
||||
- [ ] 原版红框柱状图图标与所有文本字段 100% 对应原图,无任何遗漏。
|
||||
- [ ] 点击卡片时,选中背景、指示条、Radio 动画及左侧状态面板同步联动。
|
||||
- [ ] 所有颜色与尺寸严格使用 Android 语义 Token,无任何 XML 硬编码。
|
||||
@@ -0,0 +1,64 @@
|
||||
# 选择版型页面 — 视觉边界手册 DESIGN_SPEC
|
||||
|
||||
- **模块**:系统设置子页面 — 选择版型 / 版型切换 (`EditionSelectionActivity`)
|
||||
- **日期**:2026-08-17
|
||||
- **视觉基准**:同目录 `baseline_ui.html`(Split Studio 双栏专业控制台架构)
|
||||
- **原始出厂截图**(只读引用):`./Screenshot_20260812_143347.png`
|
||||
|
||||
> **铁律复述**:本次重构为纯 UI 视觉升级与描边逻辑修复。全量字段名、描述文本、Icon 图标及按钮交互全部 100% 保留,严禁篡改任何业务字段。
|
||||
|
||||
---
|
||||
|
||||
## 1. 宽屏平板布局架构 (Split Master-Detail 栅格规范)
|
||||
|
||||
### 1.1 现状缺陷剖析
|
||||
1. **描边逻辑颠倒 Bug**:原截图 `Screenshot_20260812_143347.png` 中,“专业版(未选中)”硬编码为蓝框,“自定义功能版(已选中)”硬编码为绿框,描边与卡片身份绑死,严重误导用户。
|
||||
2. **超宽拉伸失衡**:在 16:10 / 16:9 横屏平板下,单列卡片横跨整个屏幕,文字空旷,视觉焦点极度涣散。
|
||||
|
||||
### 1.2 目标架构规范 (Split Studio 双栏控制台)
|
||||
|
||||
| 规范项 | 参数值 | 说明 |
|
||||
| :--- | :--- | :--- |
|
||||
| **内容容器最大宽度** | **940dp** (`--content-max-width`) | 超出宽度时屏幕左右自动居中留白 (`margin: 0 auto`) |
|
||||
| **左侧概览面板 (Master)** | **固定 320dp** (`--sidebar-width`) | 包含原版红框 3 柱状图图标、大标题“选择版型”、说明副文本、当前选定版型状态卡片 |
|
||||
| **右侧卡片选择区 (Detail)** | **自适应 1fr** (~596dp) | 纵向排布两张版型卡片 + 底部确认按钮 |
|
||||
| **AppBar 顶部栏** | **通栏 60dp** (`--appbar-height`) | 标题 20sp/600,返回箭头 48dp 触控槽 |
|
||||
| **卡片圆角与间距** | **16dp 圆角** / **16dp 间距** | 1.5px 精细边框 + 微投影 Level 1 |
|
||||
| **响应式断点** | **768dp** | `< 768dp`(分屏/竖屏)时自动回落为单列流式堆叠 |
|
||||
|
||||
---
|
||||
|
||||
## 2. 字段与槽位核验清单 (100% 对齐原图)
|
||||
|
||||
| # | 区域 | 字段 / 元素标识 | 初始状态 / 规范 |
|
||||
| :-: | :--- | :--- | :--- |
|
||||
| 1 | **AppBar** | 返回箭头 `(←)` | 48dp 触控槽,点击返回上一级 |
|
||||
| 2 | **AppBar** | `选择版型` | 20sp / 600 字重 / `--text-primary` |
|
||||
| 3 | **Hero 引导** | 红框柱状图图标 | 52dp 尺寸,原版红框 `#FF5252`,内含 3 根垂直条 |
|
||||
| 4 | **Hero 引导** | `选择版型` | 21sp / 700 字重 / `--text-primary` |
|
||||
| 5 | **Hero 引导** | `请选择适合您使用场景的版型,后续可在设置中更改` | 13.5sp / `--text-secondary` / 1.6 行高 |
|
||||
| 6 | **卡片 1** | 单选 Radio 钮 | 未选中态(空心圆圈) |
|
||||
| 7 | **卡片 1** | `专业版` | 17.5sp / 700 字重 |
|
||||
| 8 | **卡片 1** | `为专业场馆管理员设计,布局固定专业化,核心数据字段默认全开,开箱即用` | 13.8sp / `--text-secondary` |
|
||||
| 9 | **卡片 2** | 单选 Radio 钮 | **默认选中态**(实心圆点) |
|
||||
| 10 | **卡片 2** | `自定义功能版` | 17.5sp / 700 字重 |
|
||||
| 11 | **卡片 2** | `高度可配置,所有高级功能开放,适合研究员和高级用户` | 13.8sp / `--text-secondary` |
|
||||
| 12 | **动作区** | `确定` 按钮 | 浅绿底 `--color-secondary-container` + 绿字 `--color-secondary`,48dp 高,12dp 圆角 |
|
||||
|
||||
---
|
||||
|
||||
## 3. 状态机与交互规范
|
||||
|
||||
### 3.1 卡片状态机 (彻底纠正原图颠倒逻辑)
|
||||
|
||||
| 状态 | 描边 (Border) | 背景色 | 左侧 Active 指示条 | RadioButton | 投影 |
|
||||
| :--- | :--- | :--- | :--- | :--- | :--- |
|
||||
| **未选中 (Unselected)** | `1.5dp --divider` (`#E2E8F0`) | `#FFFFFF` | `opacity: 0` | 2dp `#CBD5E1` 空心圈 | Level 1 |
|
||||
| **悬停 (Hover)** | `1.5dp #94A3B8` | `#F8FAFC` | `opacity: 0` | 不变 | Level 2 |
|
||||
| **选中态 (Selected)** | `1.5dp --color-primary` (`#3949AB`) | `--color-primary-container` (`#EEF2FF`) | `opacity: 1; scaleY: 1` (`#3949AB`) | 2dp `#3949AB` 圈 + 10dp 实心蓝点 | Level 2 + 蓝光 |
|
||||
| **点击 (Pressed)** | 保持 | 略微加深 4% | 保持 | 触发缩放涟漪 | Level 1 |
|
||||
|
||||
### 3.2 左右状态联动
|
||||
- 当用户点击右侧任一版型卡片时:
|
||||
1. 当前卡片获得选中态,另一张卡片恢复未选中态;
|
||||
2. 左侧侧边栏底部的「当前选定版型」文案即时联动刷新(如“自定义功能版” $\leftrightarrow$ “专业版”)。
|
||||
@@ -0,0 +1,456 @@
|
||||
<!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 {
|
||||
/* ── 核心主题色 ── */
|
||||
--color-primary: #3949AB;
|
||||
--color-primary-dark: #283593;
|
||||
--color-primary-container: #EEF2FF;
|
||||
--color-on-primary-container: #1A237E;
|
||||
--color-primary-hover: rgba(57, 73, 171, 0.04);
|
||||
--color-primary-glow: rgba(57, 73, 171, 0.12);
|
||||
|
||||
/* ── 辅助确认色 ── */
|
||||
--color-secondary: #00897B;
|
||||
--color-secondary-container: #E0F2F1;
|
||||
--color-on-secondary: #FFFFFF;
|
||||
--color-secondary-hover: #C8ECE7;
|
||||
|
||||
/* ── 表面与背景 ── */
|
||||
--color-surface: #FFFFFF;
|
||||
--color-surface-variant: #F8FAFC;
|
||||
--color-background: #F1F5F9;
|
||||
|
||||
/* ── 文本语义色 ── */
|
||||
--text-primary: #0F172A;
|
||||
--text-secondary: #64748B;
|
||||
--text-disabled: #CBD5E1;
|
||||
|
||||
/* ── 边框与分割线 ── */
|
||||
--divider: #E2E8F0;
|
||||
--outline: #CBD5E1;
|
||||
|
||||
/* ── 圆角阶梯 ── */
|
||||
--corner-sm: 8px;
|
||||
--corner-md: 12px;
|
||||
--corner-lg: 16px;
|
||||
--corner-pill: 999px;
|
||||
|
||||
/* ── 阴影阶梯 ── */
|
||||
--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.03);
|
||||
--shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.06);
|
||||
--shadow-lg: 0 16px 36px -8px rgba(15, 23, 42, 0.08);
|
||||
|
||||
/* ── 尺寸与栅格 ── */
|
||||
--content-max-width: 940px;
|
||||
--sidebar-width: 320px;
|
||||
--appbar-height: 60px;
|
||||
--touch-min: 48px;
|
||||
}
|
||||
|
||||
* { 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-primary);
|
||||
min-height: 100vh;
|
||||
padding: 24px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
/* 视口模拟器容器 */
|
||||
.screen-container {
|
||||
width: 100%;
|
||||
max-width: 1060px;
|
||||
margin: 0 auto;
|
||||
background: var(--color-surface);
|
||||
border-radius: 20px;
|
||||
border: 1px solid var(--divider);
|
||||
box-shadow: var(--shadow-lg);
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
/* AppBar 顶部导航栏 */
|
||||
.appbar {
|
||||
height: var(--appbar-height);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 24px;
|
||||
background: var(--color-surface);
|
||||
border-bottom: 1px solid var(--divider);
|
||||
}
|
||||
|
||||
.appbar-nav {
|
||||
width: var(--touch-min);
|
||||
height: var(--touch-min);
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: var(--corner-md);
|
||||
cursor: pointer;
|
||||
background: var(--color-surface-variant);
|
||||
border: 1px solid var(--divider);
|
||||
transition: all 0.15s ease;
|
||||
margin-left: -4px;
|
||||
}
|
||||
|
||||
.appbar-nav:hover {
|
||||
background: #E2E8F0;
|
||||
transform: scale(0.98);
|
||||
}
|
||||
|
||||
.appbar-nav svg {
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
fill: var(--text-primary);
|
||||
}
|
||||
|
||||
.appbar-title {
|
||||
font-size: 20px;
|
||||
font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
margin-left: 14px;
|
||||
letter-spacing: -0.2px;
|
||||
}
|
||||
|
||||
/* 双栏主体布局 */
|
||||
.page-body {
|
||||
padding: 32px 28px 40px;
|
||||
background: var(--color-background);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: stretch;
|
||||
}
|
||||
|
||||
.master-detail-layout {
|
||||
width: 100%;
|
||||
max-width: var(--content-max-width);
|
||||
display: flex;
|
||||
gap: 24px;
|
||||
align-items: stretch;
|
||||
}
|
||||
|
||||
/* 左侧概览面板 (Master Summary) */
|
||||
.summary-sidebar {
|
||||
flex: 0 0 var(--sidebar-width);
|
||||
background: var(--color-surface);
|
||||
border-radius: var(--corner-lg);
|
||||
border: 1px solid var(--divider);
|
||||
box-shadow: var(--shadow-sm);
|
||||
padding: 28px 24px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
/* 出厂原版粉红/红框柱状图图标 (高精细度还原) */
|
||||
.sidebar-icon-box {
|
||||
width: 52px;
|
||||
height: 52px;
|
||||
border: 2.5px solid #FF5252;
|
||||
border-radius: 12px;
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
justify-content: center;
|
||||
padding: 8px 6px;
|
||||
gap: 4px;
|
||||
background: #FFFFFF;
|
||||
margin-bottom: 20px;
|
||||
box-shadow: 0 4px 12px rgba(255, 82, 82, 0.12);
|
||||
}
|
||||
|
||||
.sidebar-icon-box .bar {
|
||||
width: 6px;
|
||||
background: #FF5252;
|
||||
border-radius: 2px 2px 0 0;
|
||||
}
|
||||
|
||||
.sidebar-icon-box .b1 { height: 14px; }
|
||||
.sidebar-icon-box .b2 { height: 26px; }
|
||||
.sidebar-icon-box .b3 { height: 18px; }
|
||||
|
||||
.sidebar-title {
|
||||
font-size: 21px;
|
||||
font-weight: 700;
|
||||
color: var(--text-primary);
|
||||
margin-bottom: 8px;
|
||||
letter-spacing: -0.01em;
|
||||
}
|
||||
|
||||
.sidebar-desc {
|
||||
font-size: 13.5px;
|
||||
line-height: 1.6;
|
||||
color: var(--text-secondary);
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
/* 当前选定状态联动卡片 */
|
||||
.status-pill-box {
|
||||
margin-top: auto;
|
||||
background: var(--color-surface-variant);
|
||||
border: 1px solid var(--divider);
|
||||
border-radius: var(--corner-md);
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
.status-label {
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
color: var(--text-secondary);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.status-value {
|
||||
font-size: 17px;
|
||||
font-weight: 700;
|
||||
color: var(--color-primary);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.status-dot {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
background: #10B981;
|
||||
box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
|
||||
}
|
||||
|
||||
/* 右侧选择区与操作 */
|
||||
.main-selection {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.edition-card {
|
||||
background: var(--color-surface);
|
||||
border: 1.5px solid var(--divider);
|
||||
border-radius: var(--corner-lg);
|
||||
padding: 22px 24px;
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 18px;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
box-shadow: var(--shadow-sm);
|
||||
position: relative;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.edition-card:hover {
|
||||
border-color: #94A3B8;
|
||||
background: #F8FAFC;
|
||||
transform: translateY(-1px);
|
||||
box-shadow: var(--shadow-md);
|
||||
}
|
||||
|
||||
.edition-card.is-selected {
|
||||
border-color: var(--color-primary);
|
||||
background: var(--color-primary-container);
|
||||
box-shadow: 0 4px 20px rgba(57, 73, 171, 0.12);
|
||||
}
|
||||
|
||||
/* 选中左侧指示光条 */
|
||||
.card-active-indicator {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 18px;
|
||||
bottom: 18px;
|
||||
width: 4px;
|
||||
border-radius: 0 4px 4px 0;
|
||||
background: var(--color-primary);
|
||||
opacity: 0;
|
||||
transform: scaleY(0.4);
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.edition-card.is-selected .card-active-indicator {
|
||||
opacity: 1;
|
||||
transform: scaleY(1);
|
||||
}
|
||||
|
||||
.radio-slot {
|
||||
margin-top: 2px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.radio-outer {
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
border-radius: 50%;
|
||||
border: 2px solid var(--outline);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: #FFFFFF;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.edition-card.is-selected .radio-outer {
|
||||
border-color: var(--color-primary);
|
||||
}
|
||||
|
||||
.radio-inner {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
border-radius: 50%;
|
||||
background: var(--color-primary);
|
||||
opacity: 0;
|
||||
transform: scale(0.3);
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.edition-card.is-selected .radio-inner {
|
||||
opacity: 1;
|
||||
transform: scale(1);
|
||||
}
|
||||
|
||||
.edition-info { flex: 1; }
|
||||
|
||||
.edition-name {
|
||||
font-size: 17.5px;
|
||||
font-weight: 700;
|
||||
color: var(--text-primary);
|
||||
margin-bottom: 6px;
|
||||
letter-spacing: -0.01em;
|
||||
}
|
||||
|
||||
.edition-card.is-selected .edition-name {
|
||||
color: var(--color-on-primary-container);
|
||||
}
|
||||
|
||||
.edition-desc {
|
||||
font-size: 13.8px;
|
||||
color: var(--text-secondary);
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.btn-confirm-wrap {
|
||||
margin-top: auto;
|
||||
padding-top: 8px;
|
||||
}
|
||||
|
||||
.btn-confirm {
|
||||
width: 100%;
|
||||
height: 48px;
|
||||
background: var(--color-secondary-container);
|
||||
color: var(--color-secondary);
|
||||
border: 1px solid rgba(0, 137, 123, 0.2);
|
||||
border-radius: var(--corner-md);
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: all 0.15s ease;
|
||||
letter-spacing: 0.05em;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.btn-confirm:hover {
|
||||
background: var(--color-secondary-hover);
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 4px 12px rgba(0, 137, 123, 0.15);
|
||||
}
|
||||
|
||||
.btn-confirm:active {
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.master-detail-layout {
|
||||
flex-direction: column;
|
||||
}
|
||||
.summary-sidebar {
|
||||
flex: none;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="screen-container">
|
||||
<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>
|
||||
|
||||
<main class="page-body">
|
||||
<div class="master-detail-layout">
|
||||
<!-- 左侧状态概览面板 -->
|
||||
<aside class="summary-sidebar">
|
||||
<div class="sidebar-icon-box">
|
||||
<div class="bar b1"></div>
|
||||
<div class="bar b2"></div>
|
||||
<div class="bar b3"></div>
|
||||
</div>
|
||||
<h2 class="sidebar-title">选择版型</h2>
|
||||
<p class="sidebar-desc">请选择适合您使用场景的版型,后续可在设置中更改</p>
|
||||
|
||||
<div class="status-pill-box">
|
||||
<div class="status-label">当前选定版型</div>
|
||||
<div class="status-value">
|
||||
<span class="status-dot"></span>
|
||||
<span id="currEditionLabel">自定义功能版</span>
|
||||
</div>
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
<!-- 右侧版型卡片选择区 -->
|
||||
<section class="main-selection" id="editionGroup">
|
||||
<div class="edition-card" onclick="selectEdition(this, '专业版')">
|
||||
<div class="card-active-indicator"></div>
|
||||
<div class="radio-slot"><div class="radio-outer"><div class="radio-inner"></div></div></div>
|
||||
<div class="edition-info">
|
||||
<h3 class="edition-name">专业版</h3>
|
||||
<p class="edition-desc">为专业场馆管理员设计,布局固定专业化,核心数据字段默认全开,开箱即用</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="edition-card is-selected" onclick="selectEdition(this, '自定义功能版')">
|
||||
<div class="card-active-indicator"></div>
|
||||
<div class="radio-slot"><div class="radio-outer"><div class="radio-inner"></div></div></div>
|
||||
<div class="edition-info">
|
||||
<h3 class="edition-name">自定义功能版</h3>
|
||||
<p class="edition-desc">高度可配置,所有高级功能开放,适合研究员和高级用户</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="btn-confirm-wrap">
|
||||
<button class="btn-confirm">确定</button>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function selectEdition(el, name) {
|
||||
document.querySelectorAll('.edition-card').forEach(c => c.classList.remove('is-selected'));
|
||||
el.classList.add('is-selected');
|
||||
document.getElementById('currEditionLabel').innerText = name;
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,81 @@
|
||||
# 选择版型页面 — 原生落地图纸 implementation_plan
|
||||
|
||||
- **模块**:系统设置 — 版型切换 (`EditionSelectionActivity`)
|
||||
- **依据**:同目录 `baseline_ui.html` + `DESIGN_SPEC.md`
|
||||
- **原始出厂截图**:`./Screenshot_20260812_143347.png`
|
||||
- **执行角色**:`@coder` (Android 工程师)
|
||||
|
||||
---
|
||||
|
||||
## 1. CSS → Android Token 映射字典
|
||||
|
||||
### 1.1 颜色语义映射
|
||||
|
||||
| HTML CSS 变量 | 取值 | Android 语义 Token / 资源 ID | 状态 / 说明 |
|
||||
| :--- | :--- | :--- | :--- |
|
||||
| `--color-primary` | `#3949AB` | `?attr/colorPrimary` (`@color/color_primary`) | ✅ 已存在,选中卡片描边与指示器 |
|
||||
| `--color-on-primary` | `#FFFFFF` | `?attr/colorOnPrimary` | ✅ 已存在 |
|
||||
| `--color-primary-container` | `#EEF2FF` | `?attr/colorPrimaryContainer` (`@color/color_primary_container`) | ✅ 已存在,选中卡片底色 |
|
||||
| `--color-on-primary-container` | `#1A237E` | `?attr/colorOnPrimaryContainer` | ✅ 已存在,选中卡片标题色 |
|
||||
| `--color-secondary` | `#00897B` | `?attr/colorSecondary` (`@color/color_secondary`) | ✅ 已存在,确认按钮文字 |
|
||||
| `--color-secondary-container` | `#E0F2F1` | `?attr/colorSecondaryContainer` (`@color/color_secondary_container`) | ✅ 已存在,确认按钮浅绿底色 |
|
||||
| `--color-surface` | `#FFFFFF` | `?attr/colorSurface` (`@color/color_surface`) | ✅ 已存在,卡片背景色 |
|
||||
| `--color-surface-variant` | `#F8FAFC` | `?attr/colorSurfaceVariant` | ✅ 已存在,侧边栏底色 |
|
||||
| `--color-background` | `#F1F5F9` | `?attr/colorBackground` (`@color/color_background`) | ✅ 已存在,页面底色 |
|
||||
| `--text-primary` | `#0F172A` | `@color/text_primary` | ✅ 已存在,主标题与主要文字 |
|
||||
| `--text-secondary` | `#64748B` | `@color/text_secondary` | ✅ 已存在,说明副文本 |
|
||||
| `--divider` | `#E2E8F0` | `@color/divider` | ✅ 已存在,分割线与浅描边 |
|
||||
| `--outline` | `#CBD5E1` | `@color/outline` | ✅ 已存在,单选外圈 |
|
||||
|
||||
### 1.2 尺寸与间距 Token 映射
|
||||
|
||||
| HTML CSS 变量 | 取值 | Android 推荐 Token | 规范落地建议 |
|
||||
| :--- | :--- | :--- | :--- |
|
||||
| `--content-max-width` | 940px | `@dimen/content_max_width_split` (940dp) | 宽屏双栏内容容器最大宽度 |
|
||||
| `--sidebar-width` | 320px | `@dimen/settings_sidebar_width_wide` (320dp) | 左侧状态概览面板固定宽度 |
|
||||
| `--appbar-height` | 60px | `@dimen/appbar_height` (60dp 或复用 56dp) | Toolbar 高度 |
|
||||
| `--corner-md` | 12px | `@dimen/corner_radius_md` (12dp) | 按钮与内部小组件圆角 |
|
||||
| `--corner-lg` | 16px | `@dimen/corner_radius_lg` (16dp) | 版型卡片与侧边面板圆角 |
|
||||
| `--spacing-md` | 16px | `@dimen/spacing_md` (16dp) | 卡片间距 |
|
||||
| `--spacing-lg` | 24px | `@dimen/spacing_xl` (24dp) | 双栏间距与安全边距 |
|
||||
|
||||
---
|
||||
|
||||
## 2. Android 落地代码清单与改动指南
|
||||
|
||||
### 2.1 涉及文件
|
||||
|
||||
1. **布局文件 (Layout)**
|
||||
- `app/src/main/res/layout/activity_edition_selection.xml`
|
||||
2. **逻辑类 (Activity)**
|
||||
- `app/src/main/java/com/umilab/eapmanage/team/edition/EditionSelectionActivity.java`
|
||||
3. **新增资源 (Drawable)**
|
||||
- `app/src/main/res/drawable/selector_edition_card_bg.xml` (卡片背景与描边选择器)
|
||||
- `app/src/main/res/drawable/ic_edition_histogram.xml` (原版红框柱状图矢量图标)
|
||||
|
||||
---
|
||||
|
||||
### 2.2 具体实施步骤
|
||||
|
||||
#### 步骤 1:重构 `activity_edition_selection.xml`
|
||||
- 将原有的单列居中布局重构为 **AppBar + 居中 940dp 水平双栏容器 (`LinearLayout horizontal`)**。
|
||||
- 左侧 `summary-sidebar`:放置原版红框柱状图图标、大标题“选择版型”、说明、及 `tv_current_selected_edition` 状态卡片。
|
||||
- 右侧 `main-selection`:放置两张 `MaterialCardView`(专业版与自定义功能版)以及底部 `btn_confirm` 确认按钮。
|
||||
|
||||
#### 步骤 2:修复卡片描边与选中状态
|
||||
- 移除原代码中与卡片身份死绑的硬编码边框颜色(彻底去除专业版硬编码蓝框、自定义版硬编码绿框)。
|
||||
- 卡片采用 `MaterialCardView` 统一绑定 `selector_edition_card_bg.xml` 或在 Activity 中动态设置 `strokeColor`/`cardBackgroundColor`:
|
||||
- 选中态:`strokeColor = ?attr/colorPrimary` (1.5dp), `cardBackgroundColor = ?attr/colorPrimaryContainer`
|
||||
- 未选中态:`strokeColor = ?attr/colorOutlineVariant` (1dp), `cardBackgroundColor = ?attr/colorSurface`
|
||||
|
||||
#### 步骤 3:`EditionSelectionActivity.java` 交互与联动
|
||||
- 点击卡片时,更新选中状态并刷新左侧 `tv_current_selected_edition` 文本。
|
||||
- 点击底部 `btn_confirm` 执行版型生效逻辑。
|
||||
|
||||
---
|
||||
|
||||
## 3. 验收核验标准
|
||||
- [ ] 平板横屏下展示为居中双栏控制台布局,视觉平衡饱满。
|
||||
- [ ] 彻底修复原图中一蓝一绿的描边逻辑错误(选中为 Primary 蓝描边+浅蓝底,未选中为中性浅描边)。
|
||||
- [ ] 原版红框柱状图图标、文案“选择版型”、“请选择适合您使用场景的版型,后续可在设置中更改”、“专业版”、“自定义功能版”、“确定”全量保留无遗漏。
|
||||
- [ ] 所有颜色与尺寸严格使用 Android 语义 Token。
|
||||
Reference in New Issue
Block a user