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>
|
||||
Reference in New Issue
Block a user