first init
Vercel Deploy / deploy (push) Successful in 2m42s

This commit is contained in:
2026-03-25 19:59:31 +08:00
Unverified
commit b98c6da3a6
5 changed files with 166 additions and 0 deletions
+40
View File
@@ -0,0 +1,40 @@
/* style-modern.css */
body {
background-color: #f8f9fa;
font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
padding: 40px;
line-height: 1.8;
}
.letter-container {
max-width: 800px;
margin: 0 auto;
background: white;
padding: 60px 80px;
box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.salutation {
font-size: 1.2rem;
margin-bottom: 25px;
}
.content p {
text-indent: 2em;
margin-bottom: 15px;
}
.wish-prefix {
text-indent: 2em;
margin-bottom: 0;
}
.wish-suffix {
font-weight: bold;
margin-top: 5px;
}
.footer {
text-align: right;
margin-top: 60px;
}
+44
View File
@@ -0,0 +1,44 @@
/* style-traditional.css */
body {
background-color: #e8e3d3;
display: flex;
justify-content: center;
padding: 40px;
}
.letter-container {
background-color: #fdfaf2;
padding: 40px;
border: 1px solid #d4c4a8;
/* 核心:竖排文字 */
writing-mode: vertical-rl;
text-orientation: mixed;
height: 600px;
font-family: "Noto Serif SC", "STSong", serif;
}
.salutation {
margin-left: 20px; /* 竖排时的间距 */
font-size: 1.4rem;
}
.content p {
margin-left: 15px;
/* 竖排时首行缩进 */
padding-top: 2em;
}
.wish-prefix {
padding-top: 2em;
}
.wish-suffix {
font-weight: bold;
}
.footer {
margin-right: 40px;
display: flex;
flex-direction: column;
justify-content: flex-end;
}
+37
View File
@@ -0,0 +1,37 @@
/* style-vintage.css */
body {
background-color: #cfd8dc;
padding: 20px;
}
.letter-container {
max-width: 700px;
margin: 0 auto;
background: #fff;
/* 模拟红格线 */
background-image: linear-gradient(#f1f1f1 1px, transparent 1px),
linear-gradient(90deg, rgba(255,0,0,0.1) 1px, transparent 1px);
background-size: 100% 2.5em; /* 行高需与此匹配 */
line-height: 2.5em;
padding: 50px;
border: 2px solid #b71c1c;
font-family: "SimSun", "STSong", serif;
}
.salutation {
border-bottom: 2px solid #b71c1c; /* 模拟标题线 */
display: inline-block;
}
.content p {
text-indent: 2em;
}
.wish-suffix {
text-decoration: underline;
}
.footer {
text-align: right;
color: #b71c1c; /* 怀旧红色字体 */
}