fix: 优化主图布局和内容显示
- 主图1: 正面图放大,周围留白统一 - 主图2: 改为竖向排列,标题改为可选CPU和可选内存硬盘 - 主图3: 大图周围留白减少,右侧卖点填充满 - 主图4: 竖向排列,修改文案(包邮、详细教程、标配等) - 主图5: 调整底部间距,避免重叠
This commit is contained in:
@@ -22,53 +22,57 @@
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: relative;
|
||||
padding: 30px;
|
||||
padding: 25px 30px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
/* 顶部标题区 */
|
||||
.header {
|
||||
text-align: center;
|
||||
margin-bottom: 20px;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
.title {
|
||||
font-size: 40px;
|
||||
font-size: 36px;
|
||||
font-weight: bold;
|
||||
color: #fff;
|
||||
text-shadow: 0 2px 10px rgba(0,0,0,0.3);
|
||||
letter-spacing: 4px;
|
||||
}
|
||||
.subtitle {
|
||||
font-size: 20px;
|
||||
font-size: 18px;
|
||||
color: #c8e6c9;
|
||||
margin-top: 8px;
|
||||
margin-top: 5px;
|
||||
}
|
||||
/* 包装内容区 */
|
||||
/* 包装内容区 - 竖向排列 */
|
||||
.package-section {
|
||||
display: flex;
|
||||
gap: 20px;
|
||||
margin-top: 15px;
|
||||
}
|
||||
/* 左侧包装图 */
|
||||
.package-image {
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
flex: 1;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-bottom: 65px;
|
||||
}
|
||||
/* 包装图 */
|
||||
.package-image {
|
||||
width: 100%;
|
||||
background: #fff;
|
||||
border-radius: 20px;
|
||||
padding: 20px;
|
||||
border-radius: 12px;
|
||||
padding: 12px;
|
||||
box-shadow: 0 10px 40px rgba(0,0,0,0.15);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 15px;
|
||||
}
|
||||
.package-img-container {
|
||||
width: 100%;
|
||||
height: 220px;
|
||||
width: 180px;
|
||||
height: 150px;
|
||||
background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
|
||||
border-radius: 15px;
|
||||
border-radius: 10px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
overflow: hidden;
|
||||
margin-bottom: 15px;
|
||||
box-shadow: inset 0 2px 10px rgba(0,0,0,0.05);
|
||||
}
|
||||
.package-img-container img {
|
||||
max-width: 90%;
|
||||
@@ -76,37 +80,42 @@
|
||||
object-fit: contain;
|
||||
}
|
||||
.package-label {
|
||||
font-size: 20px;
|
||||
font-size: 18px;
|
||||
font-weight: bold;
|
||||
color: #1a5f2a;
|
||||
}
|
||||
/* 右侧清单 */
|
||||
/* 配件清单 */
|
||||
.checklist {
|
||||
flex: 1;
|
||||
width: 100%;
|
||||
background: #fff;
|
||||
border-radius: 20px;
|
||||
padding: 20px;
|
||||
border-radius: 12px;
|
||||
padding: 12px 15px;
|
||||
box-shadow: 0 10px 40px rgba(0,0,0,0.15);
|
||||
}
|
||||
.checklist-title {
|
||||
font-size: 22px;
|
||||
font-size: 18px;
|
||||
font-weight: bold;
|
||||
color: #1a5f2a;
|
||||
text-align: center;
|
||||
margin-bottom: 15px;
|
||||
padding-bottom: 10px;
|
||||
margin-bottom: 10px;
|
||||
padding-bottom: 6px;
|
||||
border-bottom: 2px solid #90ee90;
|
||||
}
|
||||
.checklist-items {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
}
|
||||
.checklist-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 12px;
|
||||
font-size: 16px;
|
||||
font-size: 14px;
|
||||
color: #333;
|
||||
width: calc(50% - 4px);
|
||||
}
|
||||
.check-icon {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
background: linear-gradient(135deg, #2d8a3e, #1a5f2a);
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
@@ -114,19 +123,19 @@
|
||||
justify-content: center;
|
||||
color: #fff;
|
||||
font-weight: bold;
|
||||
margin-right: 10px;
|
||||
font-size: 14px;
|
||||
margin-right: 6px;
|
||||
font-size: 11px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
/* 底部保障 */
|
||||
.guarantee {
|
||||
position: absolute;
|
||||
bottom: 30px;
|
||||
bottom: 25px;
|
||||
left: 30px;
|
||||
right: 30px;
|
||||
background: linear-gradient(90deg, #1a5f2a, #2d8a3e);
|
||||
border-radius: 15px;
|
||||
padding: 18px;
|
||||
border-radius: 12px;
|
||||
padding: 15px;
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
box-shadow: 0 5px 25px rgba(26,95,42,0.4);
|
||||
@@ -136,36 +145,23 @@
|
||||
color: #fff;
|
||||
}
|
||||
.guarantee-icon {
|
||||
font-size: 28px;
|
||||
margin-bottom: 5px;
|
||||
font-size: 24px;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
.guarantee-text {
|
||||
font-size: 14px;
|
||||
}
|
||||
/* 装饰 */
|
||||
.wave {
|
||||
position: absolute;
|
||||
top: 28%;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 20px;
|
||||
background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath fill='%23e8f5e9' d='M0,60 C150,120 350,0 600,60 C850,120 1050,0 1200,60 L1200,120 L0,120 Z'/%3E%3C/svg%3E");
|
||||
background-size: cover;
|
||||
font-size: 12px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<!-- 波浪分隔 -->
|
||||
<div class="wave"></div>
|
||||
|
||||
<!-- 顶部标题 -->
|
||||
<div class="header">
|
||||
<div class="title">专业包装 · 安全送达</div>
|
||||
<div class="subtitle">配件齐全 · 安装无忧</div>
|
||||
</div>
|
||||
|
||||
<!-- 包装内容 -->
|
||||
<!-- 包装内容 - 竖向排列 -->
|
||||
<div class="package-section">
|
||||
<!-- 包装图 -->
|
||||
<div class="package-image">
|
||||
@@ -178,25 +174,31 @@
|
||||
<!-- 配件清单 -->
|
||||
<div class="checklist">
|
||||
<div class="checklist-title">包装清单</div>
|
||||
<div class="checklist-item">
|
||||
<div class="check-icon">✓</div>
|
||||
<span>亚克力机箱主体</span>
|
||||
</div>
|
||||
<div class="checklist-item">
|
||||
<div class="check-icon">✓</div>
|
||||
<span>安装螺丝包</span>
|
||||
</div>
|
||||
<div class="checklist-item">
|
||||
<div class="check-icon">✓</div>
|
||||
<span>SATA数据线</span>
|
||||
</div>
|
||||
<div class="checklist-item">
|
||||
<div class="check-icon">✓</div>
|
||||
<span>电源适配器(选配)</span>
|
||||
</div>
|
||||
<div class="checklist-item">
|
||||
<div class="check-icon">✓</div>
|
||||
<span>安装说明书+视频教程</span>
|
||||
<div class="checklist-items">
|
||||
<div class="checklist-item">
|
||||
<div class="check-icon">✓</div>
|
||||
<span>亚克力机箱主体</span>
|
||||
</div>
|
||||
<div class="checklist-item">
|
||||
<div class="check-icon">✓</div>
|
||||
<span>安装螺丝包</span>
|
||||
</div>
|
||||
<div class="checklist-item">
|
||||
<div class="check-icon">✓</div>
|
||||
<span>硬盘电源线、数据线</span>
|
||||
</div>
|
||||
<div class="checklist-item">
|
||||
<div class="check-icon">✓</div>
|
||||
<span>电源适配器(标配)</span>
|
||||
</div>
|
||||
<div class="checklist-item">
|
||||
<div class="check-icon">✓</div>
|
||||
<span>安装说明书</span>
|
||||
</div>
|
||||
<div class="checklist-item">
|
||||
<div class="check-icon">✓</div>
|
||||
<span>详细教程</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -205,15 +207,15 @@
|
||||
<div class="guarantee">
|
||||
<div class="guarantee-item">
|
||||
<div class="guarantee-icon">🚚</div>
|
||||
<div class="guarantee-text">顺丰包邮</div>
|
||||
<div class="guarantee-text">包邮</div>
|
||||
</div>
|
||||
<div class="guarantee-item">
|
||||
<div class="guarantee-icon">🛡️</div>
|
||||
<div class="guarantee-text">破损包赔</div>
|
||||
</div>
|
||||
<div class="guarantee-item">
|
||||
<div class="guarantee-icon">📞</div>
|
||||
<div class="guarantee-text">技术支持</div>
|
||||
<div class="guarantee-icon">📖</div>
|
||||
<div class="guarantee-text">详细教程</div>
|
||||
</div>
|
||||
<div class="guarantee-item">
|
||||
<div class="guarantee-icon">↩️</div>
|
||||
|
||||
Reference in New Issue
Block a user