| 1 | <!DOCTYPE html> |
| 2 | <html> |
| 3 | <head> |
| 4 | <meta charset="UTF-8"> |
| 5 | <meta name="template:media-width" content="1024"> |
| 6 | <meta name="template:media-height" content="1024"> |
| 7 | <link rel="preconnect" href="https://fonts.googleapis.com"> |
| 8 | <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> |
| 9 | <link href="https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&family=ZCOOL+KuaiLe&display=swap" rel="stylesheet"> |
| 10 | <style> |
| 11 | html { |
| 12 | margin: 0; |
| 13 | padding: 0; |
| 14 | } |
| 15 | |
| 16 | body { |
| 17 | margin: 0; |
| 18 | padding: 0; |
| 19 | width: 1080px; |
| 20 | height: 1920px; |
| 21 | background: #000000; |
| 22 | font-family: 'Noto Sans SC', 'PingFang SC', 'Source Han Sans', 'Microsoft YaHei', sans-serif; |
| 23 | position: relative; |
| 24 | overflow: hidden; |
| 25 | display: flex; |
| 26 | flex-direction: column; |
| 27 | align-items: center; |
| 28 | } |
| 29 | |
| 30 | /* 顶部标题区域 */ |
| 31 | .top-title { |
| 32 | width: 100%; |
| 33 | text-align: center; |
| 34 | padding: 240px 60px 40px 60px; |
| 35 | box-sizing: border-box; |
| 36 | z-index: 1; |
| 37 | } |
| 38 | |
| 39 | .top-title-text { |
| 40 | font-size: 80px; |
| 41 | font-weight: 400; |
| 42 | color: #FFFFFF; |
| 43 | letter-spacing: 2px; |
| 44 | font-family: 'Ma Shan Zheng', cursive; |
| 45 | } |
| 46 | |
| 47 | /* 中间图片区域 */ |
| 48 | .image-section { |
| 49 | width: 100%; |
| 50 | height: auto; |
| 51 | display: flex; |
| 52 | justify-content: center; |
| 53 | padding: 0 40px; |
| 54 | box-sizing: border-box; |
| 55 | position: relative; |
| 56 | z-index: 1; |
| 57 | } |
| 58 | |
| 59 | .image-frame { |
| 60 | width: 1000px; |
| 61 | height: 800px; |
| 62 | position: relative; |
| 63 | display: flex; |
| 64 | align-items: center; |
| 65 | justify-content: center; |
| 66 | background: #FFFFFF; |
| 67 | padding: 8px; |
| 68 | box-sizing: border-box; |
| 69 | } |
| 70 | |
| 71 | /* 图片边框 - 白色,带老旧胶片感 */ |
| 72 | .image-frame::before { |
| 73 | content: ''; |
| 74 | position: absolute; |
| 75 | top: 0; |
| 76 | left: 0; |
| 77 | right: 0; |
| 78 | bottom: 0; |
| 79 | border: 3px solid #FFFFFF; |
| 80 | border-radius: 0; |
| 81 | box-shadow: 0 0 15px rgba(255, 255, 255, 0.2); |
| 82 | z-index: 2; |
| 83 | pointer-events: none; |
| 84 | } |
| 85 | |
| 86 | /* 图片容器 - 固定尺寸,强制裁剪 */ |
| 87 | .image-container { |
| 88 | width: 984px; |
| 89 | height: 784px; |
| 90 | position: relative; |
| 91 | overflow: hidden; |
| 92 | } |
| 93 | |
| 94 | .image-container img { |
| 95 | width: 984px; |
| 96 | height: 784px; |
| 97 | object-fit: cover; |
| 98 | object-position: center; |
| 99 | display: block; |
| 100 | } |
| 101 | |
| 102 | /* 底部文字区域 */ |
| 103 | .bottom-text-section { |
| 104 | width: 100%; |
| 105 | padding: 0 60px; |
| 106 | box-sizing: border-box; |
| 107 | display: flex; |
| 108 | flex-direction: column; |
| 109 | align-items: center; |
| 110 | justify-content: flex-start; |
| 111 | z-index: 1; |
| 112 | } |
| 113 | |
| 114 | /* 人生感悟 - 大红色粗体 */ |
| 115 | .highlight-text { |
| 116 | font-size: 40px; |
| 117 | color: #FFFFFF; |
| 118 | font-weight: 400; |
| 119 | letter-spacing: 3px; |
| 120 | text-align: center; |
| 121 | line-height: 1.2; |
| 122 | font-family: 'ZCOOL KuaiLe', cursive; |
| 123 | } |
| 124 | </style> |
| 125 | </head> |
| 126 | <body> |
| 127 | <!-- 顶部标题 --> |
| 128 | <div class="top-title"> |
| 129 | <div class="top-title-text">{{title}}</div> |
| 130 | </div> |
| 131 | |
| 132 | <!-- 中间图片区域 --> |
| 133 | <div class="image-section"> |
| 134 | <div class="image-frame"> |
| 135 | <div class="image-container"> |
| 136 | <img src="{{image}}" alt="Frame Image"> |
| 137 | </div> |
| 138 | </div> |
| 139 | </div> |
| 140 | |
| 141 | <!-- 底部文字区域 --> |
| 142 | <div class="bottom-text-section"> |
| 143 | <div class="highlight-text">{{text}}</div> |
| 144 | </div> |
| 145 | </body> |
| 146 | </html> |
| 147 |