250 lines
6.4 KiB
HTML
250 lines
6.4 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>方案 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>
|