style: 优化主图设计,添加阴影倒影效果增强融合感

This commit is contained in:
12600k-rog-d4
2026-04-04 22:16:57 +08:00
parent cad20914cc
commit 0109d8e98a
7 changed files with 229 additions and 131 deletions

View File

@@ -14,7 +14,7 @@
width: 800px;
height: 800px;
font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
background: linear-gradient(180deg, #1a5f2a 0%, #2d8a3e 40%, #f8fff8 40%, #f8fff8 100%);
background: linear-gradient(180deg, #1a5f2a 0%, #2d8a3e 35%, #e8f5e9 35%, #fff 100%);
position: relative;
overflow: hidden;
}
@@ -22,37 +22,37 @@
width: 100%;
height: 100%;
position: relative;
padding: 40px;
padding: 30px;
}
/* 顶部标题区 */
.header {
text-align: center;
margin-bottom: 30px;
margin-bottom: 20px;
}
.title {
font-size: 44px;
font-size: 40px;
font-weight: bold;
color: #fff;
text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
text-shadow: 0 2px 10px rgba(0,0,0,0.3);
letter-spacing: 4px;
}
.subtitle {
font-size: 24px;
color: #90ee90;
margin-top: 10px;
font-size: 20px;
color: #c8e6c9;
margin-top: 8px;
}
/* 包装内容区 */
.package-section {
display: flex;
gap: 30px;
margin-top: 20px;
gap: 20px;
margin-top: 15px;
}
/* 左侧包装图 */
.package-image {
flex: 1;
background: #fff;
border-radius: 20px;
padding: 25px;
padding: 20px;
box-shadow: 0 10px 40px rgba(0,0,0,0.15);
display: flex;
flex-direction: column;
@@ -60,14 +60,15 @@
}
.package-img-container {
width: 100%;
height: 300px;
background: #f5f5f5;
height: 220px;
background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
border-radius: 15px;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
margin-bottom: 20px;
margin-bottom: 15px;
box-shadow: inset 0 2px 10px rgba(0,0,0,0.05);
}
.package-img-container img {
max-width: 90%;
@@ -75,7 +76,7 @@
object-fit: contain;
}
.package-label {
font-size: 24px;
font-size: 20px;
font-weight: bold;
color: #1a5f2a;
}
@@ -84,65 +85,80 @@
flex: 1;
background: #fff;
border-radius: 20px;
padding: 30px;
padding: 20px;
box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}
.checklist-title {
font-size: 28px;
font-size: 22px;
font-weight: bold;
color: #1a5f2a;
text-align: center;
margin-bottom: 25px;
padding-bottom: 15px;
border-bottom: 3px solid #90ee90;
margin-bottom: 15px;
padding-bottom: 10px;
border-bottom: 2px solid #90ee90;
}
.checklist-item {
display: flex;
align-items: center;
margin-bottom: 20px;
font-size: 22px;
margin-bottom: 12px;
font-size: 16px;
color: #333;
}
.check-icon {
width: 32px;
height: 32px;
background: #2d8a3e;
width: 24px;
height: 24px;
background: linear-gradient(135deg, #2d8a3e, #1a5f2a);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: #fff;
font-weight: bold;
margin-right: 15px;
font-size: 18px;
margin-right: 10px;
font-size: 14px;
flex-shrink: 0;
}
/* 底部保障 */
.guarantee {
position: absolute;
bottom: 40px;
left: 40px;
right: 40px;
bottom: 30px;
left: 30px;
right: 30px;
background: linear-gradient(90deg, #1a5f2a, #2d8a3e);
border-radius: 15px;
padding: 25px;
padding: 18px;
display: flex;
justify-content: space-around;
box-shadow: 0 5px 25px rgba(26,95,42,0.4);
}
.guarantee-item {
text-align: center;
color: #fff;
}
.guarantee-icon {
font-size: 36px;
margin-bottom: 8px;
font-size: 28px;
margin-bottom: 5px;
}
.guarantee-text {
font-size: 18px;
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;
}
</style>
</head>
<body>
<div class="container">
<!-- 波浪分隔 -->
<div class="wave"></div>
<!-- 顶部标题 -->
<div class="header">
<div class="title">专业包装 · 安全送达</div>
@@ -206,4 +222,4 @@
</div>
</div>
</body>
</html>
</html>