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: #fff;
background: linear-gradient(180deg, #f0f8f0 0%, #e0f0e0 50%, #d0e8d0 100%);
position: relative;
overflow: hidden;
}
@@ -22,68 +22,84 @@
width: 100%;
height: 100%;
position: relative;
padding: 25px;
}
/* 顶部绿色条 */
.top-bar {
height: 120px;
background: linear-gradient(90deg, #1a5f2a, #2d8a3e);
height: 90px;
background: linear-gradient(90deg, #1a5f2a, #2d8a3e, #1a5f2a);
display: flex;
align-items: center;
justify-content: center;
border-radius: 20px;
box-shadow: 0 5px 20px rgba(26,95,42,0.3);
}
.top-title {
font-size: 40px;
font-size: 36px;
color: #fff;
font-weight: bold;
letter-spacing: 4px;
text-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
/* 中间内容区 */
.content {
display: flex;
height: 560px;
padding: 30px;
gap: 30px;
gap: 20px;
height: calc(100% - 130px);
margin-top: 15px;
}
/* 左侧图片区 */
.image-section {
flex: 1.2;
flex: 1.3;
display: flex;
flex-direction: column;
gap: 20px;
gap: 12px;
}
.main-image {
flex: 1;
background: #f5f5f5;
border-radius: 15px;
background: #fff;
border-radius: 20px;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
border: 3px solid #e0e0e0;
box-shadow: 0 8px 30px rgba(0,0,0,0.1);
border: 3px solid #fff;
position: relative;
}
.main-image::after {
content: '';
position: absolute;
bottom: 0;
left: 10%;
right: 10%;
height: 20px;
background: radial-gradient(ellipse, rgba(0,0,0,0.15), transparent);
}
.main-image img {
max-width: 90%;
max-height: 90%;
max-width: 95%;
max-height: 95%;
object-fit: contain;
}
.sub-images {
display: flex;
gap: 15px;
height: 120px;
gap: 10px;
height: 100px;
}
.sub-image {
flex: 1;
background: #f5f5f5;
border-radius: 10px;
background: #fff;
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
border: 2px solid #e0e0e0;
box-shadow: 0 4px 15px rgba(0,0,0,0.08);
border: 2px solid #fff;
}
.sub-image img {
max-width: 85%;
max-height: 85%;
max-width: 90%;
max-height: 90%;
object-fit: contain;
}
/* 右侧卖点区 */
@@ -91,51 +107,69 @@
flex: 1;
display: flex;
flex-direction: column;
gap: 20px;
gap: 12px;
}
.feature-box {
background: linear-gradient(135deg, #f8fff8, #e8f5e9);
background: #fff;
border-radius: 15px;
padding: 25px;
border-left: 5px solid #2d8a3e;
padding: 18px;
box-shadow: 0 5px 20px rgba(0,0,0,0.08);
border-left: 4px solid #2d8a3e;
position: relative;
overflow: hidden;
}
.feature-box::before {
content: '';
position: absolute;
top: 0;
right: 0;
width: 60px;
height: 60px;
background: linear-gradient(135deg, transparent 50%, rgba(45,138,62,0.05) 50%);
}
.feature-icon {
width: 50px;
height: 50px;
background: #2d8a3e;
border-radius: 50%;
width: 36px;
height: 36px;
background: linear-gradient(135deg, #2d8a3e, #1a5f2a);
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
color: #fff;
font-size: 24px;
font-size: 18px;
font-weight: bold;
margin-bottom: 12px;
}
.feature-title {
font-size: 22px;
font-weight: bold;
color: #1a5f2a;
margin-bottom: 8px;
}
.feature-title {
font-size: 18px;
font-weight: bold;
color: #1a5f2a;
margin-bottom: 5px;
}
.feature-desc {
font-size: 16px;
color: #555;
line-height: 1.6;
font-size: 13px;
color: #666;
line-height: 1.5;
}
/* 底部 */
.bottom-bar {
height: 120px;
background: #f8f8f8;
position: absolute;
bottom: 25px;
left: 25px;
right: 25px;
height: 60px;
background: linear-gradient(90deg, #1a5f2a, #2d8a3e);
border-radius: 15px;
display: flex;
align-items: center;
justify-content: center;
border-top: 3px solid #2d8a3e;
box-shadow: 0 5px 20px rgba(26,95,42,0.3);
}
.bottom-text {
font-size: 28px;
color: #1a5f2a;
font-size: 22px;
color: #fff;
font-weight: bold;
letter-spacing: 2px;
}
</style>
</head>
@@ -192,4 +226,4 @@
</div>
</div>
</body>
</html>
</html>