image_blur_card.html 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  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;700;900&family=Liu+Jian+Mao+Cao&family=Ma+Shan+Zheng&display=swap" rel="stylesheet">
  13. <style>
  14. * { margin: 0; padding: 0; box-sizing: border-box; }
  15. html, body { width: 1080px; height: 1920px; overflow: hidden; }
  16. body {
  17. font-family: 'Noto Sans SC', 'PingFang SC', 'Source Han Sans', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
  18. color: #fff;
  19. position: relative;
  20. background: transparent; /* 移除黑色背景 */
  21. }
  22. /* 背景使用图片并做模糊处理,完全覆盖整个页面 */
  23. .bg {
  24. position: fixed;
  25. top: 0;
  26. left: 0;
  27. width: 100%;
  28. height: 100%;
  29. background-image: url("{{image}}");
  30. background-size: cover;
  31. background-position: center;
  32. filter: blur(24px) brightness(0.9);
  33. transform: scale(1.1);
  34. z-index: 0;
  35. }
  36. /* 顶部标题区 */
  37. .top {
  38. position: relative;
  39. z-index: 2;
  40. height: 26%;
  41. display: flex;
  42. align-items: center; /* 改为居中,避免被遮挡 */
  43. justify-content: center;
  44. padding: 60px 70px 40px; /* 减少顶部padding */
  45. text-align: center;
  46. }
  47. .title {
  48. max-width: 920px;
  49. font-size: 92px;
  50. font-weight: 400;
  51. line-height: 1.2;
  52. text-shadow: 0 6px 22px rgba(0,0,0,0.6),
  53. -2px -2px 0 #000,
  54. 2px -2px 0 #000,
  55. -2px 2px 0 #000,
  56. 2px 2px 0 #000;
  57. /* 使用 Ma Shan Zheng 毛笔字体 */
  58. font-family: 'Ma Shan Zheng', 'PingFang SC', 'Source Han Sans', 'Microsoft YaHei', cursive;
  59. letter-spacing: 4px;
  60. }
  61. /* 中部图片区(图片居中,填满宽度) */
  62. .image-center {
  63. position: absolute;
  64. top: 50%;
  65. left: 50%;
  66. transform: translate(-50%, -50%);
  67. width: 100%;
  68. height: 58%;
  69. z-index: 2;
  70. padding: 0 0; /* 无左右内边距 */
  71. }
  72. .image-box { position: relative; width: 100%; height: 100%; }
  73. .image-box img {
  74. width: 100%;
  75. height: 100%;
  76. object-fit: cover; /* 改为 cover 填满宽度 */
  77. display: block;
  78. }
  79. /* 底部字幕覆盖在图片底部 */
  80. .caption {
  81. position: absolute;
  82. left: 50%;
  83. bottom: 18px;
  84. transform: translateX(-50%);
  85. width: 96%; /* 稍微调整以适应全宽图片 */
  86. text-align: center;
  87. font-size: 48px;
  88. font-weight: 400;
  89. /* line-height: 1.2; */
  90. color: #fff;
  91. font-family: 'ArtisticFont', 'Noto Serif SC', 'Noto Sans SC', 'PingFang SC', serif;
  92. letter-spacing: 2px;
  93. text-shadow: 0 6px 22px rgba(0,0,0,0.6),
  94. -1px -1px 0 #000,
  95. 1px -1px 0 #000,
  96. -1px 1px 0 #000,
  97. 1px 1px 0 #000;
  98. }
  99. /* Footer */
  100. .footer {
  101. display: flex;
  102. align-items: center;
  103. justify-content: space-between;
  104. width: 100%;
  105. padding: 25px 20px 0 20px;
  106. position: absolute;
  107. bottom: 20px;
  108. color: #fff;
  109. text-shadow: -1px -1px 0 #000,
  110. 1px -1px 0 #000,
  111. -1px 1px 0 #000,
  112. 1px 1px 0 #000;
  113. }
  114. .author {
  115. display: flex;
  116. flex-direction: column;
  117. gap: 6px;
  118. letter-spacing: 2px;
  119. }
  120. .author-name {
  121. font-size: 30px;
  122. font-weight: 600;
  123. display: flex;
  124. align-items: center;
  125. gap: 10px;
  126. }
  127. .author-mark {
  128. width: 8px;
  129. height: 8px;
  130. /* border-radius: 50%; */
  131. /* background: rgba(149, 165, 166, 0.7); */
  132. }
  133. .author-desc {
  134. font-size: 22px;
  135. /* color: #5d6d7e; */
  136. line-height: 1.3;
  137. font-weight: 400;
  138. }
  139. .logo-section {
  140. display: flex;
  141. flex-direction: column;
  142. align-items: flex-end;
  143. gap: 8px;
  144. }
  145. .logo {
  146. font-size: 24px;
  147. font-weight: 500;
  148. }
  149. .logo-marks {
  150. display: flex;
  151. gap: 5px;
  152. }
  153. .logo-mark {
  154. width: 6px;
  155. height: 6px;
  156. border-radius: 50%;
  157. background: rgba(149, 165, 166, 0.45);
  158. }
  159. .logo-mark.active {
  160. background: rgba(149, 165, 166, 0.75);
  161. }
  162. </style>
  163. </head>
  164. <body>
  165. <div class="bg"></div>
  166. <div class="top">
  167. <div class="title">{{title}}</div>
  168. </div>
  169. <div class="image-center">
  170. <div class="image-box">
  171. <img src="{{image}}" alt="内容图片">
  172. <div class="caption">{{text}}</div>
  173. </div>
  174. </div>
  175. <div class="footer">
  176. <div class="author">
  177. <div class="author-name">
  178. <span class="author-mark"></span>
  179. <div class="logo">{{author=@Pixelle.AI}}</div>
  180. </div>
  181. <div class="author-desc">{{describe=Open Source Omnimodal AI Creative Agent}}</div>
  182. </div>
  183. <div class="logo-section">
  184. <div class="logo">{{brand=Pixelle-Video}}</div>
  185. <div class="logo-marks">
  186. <div class="logo-mark"></div>
  187. <div class="logo-mark active"></div>
  188. <div class="logo-mark"></div>
  189. <div class="logo-mark"></div>
  190. </div>
  191. </div>
  192. </div>
  193. </body>
  194. </html>