meisiyu | 1d4aade | 2025-06-02 20:10:36 +0800 | [diff] [blame] | 1 | .postCenterContainer { |
| 2 | min-height: 100vh; |
| 3 | background-color: #f5f5f5; |
| 4 | } |
| 5 | |
| 6 | .headerNav { |
| 7 | background: white; |
| 8 | box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); |
| 9 | padding: 0 24px; |
| 10 | display: flex; |
| 11 | align-items: center; |
| 12 | justify-content: space-between; |
| 13 | height: 64px; |
| 14 | position: sticky; |
| 15 | top: 0; |
| 16 | z-index: 100; |
| 17 | } |
| 18 | |
| 19 | .categoryMenu { |
| 20 | display: flex; |
| 21 | align-items: center; |
| 22 | gap: 8px; |
| 23 | } |
| 24 | |
| 25 | .categoryButton { |
| 26 | border: none; |
| 27 | box-shadow: none; |
| 28 | font-weight: 500; |
| 29 | padding: 8px 16px; |
| 30 | border-radius: 6px; |
| 31 | transition: all 0.3s ease; |
zhaoyumao | f8f8184 | 2025-06-09 00:00:46 +0800 | [diff] [blame^] | 32 | color: #000000; |
| 33 | font-weight: bold; |
| 34 | |
meisiyu | 1d4aade | 2025-06-02 20:10:36 +0800 | [diff] [blame] | 35 | } |
| 36 | |
| 37 | .categoryButton:hover { |
zhaoyumao | f8f8184 | 2025-06-09 00:00:46 +0800 | [diff] [blame^] | 38 | background: #888888; |
| 39 | color: #666; |
| 40 | font-weight: bold; |
| 41 | border: 1px solid #888888; |
meisiyu | 1d4aade | 2025-06-02 20:10:36 +0800 | [diff] [blame] | 42 | } |
| 43 | |
| 44 | .searchContainer { |
| 45 | flex: 1; |
| 46 | display: flex; |
| 47 | justify-content: center; |
| 48 | max-width: 400px; |
| 49 | margin: 0 24px; |
| 50 | } |
| 51 | |
| 52 | .userCenter { |
| 53 | display: flex; |
| 54 | align-items: center; |
| 55 | gap: 12px; |
| 56 | } |
| 57 | |
| 58 | .carouselContainer { |
| 59 | margin: 24px; |
| 60 | border-radius: 12px; |
| 61 | overflow: hidden; |
| 62 | box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); |
| 63 | } |
| 64 | |
| 65 | .carouselSlide { |
| 66 | position: relative; |
| 67 | display: flex !important; |
| 68 | align-items: center; |
| 69 | justify-content: center; |
| 70 | min-height: 300px; |
| 71 | } |
| 72 | |
| 73 | .carouselOverlay { |
| 74 | position: absolute; |
| 75 | bottom: 0; |
| 76 | left: 0; |
| 77 | right: 0; |
| 78 | background: linear-gradient(transparent, rgba(0, 0, 0, 0.8)); |
| 79 | color: white; |
| 80 | padding: 40px 40px 24px; |
| 81 | text-align: left; |
| 82 | } |
| 83 | |
| 84 | .carouselTitle { |
| 85 | font-size: 28px; |
| 86 | font-weight: bold; |
| 87 | margin: 0 0 12px 0; |
| 88 | text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); |
| 89 | } |
| 90 | |
| 91 | .carouselSummary { |
| 92 | font-size: 16px; |
| 93 | margin: 0 0 16px 0; |
| 94 | opacity: 0.9; |
| 95 | line-height: 1.5; |
| 96 | } |
| 97 | |
| 98 | .carouselMeta { |
| 99 | display: flex; |
| 100 | gap: 24px; |
| 101 | font-size: 14px; |
| 102 | opacity: 0.8; |
| 103 | } |
| 104 | |
| 105 | .postsSection { |
| 106 | padding: 24px; |
| 107 | } |
| 108 | |
| 109 | .categoryTitle { |
| 110 | margin-bottom: 24px; |
| 111 | text-align: center; |
| 112 | } |
| 113 | |
| 114 | .categoryTitle h2 { |
| 115 | font-size: 24px; |
| 116 | margin: 0 0 8px 0; |
| 117 | color: #1890ff; |
| 118 | } |
| 119 | |
| 120 | .categoryTitle p { |
| 121 | margin: 0; |
| 122 | color: #666; |
| 123 | font-size: 14px; |
| 124 | } |
| 125 | |
| 126 | .postsRow { |
| 127 | margin-bottom: 32px; |
| 128 | } |
| 129 | |
| 130 | .postCol { |
| 131 | display: flex; |
| 132 | height: 480px; /* 固定卡片高度 */ |
| 133 | } |
| 134 | |
| 135 | .postCol > * { |
| 136 | width: 100%; |
| 137 | } |
| 138 | |
| 139 | .emptyState { |
| 140 | text-align: center; |
| 141 | padding: 60px 0; |
| 142 | color: #999; |
| 143 | font-size: 16px; |
| 144 | } |
| 145 | |
| 146 | .paginationContainer { |
| 147 | display: flex; |
| 148 | justify-content: center; |
| 149 | margin-top: 32px; |
| 150 | } |
| 151 | |
| 152 | /* 响应式设计 */ |
| 153 | @media (max-width: 768px) { |
| 154 | .headerNav { |
| 155 | flex-direction: column; |
| 156 | height: auto; |
| 157 | padding: 12px; |
| 158 | gap: 12px; |
| 159 | } |
| 160 | |
| 161 | .categoryMenu { |
| 162 | flex-wrap: wrap; |
| 163 | justify-content: center; |
| 164 | } |
| 165 | |
| 166 | .searchContainer { |
| 167 | margin: 0; |
| 168 | max-width: 100%; |
| 169 | } |
| 170 | |
| 171 | .carouselContainer { |
| 172 | margin: 12px; |
| 173 | } |
| 174 | |
| 175 | .carouselOverlay { |
| 176 | padding: 20px; |
| 177 | } |
| 178 | |
| 179 | .carouselTitle { |
| 180 | font-size: 20px; |
| 181 | } |
| 182 | |
| 183 | .carouselSummary { |
| 184 | font-size: 14px; |
| 185 | } |
| 186 | |
| 187 | .carouselMeta { |
| 188 | flex-direction: column; |
| 189 | gap: 8px; |
| 190 | } |
| 191 | |
| 192 | .postsSection { |
| 193 | padding: 12px; |
| 194 | } |
| 195 | } |