22301009 | 1e2aea7 | 2025-06-08 16:35:54 +0800 | [diff] [blame^] | 1 | /* 推荐页整体容器 */ |
| 2 | .recommendation-page { |
| 3 | padding: 24px 32px; |
| 4 | background-color: #f8f3ef; /* 米棕底色 */ |
| 5 | min-height: 100vh; |
| 6 | font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; |
| 7 | color: #4e342e; /* 深米棕文字 */ |
22301009 | ecc1c1c | 2025-04-09 21:56:23 +0800 | [diff] [blame] | 8 | } |
| 9 | |
22301009 | 1e2aea7 | 2025-06-08 16:35:54 +0800 | [diff] [blame^] | 10 | /* 各个版块标题 */ |
| 11 | .recommendation-page h2 { |
| 12 | font-size: 1.75rem; |
| 13 | font-weight: 700; |
| 14 | margin-bottom: 18px; |
| 15 | border-left: 6px solid #eecfc1; /* 粉米色强调条 */ |
| 16 | padding-left: 12px; |
| 17 | color: #4e342e; /* 标题米棕色 */ |
| 18 | user-select: none; |
22301009 | afbcf4b | 2025-04-10 16:08:39 +0800 | [diff] [blame] | 19 | } |
| 20 | |
22301009 | 1e2aea7 | 2025-06-08 16:35:54 +0800 | [diff] [blame^] | 21 | /* 付费片单 - 横向滚动行 */ |
22301009 | afbcf4b | 2025-04-10 16:08:39 +0800 | [diff] [blame] | 22 | .recommend-paid-row { |
| 23 | display: flex; |
| 24 | gap: 20px; |
22301009 | afbcf4b | 2025-04-10 16:08:39 +0800 | [diff] [blame] | 25 | overflow-x: auto; |
22301009 | 1e2aea7 | 2025-06-08 16:35:54 +0800 | [diff] [blame^] | 26 | padding-bottom: 12px; |
| 27 | width: 100%; |
| 28 | scroll-behavior: smooth; |
22301009 | afbcf4b | 2025-04-10 16:08:39 +0800 | [diff] [blame] | 29 | } |
| 30 | |
22301009 | 1e2aea7 | 2025-06-08 16:35:54 +0800 | [diff] [blame^] | 31 | .recommend-paid-row::-webkit-scrollbar { |
| 32 | height: 8px; |
| 33 | } |
| 34 | .recommend-paid-row::-webkit-scrollbar-thumb { |
| 35 | background-color: rgba(0, 0, 0, 0.3); |
| 36 | border-radius: 4px; |
| 37 | } |
| 38 | |
| 39 | /* 付费片单卡片 */ |
22301009 | afbcf4b | 2025-04-10 16:08:39 +0800 | [diff] [blame] | 40 | .paid-card { |
22301009 | 1e2aea7 | 2025-06-08 16:35:54 +0800 | [diff] [blame^] | 41 | width: 450px; /* 固定宽度 */ |
| 42 | flex-shrink: 0; /* 不允许缩小 */ |
| 43 | border-radius: 10px; |
| 44 | /* overflow: hidden; */ |
| 45 | overflow: visible; |
| 46 | background: #fffaf7; /* 粉米背景 */ |
| 47 | box-shadow: 0 10px 20px rgba(78, 52, 46, 0.1); /* 柔和阴影 */ |
| 48 | cursor: pointer; |
| 49 | transition: transform 0.25s ease, box-shadow 0.25s ease; |
| 50 | } |
| 51 | |
| 52 | .paid-card:hover { |
| 53 | transform: translateY(-6px); |
| 54 | box-shadow: 0 14px 28px rgba(78, 52, 46, 0.2); |
22301009 | afbcf4b | 2025-04-10 16:08:39 +0800 | [diff] [blame] | 55 | } |
| 56 | |
| 57 | .paid-cover { |
22301009 | ecc1c1c | 2025-04-09 21:56:23 +0800 | [diff] [blame] | 58 | width: 100%; |
22301009 | 1e2aea7 | 2025-06-08 16:35:54 +0800 | [diff] [blame^] | 59 | height: 130px; |
22301009 | ecc1c1c | 2025-04-09 21:56:23 +0800 | [diff] [blame] | 60 | object-fit: cover; |
22301009 | 1e2aea7 | 2025-06-08 16:35:54 +0800 | [diff] [blame^] | 61 | border-bottom: 1px solid #e2cfc3; /* 米棕分割线 */ |
| 62 | border-radius: 10px 10px 0 0; |
22301009 | ecc1c1c | 2025-04-09 21:56:23 +0800 | [diff] [blame] | 63 | } |
| 64 | |
22301009 | afbcf4b | 2025-04-10 16:08:39 +0800 | [diff] [blame] | 65 | .paid-title { |
22301009 | 1e2aea7 | 2025-06-08 16:35:54 +0800 | [diff] [blame^] | 66 | font-size: 1.1rem; |
| 67 | font-weight: 600; |
| 68 | padding: 12px 10px; |
| 69 | color: #6b4f3b; /* 深米棕文字 */ |
| 70 | white-space: nowrap; |
Krishya | 3dc6b35 | 2025-06-07 19:02:25 +0800 | [diff] [blame] | 71 | overflow: hidden; |
22301009 | 1e2aea7 | 2025-06-08 16:35:54 +0800 | [diff] [blame^] | 72 | text-overflow: ellipsis; |
Krishya | 3dc6b35 | 2025-06-07 19:02:25 +0800 | [diff] [blame] | 73 | } |
| 74 | |
22301009 | 1e2aea7 | 2025-06-08 16:35:54 +0800 | [diff] [blame^] | 75 | /* 热门资源 - 一行横向滚动 */ |
| 76 | .seed-list.popular-row { |
| 77 | display: flex; |
| 78 | overflow-x: auto; |
| 79 | white-space: nowrap; |
| 80 | gap: 16px; |
| 81 | padding-bottom: 12px; |
| 82 | scrollbar-width: none; |
| 83 | } |
| 84 | .seed-list.popular-row::-webkit-scrollbar { |
| 85 | display: none; |
| 86 | } |
| 87 | |
| 88 | /* 热门资源卡片 */ |
| 89 | .seed-card { |
| 90 | width: 150px; |
| 91 | flex-shrink: 0; |
| 92 | background: #fffaf7; /* 粉米背景 */ |
| 93 | border-radius: 12px; |
| 94 | box-shadow: 0 8px 16px rgba(78, 52, 46, 0.08); |
| 95 | overflow: hidden; |
| 96 | transition: transform 0.3s ease, box-shadow 0.3s ease; |
| 97 | cursor: pointer; |
| 98 | user-select: none; |
| 99 | } |
Krishya | 3dc6b35 | 2025-06-07 19:02:25 +0800 | [diff] [blame] | 100 | .seed-card:hover { |
22301009 | 1e2aea7 | 2025-06-08 16:35:54 +0800 | [diff] [blame^] | 101 | transform: translateY(-6px); |
| 102 | box-shadow: 0 12px 24px rgba(78, 52, 46, 0.15); |
Krishya | 3dc6b35 | 2025-06-07 19:02:25 +0800 | [diff] [blame] | 103 | } |
| 104 | |
| 105 | .seed-card img { |
| 106 | width: 100%; |
22301009 | 1e2aea7 | 2025-06-08 16:35:54 +0800 | [diff] [blame^] | 107 | height: 210px; |
Krishya | 3dc6b35 | 2025-06-07 19:02:25 +0800 | [diff] [blame] | 108 | object-fit: cover; |
22301009 | 1e2aea7 | 2025-06-08 16:35:54 +0800 | [diff] [blame^] | 109 | border-radius: 12px 12px 0 0; |
| 110 | border-bottom: 1px solid #e2cfc3; |
Krishya | 3dc6b35 | 2025-06-07 19:02:25 +0800 | [diff] [blame] | 111 | } |
| 112 | |
| 113 | .seed-card .title { |
22301009 | 1e2aea7 | 2025-06-08 16:35:54 +0800 | [diff] [blame^] | 114 | padding: 10px 8px; |
| 115 | font-size: 1rem; |
| 116 | color: #6b4f3b; /* 深米棕文字 */ |
Krishya | 3dc6b35 | 2025-06-07 19:02:25 +0800 | [diff] [blame] | 117 | text-align: center; |
22301009 | 1e2aea7 | 2025-06-08 16:35:54 +0800 | [diff] [blame^] | 118 | white-space: nowrap; |
| 119 | overflow: hidden; |
| 120 | text-overflow: ellipsis; |
Krishya | 3dc6b35 | 2025-06-07 19:02:25 +0800 | [diff] [blame] | 121 | } |
| 122 | |
22301009 | 1e2aea7 | 2025-06-08 16:35:54 +0800 | [diff] [blame^] | 123 | /* 猜你喜欢 - 多行换行排列 */ |
| 124 | .seed-list { |
| 125 | display: flex; |
| 126 | flex-wrap: wrap; |
| 127 | gap: 18px; |
| 128 | margin-bottom: 32px; |
| 129 | user-select: none; |
| 130 | } |
| 131 | |
| 132 | /* 登录提醒 */ |
Krishya | 3dc6b35 | 2025-06-07 19:02:25 +0800 | [diff] [blame] | 133 | .login-reminder { |
22301009 | 1e2aea7 | 2025-06-08 16:35:54 +0800 | [diff] [blame^] | 134 | font-size: 1.1rem; |
| 135 | color: #a1887f; /* 柔和棕色 */ |
| 136 | padding: 14px 0; |
| 137 | text-align: center; |
| 138 | font-style: italic; |
| 139 | user-select: none; |
| 140 | } |
| 141 | |
| 142 | /* 统一h2的上下间距 */ |
| 143 | .recommendation-page h2 { |
| 144 | margin-top: 36px; |
| 145 | margin-bottom: 18px; |
| 146 | } |
| 147 | |
| 148 | |
| 149 | /* 给滚动区域内种子卡片添加最小宽度避免缩得太小 */ |
| 150 | .seed-list.popular-row .seed-card, |
| 151 | .recommend-paid-row .paid-card { |
| 152 | min-width: 150px; |
22301009 | ecc1c1c | 2025-04-09 21:56:23 +0800 | [diff] [blame] | 153 | } |