Files
yu-zhi-ran/automation/templates/xiaohongshu.html
T

232 lines
6.4 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}} - {{DATE}} - 小红书笔记</title>
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
line-height: 1.6;
max-width: 100%;
margin: 0;
padding: 0;
color: #333;
background-color: #fff;
-webkit-font-smoothing: antialiased;
}
.container {
max-width: 640px;
margin: 0 auto;
padding: 20px 16px 40px;
}
.header {
margin-bottom: 24px;
}
.title {
font-size: 1.4em;
font-weight: 600;
margin: 0 0 12px;
color: #222;
line-height: 1.4;
}
.date-tag {
display: inline-block;
padding: 4px 12px;
background-color: #ffe7e7;
color: #ff2442;
border-radius: 12px;
font-size: 0.85em;
margin-bottom: 16px;
}
.image-gallery {
margin: 20px 0;
}
.main-image {
width: 100%;
height: auto;
border-radius: 12px;
margin-bottom: 12px;
}
.thumbnail-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 8px;
margin-top: 12px;
}
.thumbnail {
width: 100%;
height: 120px;
object-fit: cover;
border-radius: 8px;
}
.content {
margin: 24px 0;
}
.section {
margin-bottom: 24px;
}
.section-title {
font-size: 1.2em;
font-weight: 600;
margin: 0 0 12px;
color: #333;
padding-left: 8px;
border-left: 4px solid #ff2442;
}
.section-content {
color: #555;
margin: 12px 0;
line-height: 1.6;
}
.bullet-point {
margin: 10px 0;
padding-left: 20px;
position: relative;
}
.bullet-point:before {
content: "•";
position: absolute;
left: 0;
color: #ff2442;
font-size: 1.2em;
}
.highlight-box {
background: linear-gradient(135deg, #fff5f5 0%, #ffe7e7 100%);
padding: 16px;
border-radius: 10px;
margin: 16px 0;
border: 1px solid #ffdada;
}
.action-list {
background: #f0fff4;
padding: 16px;
border-radius: 10px;
margin: 16px 0;
border: 1px solid #d1f7d1;
}
.action-item {
margin: 10px 0;
padding-left: toldpx;
position: relative;
}
.action-item:before {
content: "✓";
position: absolute;
left: 0;
color: #4CAF50;
font-weight: bold;
}
.hashtags {
margin: 28px 0 20px;
padding: 16px 0;
border-top: 1px solid #f0f0f0;
border-bottom: 1px solid #f0f0f0;
}
.hashtag {
display: inline-block;
margin: 4px 6px;
color: #ff2442;
font-weight: 500;
font-size: 0.95em;
}
.footer {
text-align: center;
color: #888;
font-size: 0.85em;
margin-top: 32px;
padding-top: 20px;
border-top: 1px solid #f0f0f0;
}
.emoji {
font-size: 1.1em;
margin-right: 4px;
}
.profile {
display: flex;
align-items: center;
margin-bottom: 16px;
}
.avatar {
width: 40px;
height: 40px;
border-radius: 50%;
margin-right: 12px;
background-color: #f0f0f0;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
color: #ff2442;
}
.profile-info {
flex: 1;
}
.username {
font-weight: 600;
color: #333;
margin-bottom: 2px;
}
.bio {
font-size: 0.9em;
color: #666;
}
@media (max-width: 480px) {
.container {
padding: 16px 12px 32px;
}
.title {
font-size: 1.3em;
}
.thumbnail-grid {
grid-template-columns: repeat(2, 1fr);
}
.thumbnail {
height: 100px;
}
}
</style>
</head>
<body>
<div class="container">
<div class="header">
<div class="profile">
<div class="avatar"></div>
<div class="profile-info">
<div class="username">宇之然 | 可持续生活指南</div>
<div class="bio">每天分享一个可执行的可持续行动 ✨</div>
</div>
</div>
<div class="title">{{TITLE}}</div>
<div class="date-tag">📅 {{DATE}} 更新</div>
</div>
<div class="image-gallery">
<img src="" alt="封面图" class="main-image">
<div class="thumbnail-grid">
<img src="" alt="图1" class="thumbnail">
<img src="" alt="图2" class="thumbnail">
<img src="" alt="图3" class="thumbnail">
<img src="" alt="图4" class="thumbnail">
<img src="" alt="图5" class="thumbnail">
<img src="" alt="图6" class="thumbnail">
</div>
</div>
<div class="content">
<!-- CONTENT -->
</div>
<div class="hashtags">
<!-- HASHTAGS -->
</div>
<div class="footer">
<p>💚 本文由宇之然AI助手生成,基于全球可持续性趋势研究</p>
<p>📊 数据经过交叉验证 | 🌍 每天更新,让可持续生活更简单</p>
<p>💬 欢迎在评论区分享你的实践经验和改进建议</p>
</div>
</div>
</body>
</html>