index.wxss 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  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. padding: 0 30rpx;
  9. }
  10. .top-section {
  11. position: sticky;
  12. top: 0;
  13. z-index: 10;
  14. background-color: rgba(245, 242, 235, 0.95);
  15. }
  16. .nav-scroll-container {
  17. overflow-x: auto;
  18. white-space: nowrap;
  19. }
  20. .category-menu {
  21. display: flex;
  22. margin-top: 20rpx;
  23. white-space: nowrap;
  24. }
  25. .category-item {
  26. display: inline-flex;
  27. align-items: center;
  28. height: 80rpx;
  29. line-height: 80rpx;
  30. font-size: 32rpx;
  31. color: #584735;
  32. padding: 0 30rpx;
  33. white-space: nowrap;
  34. flex-shrink: 0;
  35. }
  36. .category-item.active {
  37. color: #584735;
  38. font-weight: bold;
  39. font-size: 40rpx;
  40. }
  41. .category-item.active .category-text {
  42. border-bottom: 2rpx solid #F3B200;
  43. }
  44. .search-container {
  45. padding: 20rpx 30rpx;
  46. }
  47. .search-input {
  48. position: relative;
  49. height: 90rpx;
  50. border-radius: 40rpx;
  51. border: 2rpx solid #5B472E;
  52. background-color: transparent;
  53. display: flex;
  54. align-items: center;
  55. padding: 0 30rpx;
  56. }
  57. .search-input input {
  58. flex: 1;
  59. height: 100%;
  60. font-size: 32rpx;
  61. color: #584735;
  62. }
  63. .search-input input::placeholder {
  64. color: rgba(88, 71, 53, 0.5);
  65. }
  66. .search-icon {
  67. margin-left: 20rpx;
  68. font-size: 38rpx;
  69. color: #584735;
  70. }
  71. .icon-small{
  72. margin-top: 12rpx;
  73. }
  74. .clear-icon {
  75. margin-left: 20rpx;
  76. font-size: 32rpx;
  77. color: #999;
  78. }
  79. .content-section {
  80. height: calc(100vh - 300rpx);
  81. }
  82. .collection-list {
  83. display: flex;
  84. flex-direction: column;
  85. gap: 30rpx;
  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. .arrow {
  122. margin-left: 12rpx;
  123. }
  124. .item-info {
  125. position: absolute;
  126. width: 90%;
  127. bottom: 32rpx;
  128. left: 48rpx;
  129. }
  130. .item-category {
  131. font-size: 28rpx;
  132. color: #fff;
  133. margin-bottom: 8rpx;
  134. }
  135. .item-title {
  136. font-size: 72rpx;
  137. font-weight: bold;
  138. color: #fff;
  139. margin-bottom: 8rpx;
  140. line-height: 1.2;
  141. }
  142. .item-description {
  143. font-size: 28rpx;
  144. color: #fff;
  145. overflow: hidden;
  146. text-overflow: ellipsis;
  147. white-space: nowrap;
  148. }
  149. /* 加载和状态样式 */
  150. .loading-container,
  151. .no-more-container,
  152. .empty-container {
  153. display: flex;
  154. justify-content: center;
  155. align-items: center;
  156. padding: 40rpx;
  157. margin: 40rpx 0;
  158. }
  159. .loading-text,
  160. .no-more-text,
  161. .empty-text {
  162. color: #584735;
  163. font-size: 28rpx;
  164. opacity: 0.7;
  165. }
  166. .loading-text {
  167. position: relative;
  168. }
  169. .loading-text::after {
  170. content: '';
  171. display: inline-block;
  172. width: 24rpx;
  173. height: 24rpx;
  174. margin-left: 16rpx;
  175. border: 4rpx solid #584735;
  176. border-top-color: transparent;
  177. border-radius: 50%;
  178. animation: spin 1s linear infinite;
  179. }
  180. @keyframes spin {
  181. to {
  182. transform: rotate(360deg);
  183. }
  184. }