| 1 | <!DOCTYPE html> |
| 2 | <html lang="zh-CN"> |
| 3 | <head> |
| 4 | <meta charset="UTF-8"> |
| 5 | <meta name="viewport" content="width=1080, height=1920"> |
| 6 | <title>10个不花钱的养生习惯</title> |
| 7 | <style> |
| 8 | * { |
| 9 | margin: 0; |
| 10 | padding: 0; |
| 11 | box-sizing: border-box; |
| 12 | } |
| 13 | |
| 14 | html, body { |
| 15 | width: 1080px; |
| 16 | height: 1920px; |
| 17 | overflow: hidden; |
| 18 | } |
| 19 | |
| 20 | body { |
| 21 | font-family: 'Microsoft YaHei', 'PingFang SC', 'Noto Sans SC', sans-serif; |
| 22 | position: relative; |
| 23 | background: linear-gradient(to bottom, #ffd700 0%, #ffc800 100%); |
| 24 | } |
| 25 | |
| 26 | .header { |
| 27 | width: 100%; |
| 28 | height: 400px; |
| 29 | display: flex; |
| 30 | justify-content: center; |
| 31 | align-items: center; |
| 32 | } |
| 33 | |
| 34 | .title { |
| 35 | width: 100%; |
| 36 | font-size: 96px; |
| 37 | font-weight: 900; |
| 38 | font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", |
| 39 | "Source Han Sans SC", "Heiti SC", sans-serif; |
| 40 | color: #000; |
| 41 | line-height: 1.1; |
| 42 | letter-spacing: 4px; |
| 43 | text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5); |
| 44 | text-align: center; |
| 45 | text-shadow: -2px -2px 0 #fff, |
| 46 | 2px -2px 0 #fff, |
| 47 | -2px 2px 0 #fff, |
| 48 | 2px 2px 0 #fff; |
| 49 | } |
| 50 | |
| 51 | /* 内容区域 */ |
| 52 | .content { |
| 53 | position: relative; |
| 54 | width: 100%; |
| 55 | height: 1540px; |
| 56 | display: flex; |
| 57 | justify-content: center; |
| 58 | align-items: flex-end; |
| 59 | background-image: url("{{image}}"); |
| 60 | background-size: cover; |
| 61 | background-position: center; |
| 62 | } |
| 63 | |
| 64 | .content::before { |
| 65 | content: ''; |
| 66 | position: absolute; |
| 67 | inset: 0; |
| 68 | background: rgba(232, 229, 224, 0.85); |
| 69 | backdrop-filter: blur(5px); |
| 70 | -webkit-backdrop-filter: blur(5px); |
| 71 | z-index: 0; |
| 72 | } |
| 73 | |
| 74 | .text { |
| 75 | position: absolute; |
| 76 | width: 100%; |
| 77 | bottom: 300px; |
| 78 | font-size: 50px; |
| 79 | font-weight: 600; |
| 80 | color: #492615; |
| 81 | line-height: 1.5; |
| 82 | font-family: "SimSun", "FangSong", "Noto Serif SC", |
| 83 | "STSong", "Songti SC", serif; |
| 84 | text-shadow: -1px -1px 0 #fff, |
| 85 | 1px -1px 0 #fff, |
| 86 | -1px 1px 0 #fff, |
| 87 | 1px 1px 0 #fff; |
| 88 | text-align: center; |
| 89 | padding: 0 50px; |
| 90 | } |
| 91 | |
| 92 | .signature { |
| 93 | position: absolute; |
| 94 | font-size: 24px; |
| 95 | font-family: 'Liu Jian Mao Cao', 'ZCOOL KuaiLe', cursive; |
| 96 | color: #333; |
| 97 | bottom: 20px; |
| 98 | left: 50%; |
| 99 | transform: translateX(-50%); |
| 100 | } |
| 101 | </style> |
| 102 | </head> |
| 103 | <body> |
| 104 | <div class="header"> |
| 105 | <div class="title">{{title}}</div> |
| 106 | </div> |
| 107 | <div class="content"> |
| 108 | </div> |
| 109 | <div class="text">{{text}}</div> |
| 110 | <!-- 署名 --> |
| 111 | <div class="signature">{{signature=@Pixelle.AI}}</div> |
| 112 | </body> |
| 113 | </html> |