Files
EAP_Interface_html/.preview/edition_selection/style_4_bento_showcase.html
T

250 lines
6.2 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!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>