video_healing.html 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  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
  13. href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600&family=Ma+Shan+Zheng&family=ZCOOL+KuaiLe&display=swap"
  14. rel="stylesheet">
  15. <style>
  16. * {
  17. margin: 0;
  18. padding: 0;
  19. box-sizing: border-box;
  20. }
  21. html,
  22. body {
  23. width: 1080px;
  24. height: 1920px;
  25. overflow: hidden;
  26. }
  27. body {
  28. font-family: 'Noto Serif SC', serif;
  29. color: #2a2a2a;
  30. position: relative;
  31. background: transparent;
  32. display: flex;
  33. flex-direction: column;
  34. }
  35. /* 背景遮罩层 */
  36. /* body::before {
  37. content: '';
  38. position: absolute;
  39. inset: 0;
  40. background: rgba(232, 229, 224, 0.85);
  41. backdrop-filter: blur(5px);
  42. -webkit-backdrop-filter: blur(5x);
  43. z-index: 0;
  44. } */
  45. /* Video overlay - 相对于main-container居中 */
  46. .video-overlay {
  47. position: absolute;
  48. top: 50%;
  49. left: 50%;
  50. transform: translate(-50%, -50%);
  51. width: 100%;
  52. height: 100%;
  53. /* background: #f00; */
  54. z-index: -1;
  55. }
  56. /* 顶部标题 */
  57. .title {
  58. position: absolute;
  59. width: 500px;
  60. top: 40%;
  61. transform: translateY(-50%);
  62. right: 60px;
  63. z-index: 1;
  64. }
  65. .title-content {
  66. font-size: 80px;
  67. font-weight: 600;
  68. font-family: 'Ma Shan Zheng', 'ZCOOL KuaiLe', cursive;
  69. color: #2a2a2a;
  70. letter-spacing: 8px;
  71. text-align: right;
  72. padding-bottom: 15px;
  73. border-bottom: 2px solid #2a2a2a;
  74. text-shadow: -1px -1px 0 #ddd,
  75. 1px -1px 0 #ddd,
  76. -1px 1px 0 #ddd,
  77. 1px 1px 0 #ddd;
  78. }
  79. /* 作者 */
  80. .author {
  81. z-index: 1;
  82. text-align: right;
  83. font-size: 32px;
  84. font-family: 'Noto Serif SC', serif;
  85. color: #2a2a2a;
  86. font-weight: 400;
  87. text-shadow: -1px -1px 0 #ddd,
  88. 1px -1px 0 #ddd,
  89. -1px 1px 0 #ddd,
  90. 1px 1px 0 #ddd;
  91. }
  92. /* 正文区域 */
  93. .text {
  94. width: 100%;
  95. position: absolute;
  96. font-size: 46px;
  97. font-weight: 400;
  98. line-height: 2.0;
  99. font-family: 'Liu Jian Mao Cao', 'ZCOOL KuaiLe', cursive;
  100. color: #ffffff;
  101. text-align: justify;
  102. text-indent: 2em;
  103. letter-spacing: 1px;
  104. white-space: pre-line;
  105. top: 70%;
  106. text-align: center;
  107. text-shadow: -1px -1px 0 #222,
  108. 1px -1px 0 #222,
  109. -1px 1px 0 #222,
  110. 1px 1px 0 #222;
  111. padding: 0 100px;
  112. }
  113. .signature {
  114. position: absolute;
  115. font-size: 24px;
  116. color: #333;
  117. bottom: 20px;
  118. right: 20px;
  119. text-align: right;
  120. text-shadow: -1px -1px 0 #ddd,
  121. 1px -1px 0 #ddd,
  122. -1px 1px 0 #ddd,
  123. 1px 1px 0 #ddd;
  124. }
  125. </style>
  126. </head>
  127. <body>
  128. <div class="video-overlay">
  129. </div>
  130. <div class="title">
  131. <div class="title-content">{{title}}</div>
  132. </div>
  133. <!-- 正文内容 -->
  134. <div class="text">{{text}}</div>
  135. <!-- 署名 -->
  136. <div class="signature">{{signature=@Pixelle.AI}}</div>
  137. <script>
  138. const index = Number("{{index}}");
  139. document.addEventListener('DOMContentLoaded', () => {
  140. const titleElement = document.querySelector('.title');
  141. titleElement.style.display = index > 1 ? 'none' : 'block';
  142. });
  143. </script>
  144. </body>
  145. </html>