lfmylbhf | 789e717 | 2025-06-06 18:37:21 +0800 | [diff] [blame^] | 1 | //全局容器样式 |
| 2 | .user-container { |
| 3 | max-width: 1200px; |
| 4 | margin: 0 auto; |
| 5 | padding: 0 2rem; |
| 6 | |
| 7 | .p-tabview-title { |
| 8 | font-size: 20px; |
| 9 | } |
| 10 | } |
| 11 | |
| 12 | //个人信息样式 |
| 13 | .user-profile-card { |
| 14 | display: flex; |
| 15 | |
| 16 | .user-avatar { |
| 17 | height: 200px; |
| 18 | width: 200px; |
| 19 | margin: 30px; |
| 20 | } |
| 21 | .user-info { |
| 22 | width: 796px; |
| 23 | position: relative; |
| 24 | margin-top: 22px; |
| 25 | |
| 26 | .user-detail-info { |
| 27 | display: flex; |
| 28 | justify-content: space-between; |
| 29 | |
| 30 | .name-container { |
| 31 | width: 750px; |
| 32 | margin-left: 1rem; |
| 33 | .name { |
| 34 | font-size: 43px; |
| 35 | margin-bottom: 3px; |
| 36 | } |
| 37 | |
| 38 | .signature { |
| 39 | margin-top: 0; |
| 40 | font-size: 20px; |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | .stats-container { |
| 45 | display: flex; |
| 46 | flex-wrap: wrap; // 允许换行 |
| 47 | margin-top: 60px; |
| 48 | |
| 49 | .stats { |
| 50 | width: 50%; |
| 51 | display: flex; |
| 52 | flex-direction: row; |
| 53 | align-items: center; |
| 54 | margin-bottom: 16px; |
| 55 | |
| 56 | // 左上角:粉丝 |
| 57 | &:nth-child(1) { |
| 58 | justify-content: flex-start; // 左对齐 |
| 59 | } |
| 60 | |
| 61 | // 右上角:累计上传量 |
| 62 | &:nth-child(2) { |
| 63 | justify-content: flex-end; // 右对齐 |
| 64 | } |
| 65 | |
| 66 | // 左下角:关注 |
| 67 | &:nth-child(3) { |
| 68 | justify-content: flex-start; // 左对齐 |
| 69 | } |
| 70 | |
| 71 | // 右下角:累计被下载量 |
| 72 | &:nth-child(4) { |
| 73 | justify-content: flex-end; // 右对齐 |
| 74 | } |
| 75 | |
| 76 | .stats-label { |
| 77 | font-size: 18px; |
| 78 | color: #666; |
| 79 | margin-right: 4px; |
| 80 | white-space: nowrap; |
| 81 | } |
| 82 | |
| 83 | .stats-value { |
| 84 | font-size: 20px; |
| 85 | font-weight: bold; |
| 86 | color: #333; |
| 87 | } |
| 88 | } |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | .action-button { |
| 93 | align-self: flex-end; // 底部对齐 |
| 94 | margin-top: auto; // 自动上边距将其推到底部 |
| 95 | // 固定位置: |
| 96 | position: absolute; |
| 97 | right: 0; |
| 98 | bottom: 10px; |
| 99 | } |
| 100 | } |
| 101 | } |
| 102 | |
| 103 | |
| 104 | //每一模块的首部样式 |
| 105 | .section-header { |
| 106 | display: flex; |
| 107 | justify-content: space-between; |
| 108 | align-items: center; |
| 109 | margin-top: 20px; |
| 110 | } |
| 111 | |
| 112 | //每个模块中的资源样式 |
| 113 | .resource-grid { |
| 114 | display: grid; |
| 115 | grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); |
| 116 | gap: 1rem; |
| 117 | |
| 118 | .resource-card { |
| 119 | transition: transform 0.2s ease; |
| 120 | cursor: pointer; |
| 121 | box-shadow: none !important; |
| 122 | |
| 123 | .p-image { |
| 124 | img { |
| 125 | border-radius: 0.5rem 0.5rem 0 0; |
| 126 | object-fit: cover; |
| 127 | } |
| 128 | } |
| 129 | |
| 130 | .p-card-body { |
| 131 | padding: 0; |
| 132 | } |
| 133 | |
| 134 | .p-card-content { |
| 135 | padding: 0; |
| 136 | } |
| 137 | |
| 138 | &:hover { |
| 139 | transform: translateY(-4px); |
| 140 | } |
| 141 | |
| 142 | .card-content { |
| 143 | display: flex; |
| 144 | flex-direction: column; |
| 145 | position: relative; |
| 146 | margin-left: 16px; |
| 147 | margin-right: 16px; |
| 148 | margin-bottom: 16px; |
| 149 | |
| 150 | h3 { |
| 151 | margin: 1rem 0; |
| 152 | font-size: 1rem; |
| 153 | line-height: 1.5; |
| 154 | color: #2d3748; |
| 155 | } |
| 156 | |
| 157 | .view-count { |
| 158 | position: absolute; |
| 159 | bottom: 0rem; |
| 160 | right: 0rem; |
| 161 | display: flex; |
| 162 | align-items: center; |
| 163 | gap: 0.5rem; |
| 164 | color: #718096; |
| 165 | font-size: 0.9rem; |
| 166 | } |
| 167 | } |
| 168 | } |
| 169 | } |
| 170 | |
| 171 | |
| 172 | |