index.wxss 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  1. /* pages/collection/index.wxss */
  2. .collection-container {
  3. height: 100vh;
  4. background-image: url('https://klmybwg.4dage.com/mini/wxImg/bg.png');
  5. background-size: cover;
  6. background-repeat: no-repeat;
  7. box-sizing: border-box;
  8. }
  9. .top-section {
  10. position: sticky;
  11. top: 0;
  12. z-index: 10;
  13. padding: 0 40rpx;
  14. }
  15. .nav-scroll-container {
  16. overflow-x: auto;
  17. white-space: nowrap;
  18. }
  19. .category-menu {
  20. display: flex;
  21. margin-top: 20rpx;
  22. white-space: nowrap;
  23. }
  24. .category-item {
  25. display: inline-flex;
  26. align-items: center;
  27. height: 80rpx;
  28. line-height: 80rpx;
  29. font-size: 32rpx;
  30. color: #584735;
  31. padding: 0 30rpx;
  32. white-space: nowrap;
  33. flex-shrink: 0;
  34. }
  35. .category-item.active {
  36. color: #584735;
  37. font-weight: bold;
  38. font-size: 40rpx;
  39. }
  40. .category-item.active .category-text {
  41. border-bottom: 12rpx solid #F3B200;
  42. }
  43. .search-container {
  44. padding: 40rpx 10rpx;
  45. }
  46. .search-input {
  47. position: relative;
  48. height: 90rpx;
  49. border-radius: 40rpx;
  50. border: 1rpx solid #5B472E;
  51. background-color: transparent;
  52. display: flex;
  53. align-items: center;
  54. padding: 0 30rpx;
  55. }
  56. .search-input input {
  57. flex: 1;
  58. height: 100%;
  59. font-size: 32rpx;
  60. color: #584735;
  61. }
  62. .search-input input::placeholder {
  63. color: rgba(88, 71, 53, 0.5);
  64. }
  65. .search-icon {
  66. margin-left: 20rpx;
  67. font-size: 38rpx;
  68. color: #584735;
  69. }
  70. .icon-small{
  71. margin-top: 12rpx;
  72. }
  73. .clear-icon {
  74. margin-left: 20rpx;
  75. font-size: 32rpx;
  76. color: #999;
  77. }
  78. .content-section {
  79. height: calc(100vh - 300rpx);
  80. }
  81. .collection-list {
  82. display: flex;
  83. flex-direction: column;
  84. gap: 30rpx;
  85. padding: 0 40rpx;
  86. }
  87. .collection-item {
  88. background-color: #fff;
  89. border-radius: 16rpx;
  90. overflow: hidden;
  91. box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.05);
  92. }
  93. .item-image-container {
  94. position: relative;
  95. height: 560rpx;
  96. overflow: hidden;
  97. }
  98. .item-image {
  99. width: 100%;
  100. height: 100%;
  101. object-fit: cover;
  102. }
  103. .view-button {
  104. position: absolute;
  105. display: flex;
  106. align-items: center;
  107. justify-content: center;
  108. width: 160rpx;
  109. height: 72rpx;
  110. top: 24rpx;
  111. right: 24rpx;
  112. background-color: rgba(0, 0, 0, 0.2);
  113. color: #fff;
  114. border-radius: 100rpx;
  115. font-size: 24rpx;
  116. border: 2rpx solid #fff;
  117. }
  118. .view-button text {
  119. font-size: 28rpx;
  120. }
  121. .news-img{
  122. width: 30rpx;
  123. height: 30rpx;
  124. margin-left: 14rpx;
  125. }
  126. .arrow {
  127. margin-left: 12rpx;
  128. }
  129. .item-info {
  130. position: absolute;
  131. width: 90%;
  132. bottom: 32rpx;
  133. left: 48rpx;
  134. }
  135. .item-category {
  136. font-size: 28rpx;
  137. color: #fff;
  138. margin-bottom: 8rpx;
  139. }
  140. .item-title {
  141. font-family: "heavy";
  142. font-size: 60rpx;
  143. font-weight: bold;
  144. color: #fff;
  145. margin-bottom: 8rpx;
  146. line-height: 120%;
  147. }
  148. .item-description {
  149. font-size: 28rpx;
  150. color: #fff;
  151. overflow: hidden;
  152. text-overflow: ellipsis;
  153. height: 44rpx;
  154. width: 100%;
  155. white-space: nowrap;
  156. }
  157. /* 加载和状态样式 */
  158. .loading-container,
  159. .no-more-container,
  160. .empty-container {
  161. display: flex;
  162. justify-content: center;
  163. align-items: center;
  164. padding: 40rpx;
  165. margin: 40rpx 0;
  166. }
  167. .loading-text,
  168. .no-more-text,
  169. .empty-text {
  170. color: #584735;
  171. font-size: 28rpx;
  172. opacity: 0.7;
  173. }
  174. .loading-text {
  175. position: relative;
  176. }
  177. .loading-text::after {
  178. content: '';
  179. display: inline-block;
  180. width: 24rpx;
  181. height: 24rpx;
  182. margin-left: 16rpx;
  183. border: 4rpx solid #584735;
  184. border-top-color: transparent;
  185. border-radius: 50%;
  186. animation: spin 1s linear infinite;
  187. }
  188. @keyframes spin {
  189. to {
  190. transform: rotate(360deg);
  191. }
  192. }