Krishya | 1300cad | 2025-04-20 22:16:45 +0800 | [diff] [blame] | 1 | .post-detail-page { |
Krishya | f1d0ea8 | 2025-05-03 17:01:58 +0800 | [diff] [blame^] | 2 | background: linear-gradient(180deg, #5F4437, #823c3c); |
Krishya | 1300cad | 2025-04-20 22:16:45 +0800 | [diff] [blame] | 3 | font-family: 'Helvetica Neue', sans-serif; |
| 4 | color: #333; |
Krishya | e71688a | 2025-04-10 21:25:17 +0800 | [diff] [blame] | 5 | } |
| 6 | |
Krishya | 1300cad | 2025-04-20 22:16:45 +0800 | [diff] [blame] | 7 | .post-detail { |
| 8 | background-color: #e9ded2; |
| 9 | border-radius: 16px; |
| 10 | max-width: 960px; |
| 11 | margin: 0 auto; |
| 12 | padding: 24px 32px; |
Krishya | c0f7e9b | 2025-04-22 15:28:28 +0800 | [diff] [blame] | 13 | /* 卡片居中 */ |
| 14 | margin: 0 auto; |
| 15 | margin-top: 40px; |
Krishya | 1300cad | 2025-04-20 22:16:45 +0800 | [diff] [blame] | 16 | } |
| 17 | |
| 18 | .post-detail h1 { |
| 19 | font-size: 24px; |
| 20 | margin-bottom: 16px; |
Krishya | f1d0ea8 | 2025-05-03 17:01:58 +0800 | [diff] [blame^] | 21 | color: #4A3B34; |
Krishya | e71688a | 2025-04-10 21:25:17 +0800 | [diff] [blame] | 22 | } |
| 23 | |
| 24 | .post-meta { |
Krishya | 1300cad | 2025-04-20 22:16:45 +0800 | [diff] [blame] | 25 | display: flex; |
| 26 | justify-content: space-between; |
| 27 | font-size: 14px; |
| 28 | color: #755e50; |
| 29 | margin-bottom: 16px; |
Krishya | e71688a | 2025-04-10 21:25:17 +0800 | [diff] [blame] | 30 | } |
| 31 | |
| 32 | .post-content { |
Krishya | 1300cad | 2025-04-20 22:16:45 +0800 | [diff] [blame] | 33 | font-size: 20px; |
| 34 | line-height: 1.7; |
| 35 | margin-bottom: 20px; |
Krishya | f1d0ea8 | 2025-05-03 17:01:58 +0800 | [diff] [blame^] | 36 | color: #4A3B34; |
Krishya | e71688a | 2025-04-10 21:25:17 +0800 | [diff] [blame] | 37 | } |
| 38 | |
Krishya | 1300cad | 2025-04-20 22:16:45 +0800 | [diff] [blame] | 39 | /* 多图排列 */ |
| 40 | .post-content img { |
| 41 | max-width: 180px; |
Krishya | e71688a | 2025-04-10 21:25:17 +0800 | [diff] [blame] | 42 | height: auto; |
Krishya | 1300cad | 2025-04-20 22:16:45 +0800 | [diff] [blame] | 43 | border-radius: 8px; |
| 44 | margin: 8px; |
Krishya | e71688a | 2025-04-10 21:25:17 +0800 | [diff] [blame] | 45 | } |
Krishya | 1300cad | 2025-04-20 22:16:45 +0800 | [diff] [blame] | 46 | |
| 47 | .post-actions { |
| 48 | display: flex; |
| 49 | gap: 16px; |
| 50 | margin-bottom: 24px; |
Krishya | c0f7e9b | 2025-04-22 15:28:28 +0800 | [diff] [blame] | 51 | justify-content: flex-end; /*靠右对齐*/ |
Krishya | 1300cad | 2025-04-20 22:16:45 +0800 | [diff] [blame] | 52 | } |
| 53 | |
| 54 | .icon-btn { |
| 55 | display: flex; |
| 56 | align-items: center; |
| 57 | gap: 6px; |
| 58 | border: none; |
| 59 | background: none; |
| 60 | cursor: pointer; |
Krishya | f1d0ea8 | 2025-05-03 17:01:58 +0800 | [diff] [blame^] | 61 | color: #4A3B34; |
Krishya | 1300cad | 2025-04-20 22:16:45 +0800 | [diff] [blame] | 62 | transition: transform 0.2s ease; |
| 63 | } |
| 64 | |
| 65 | .icon-btn:hover { |
| 66 | background: none !important; |
| 67 | color: inherit; |
| 68 | outline: none; |
| 69 | box-shadow: none; |
| 70 | } |
| 71 | |
| 72 | .comments-section { |
| 73 | margin-top: -12px; |
| 74 | padding: 24px 24px 16px; |
| 75 | border-radius: 12px; |
| 76 | } |
| 77 | |
| 78 | .comments-section h3 { |
| 79 | margin-bottom: 16px; |
| 80 | font-size: 20px; |
Krishya | f1d0ea8 | 2025-05-03 17:01:58 +0800 | [diff] [blame^] | 81 | color: #4A3B34; |
Krishya | 1300cad | 2025-04-20 22:16:45 +0800 | [diff] [blame] | 82 | background-color: #c4b3a3; |
| 83 | padding: 6px 12px; |
| 84 | border-radius: 8px; |
| 85 | display: inline-block; |
| 86 | } |
| 87 | |
| 88 | .comment { |
| 89 | border-bottom: 1px solid #eee; |
| 90 | padding: 12px 0; |
| 91 | } |
| 92 | |
| 93 | .comment-header { |
| 94 | display: flex; |
| 95 | justify-content: space-between; |
| 96 | align-items: center; |
| 97 | font-size: 0.9rem; |
| 98 | color: #555; |
| 99 | } |
| 100 | |
| 101 | .comment-user { |
| 102 | font-weight: bold; |
| 103 | } |
| 104 | |
| 105 | .comment-content { |
| 106 | margin: 6px 0; |
| 107 | font-size: 1rem; |
| 108 | } |
| 109 | |
| 110 | .comment-time { |
| 111 | font-size: 0.85rem; |
| 112 | color: #999; |
| 113 | } |
| 114 | |
| 115 | .reply-btn { |
| 116 | background: none; |
| 117 | border: none; |
| 118 | color: #000000; |
| 119 | cursor: pointer; |
| 120 | } |
| 121 | |
| 122 | .reply-btn:hover { |
| 123 | color: #000000; /* 不变色 */ |
| 124 | background: none; /* 确保没有背景色 */ |
| 125 | text-decoration: underline; /* 你可以保留这个,或也删除 */ |
| 126 | } |
| 127 | |
| 128 | .reply-form, |
| 129 | .add-comment-form { |
| 130 | margin-top: 12px; |
| 131 | } |
| 132 | |
| 133 | textarea { |
| 134 | width: 100%; |
| 135 | padding: 12px; |
| 136 | resize: vertical; |
| 137 | min-height: 80px; |
| 138 | border: 1px solid #bbb; |
| 139 | border-radius: 10px; |
| 140 | font-size: 14px; |
| 141 | background-color: #fffefb; |
| 142 | color: #333; |
| 143 | } |
| 144 | |
| 145 | .comment-options { |
| 146 | margin-top: 8px; |
| 147 | display: flex; |
| 148 | align-items: center; |
| 149 | justify-content: space-between; |
| 150 | } |
| 151 | |
| 152 | .comment-options label { |
| 153 | font-size: 14px; |
| 154 | color: #555; |
| 155 | } |
| 156 | |
| 157 | .comment-options button { |
Krishya | c0f7e9b | 2025-04-22 15:28:28 +0800 | [diff] [blame] | 158 | justify-content: flex-end; /*靠右对齐*/ |
Krishya | 1300cad | 2025-04-20 22:16:45 +0800 | [diff] [blame] | 159 | padding: 6px 14px; |
| 160 | background-color: #BA929A; |
| 161 | color: #fff; |
| 162 | border: none; |
| 163 | border-radius: 6px; |
| 164 | font-size: 14px; |
| 165 | cursor: pointer; |
Krishya | 1300cad | 2025-04-20 22:16:45 +0800 | [diff] [blame] | 166 | } |
| 167 | |
| 168 | .comment-options button:hover { |
Krishya | f1d0ea8 | 2025-05-03 17:01:58 +0800 | [diff] [blame^] | 169 | background-color: #5F4437; |
Krishya | 1300cad | 2025-04-20 22:16:45 +0800 | [diff] [blame] | 170 | } |
| 171 | |
| 172 | .error-text { |
| 173 | color: #f00; |
| 174 | text-align: center; |
| 175 | } |
| 176 | .post-images { |
| 177 | display: flex; |
| 178 | flex-wrap: wrap; |
| 179 | justify-content: center; |
| 180 | } |
| 181 | |