| 1 | <!DOCTYPE html> |
| 2 | <html lang="zh-CN"> |
| 3 | |
| 4 | <head> |
| 5 | <meta charset="UTF-8"> |
| 6 | <meta name="template:media-width" content="1024"> |
| 7 | <meta name="template:media-height" content="1024"> |
| 8 | <meta name="viewport" content="width=1080, height=1920"> |
| 9 | <title>图书摘抄 - 1080x1920</title> |
| 10 | <!-- Google Fonts - 中文字体 --> |
| 11 | <link rel="preconnect" href="https://fonts.googleapis.com"> |
| 12 | <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> |
| 13 | <link |
| 14 | href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600&family=Ma+Shan+Zheng&family=ZCOOL+KuaiLe&display=swap" |
| 15 | rel="stylesheet"> |
| 16 | <style> |
| 17 | * { |
| 18 | margin: 0; |
| 19 | padding: 0; |
| 20 | box-sizing: border-box; |
| 21 | } |
| 22 | |
| 23 | html, |
| 24 | body { |
| 25 | width: 1080px; |
| 26 | height: 1920px; |
| 27 | overflow: hidden; |
| 28 | } |
| 29 | |
| 30 | body { |
| 31 | font-family: 'Noto Serif SC', serif; |
| 32 | color: #2a2a2a; |
| 33 | position: relative; |
| 34 | background: transparent; |
| 35 | display: flex; |
| 36 | flex-direction: column; |
| 37 | padding: 80px 100px; |
| 38 | } |
| 39 | |
| 40 | .image { |
| 41 | position: absolute; |
| 42 | inset: 0; |
| 43 | width: 100%; |
| 44 | height: 100%; |
| 45 | object-fit: contain; |
| 46 | z-index: -1; |
| 47 | } |
| 48 | |
| 49 | /* 背景遮罩层 */ |
| 50 | body::before { |
| 51 | content: ''; |
| 52 | position: absolute; |
| 53 | inset: 0; |
| 54 | background: rgba(232, 229, 224, 0.85); |
| 55 | backdrop-filter: blur(10px); |
| 56 | -webkit-backdrop-filter: blur(10px); |
| 57 | z-index: 0; |
| 58 | } |
| 59 | |
| 60 | /* 顶部标题 */ |
| 61 | .header { |
| 62 | position: relative; |
| 63 | z-index: 1; |
| 64 | margin-bottom: 80px; |
| 65 | } |
| 66 | |
| 67 | .title { |
| 68 | font-size: 48px; |
| 69 | font-weight: 500; |
| 70 | font-family: 'Ma Shan Zheng', 'ZCOOL KuaiLe', cursive; |
| 71 | color: #2a2a2a; |
| 72 | letter-spacing: 8px; |
| 73 | text-align: left; |
| 74 | padding-bottom: 15px; |
| 75 | border-bottom: 2px solid #2a2a2a; |
| 76 | } |
| 77 | |
| 78 | /* 正文区域 */ |
| 79 | .content { |
| 80 | position: relative; |
| 81 | z-index: 1; |
| 82 | /* flex: 1; */ |
| 83 | margin-bottom: 60px; |
| 84 | } |
| 85 | |
| 86 | .excerpt { |
| 87 | font-size: 36px; |
| 88 | font-weight: 400; |
| 89 | line-height: 2.0; |
| 90 | font-family: 'Noto Serif SC', serif; |
| 91 | color: #2a2a2a; |
| 92 | text-align: justify; |
| 93 | text-indent: 2em; |
| 94 | letter-spacing: 1px; |
| 95 | white-space: pre-line; |
| 96 | } |
| 97 | |
| 98 | |
| 99 | /* 署名 */ |
| 100 | .author { |
| 101 | position: relative; |
| 102 | z-index: 1; |
| 103 | text-align: right; |
| 104 | font-size: 32px; |
| 105 | font-family: 'Noto Serif SC', serif; |
| 106 | color: #2a2a2a; |
| 107 | font-weight: 400; |
| 108 | } |
| 109 | |
| 110 | .signature { |
| 111 | position: absolute; |
| 112 | font-size: 24px; |
| 113 | font-family: 'Liu Jian Mao Cao', 'ZCOOL KuaiLe', cursive; |
| 114 | color: #333; |
| 115 | bottom: 20px; |
| 116 | left: 50%; |
| 117 | transform: translateX(-50%); |
| 118 | } |
| 119 | </style> |
| 120 | </head> |
| 121 | |
| 122 | <body> |
| 123 | <img class="image" src="{{image}}" alt="{{title}}" /> |
| 124 | <!-- 顶部标题 --> |
| 125 | <div class="header"> |
| 126 | <div class="title">{{title}}</div> |
| 127 | </div> |
| 128 | |
| 129 | <!-- 正文内容 --> |
| 130 | <div class="content"> |
| 131 | <div class="excerpt">{{text}}</div> |
| 132 | </div> |
| 133 | |
| 134 | <!-- 作者 --> |
| 135 | <div class="author">——{{author=HITsz-TMG}}</div> |
| 136 | |
| 137 | <!-- 署名 --> |
| 138 | <div class="signature">{{signature=HITsz-TMG}}</div> |
| 139 | </body> |
| 140 | |
| 141 | </html> |