244 lines
6.3 KiB
HTML
244 lines
6.3 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>方案 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>
|