WeChatMsg_NY/newYear/template/template_1_bak.html
2025-01-22 17:35:47 +08:00

256 lines
6.9 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>新年祝福</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
font-family: "PingFang SC", "Helvetica Neue", "SF Pro Display", sans-serif;
background: #FDF6F0;
padding: 20px;
}
.card-container {
width: 85vw;
max-width: 500px;
height: calc((85vw * 4/3));
max-height: calc(500px * 4/3);
margin: auto;
background: rgba(255, 250, 245, 0.6);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
border-radius: 40px;
box-shadow:
0 8px 32px rgba(180, 80, 80, 0.08),
0 0 0 1px rgba(255, 255, 255, 0.6);
}
.content-wrapper {
width: 90%;
height: 95%;
background: rgba(255, 250, 245, 0.7);
border-radius: 30px;
padding: 5% 5% 4%;
box-shadow: 0 4px 24px rgba(180, 80, 80, 0.05);
display: flex;
flex-direction: column;
justify-content: space-between;
position: relative;
border: 1px solid rgba(255, 240, 230, 0.8);
z-index: 1;
}
.year-block {
text-align: left;
margin-bottom: 2%;
position: relative;
z-index: 2;
}
.year {
font-size: min(14vw, 120px);
font-weight: 900;
background: linear-gradient(135deg, #FF6B6B, #4ECDC4);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
line-height: 1;
}
.subtitle {
font-size: min(3vw, 24px);
color: #333;
margin-top: 2%;
letter-spacing: 0.4em;
}
.feature-container {
width: 100%;
height: 55%;
background: linear-gradient(145deg, #f8f8f8, #ffffff);
border-radius: 20px;
position: relative;
box-shadow:
0 4px 24px rgba(180, 80, 80, 0.05),
inset 0 0 0 1px rgba(255, 240, 230, 0.6);
margin: 4% 0;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
overflow: hidden;
}
.feature-text {
font-size: min(6vw, 48px);
font-weight: 300;
background: linear-gradient(135deg, #FF6B6B, #4ECDC4);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
line-height: 1.4;
text-align: center;
position: relative;
z-index: 2;
}
.feature-circle {
position: absolute;
border-radius: 50%;
background: linear-gradient(135deg, rgba(78,205,196,0.1), rgba(255,107,107,0.1));
}
.circle-1 {
width: 40%;
height: 40%;
top: 20%;
left: 10%;
}
.circle-2 {
width: 30%;
height: 30%;
bottom: 20%;
right: 10%;
}
.memory-text {
font-size: min(1.8vw, 18px);
line-height: 2.2;
color: #555;
letter-spacing: 0.1em;
margin: 3% 0;
position: relative;
z-index: 2;
}
.tags-container {
display: flex;
flex-wrap: wrap;
gap: 12px;
margin: 2% 0;
position: relative;
z-index: 2;
}
.tag {
font-size: min(1.6vw, 16px);
padding: 8px 25px;
background: linear-gradient(135deg, rgba(78,205,196,0.1), rgba(255,107,107,0.1));
color: #333;
border-radius: 25px;
letter-spacing: 0.15em;
transition: all 0.3s ease;
}
.signature-section {
position: relative;
margin-top: 2%;
display: flex;
justify-content: space-between;
align-items: flex-end;
z-index: 2;
}
.wishes {
font-size: min(1.4vw, 14px);
color: #666;
line-height: 2;
letter-spacing: 0.08em;
font-weight: 300;
max-width: 65%;
}
.signature {
font-size: min(2.5vw, 20px);
color: #333;
font-weight: 500;
letter-spacing: 2px;
}
.geometric-element {
position: absolute;
background: linear-gradient(135deg, #4ECDC4, #FF6B6B);
opacity: 0.1;
border-radius: 50%;
z-index: 0;
}
.geo-1 {
width: 35%;
height: 35%;
top: -20%;
right: -20%;
}
.geo-2 {
width: 30%;
height: 30%;
bottom: -15%;
left: -15%;
}
@media screen and (max-width: 768px) {
.card-container {
width: 90vw;
height: calc((90vw * 4/3));
}
.content-wrapper {
padding: 5%;
}
}
</style>
</head>
<body>
<div class="card-container">
<div class="content-wrapper">
<div class="geometric-element geo-1"></div>
<div class="geometric-element geo-2"></div>
<div class="year-block">
<div class="year">{year}</div>
<div class="subtitle">{greeting_text}</div>
</div>
<div class="feature-container">
<div class="feature-circle circle-1"></div>
<div class="feature-circle circle-2"></div>
<div class="feature-text">{idioms_text_1}</div>
<div class="feature-text">{idioms_text_2}</div>
</div>
<div class="memory-text">
{memory_text}
</div>
<div class="tags-container">
<span class="tag">{tag_1}</span>
<span class="tag">{tag_2}</span>
<span class="tag">{tag_3}</span>
<span class="tag">{tag_4}</span>
</div>
<div class="signature-section">
<div class="wishes">
{wishes_text}
</div>
<div class="signature">{signature}</div>
</div>
</div>
</div>
</body>
</html>