| 1 | <!DOCTYPE html> |
| 2 | <html lang="zh-CN"> |
| 3 | <head> |
| 4 | <meta charset="UTF-8"> |
| 5 | <meta name="template:media-width" content="1024"> |
| 6 | <meta name="template:media-height" content="1024"> |
| 7 | <meta name="viewport" content="width=1080, height=1920"> |
| 8 | <title>长文本 - 1080x1920</title> |
| 9 | <!-- Google Fonts - 中文字体 --> |
| 10 | <link rel="preconnect" href="https://fonts.googleapis.com"> |
| 11 | <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> |
| 12 | <link href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;700;900&family=Noto+Serif+SC:wght@400&display=swap" rel="stylesheet"> |
| 13 | <style> |
| 14 | |
| 15 | * { margin: 0; padding: 0; box-sizing: border-box; } |
| 16 | |
| 17 | html, body { width: 1080px; height: 1920px; overflow: hidden; } |
| 18 | |
| 19 | body { |
| 20 | font-family: 'Noto Sans SC', 'PingFang SC', 'Source Han Sans', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif; |
| 21 | color: #000; |
| 22 | position: relative; |
| 23 | background: #e8e8e8; |
| 24 | /* 背景模糊效果 */ |
| 25 | display: flex; |
| 26 | flex-direction: column; |
| 27 | align-items: center; |
| 28 | padding: 0 60px; |
| 29 | } |
| 30 | |
| 31 | .media-bg { |
| 32 | position: absolute; |
| 33 | inset: 0; |
| 34 | z-index: 0; |
| 35 | overflow: hidden; |
| 36 | } |
| 37 | |
| 38 | /* 背景遮罩层 */ |
| 39 | body::before { |
| 40 | content: ''; |
| 41 | position: absolute; |
| 42 | inset: 0; |
| 43 | background: rgba(220, 220, 220, 0.75); |
| 44 | backdrop-filter: blur(8px); |
| 45 | -webkit-backdrop-filter: blur(8px); |
| 46 | z-index: 0; |
| 47 | } |
| 48 | |
| 49 | /* 顶部标题 */ |
| 50 | .title { |
| 51 | position: relative; |
| 52 | z-index: 1; |
| 53 | font-size: 110px; |
| 54 | font-weight: 900; |
| 55 | line-height: 1.2; |
| 56 | font-family: 'Noto Sans SC', sans-serif; |
| 57 | color: #000; |
| 58 | letter-spacing: 0; |
| 59 | text-align: center; |
| 60 | margin-top: 80px; |
| 61 | margin-bottom: 100px; |
| 62 | /* 白色描边 */ |
| 63 | text-shadow: -2px -2px 0 #fff, |
| 64 | 2px -2px 0 #fff, |
| 65 | -2px 2px 0 #fff, |
| 66 | 2px 2px 0 #fff; |
| 67 | } |
| 68 | |
| 69 | /* 正文区域 */ |
| 70 | .content { |
| 71 | width: 100%; |
| 72 | position: relative; |
| 73 | z-index: 1; |
| 74 | font-size: 56px; |
| 75 | font-weight: 400; |
| 76 | line-height: 4; |
| 77 | font-family: 'Noto Sans SC', 'Noto Serif SC', serif; |
| 78 | color: #000; |
| 79 | text-align: center; |
| 80 | letter-spacing: 0.5px; |
| 81 | /* 白色描边 */ |
| 82 | text-shadow: -1px -1px 0 #fff, |
| 83 | 1px -1px 0 #fff, |
| 84 | -1px 1px 0 #fff, |
| 85 | 1px 1px 0 #fff; |
| 86 | /* 保留换行符 */ |
| 87 | white-space: pre-line; |
| 88 | } |
| 89 | |
| 90 | .content p { |
| 91 | margin-bottom: 0; |
| 92 | } |
| 93 | |
| 94 | .author { |
| 95 | position: absolute; |
| 96 | font-size: 24px; |
| 97 | font-family: 'Liu Jian Mao Cao', 'ZCOOL KuaiLe', cursive; |
| 98 | color: #333; |
| 99 | bottom: 20px; |
| 100 | left: 50%; |
| 101 | transform: translateX(-50%); |
| 102 | } |
| 103 | </style> |
| 104 | </head> |
| 105 | <body> |
| 106 | <div class="media-bg">{{media}}</div> |
| 107 | |
| 108 | <!-- 标题 --> |
| 109 | <div class="title">{{title}}</div> |
| 110 | |
| 111 | <!-- 正文 --> |
| 112 | <div class="content">{{text}}</div> |
| 113 | |
| 114 | <!-- 作者 --> |
| 115 | <div class="author">{{author=HITsz-TMG}}</div> |
| 116 | </body> |
| 117 | </html> |
| 118 |