index.wxss 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. /* pages/exhibition/index.wxss */
  2. .exhibition-container {
  3. background-image: url('https://klmybwg.4dage.com/mini/wxImg/bg.png');
  4. background-size: cover;
  5. background-repeat: no-repeat;
  6. min-height: 100vh;
  7. box-sizing: border-box;
  8. }
  9. /* 轮播图样式 */
  10. .carousel-section {
  11. margin-bottom: 20rpx;
  12. }
  13. .carousel {
  14. position: relative;
  15. height: 400rpx;
  16. width: 100%;
  17. }
  18. .carousel-image {
  19. width: 100%;
  20. height: 100%;
  21. }
  22. /* 线上观展标识样式 */
  23. .online-exhibition {
  24. position: absolute;
  25. top: 50%;
  26. left: 50%;
  27. transform: translate(-50%, -50%);
  28. display: flex;
  29. flex-direction: column;
  30. align-items: center;
  31. background-color: rgba(0, 0, 0, 0.6);
  32. padding: 20rpx 30rpx;
  33. border-radius: 12rpx;
  34. backdrop-filter: blur(4rpx);
  35. z-index: 2;
  36. }
  37. .online-icon {
  38. width: 60rpx;
  39. height: 60rpx;
  40. margin-bottom: 8rpx;
  41. }
  42. .online-text {
  43. color: white;
  44. font-size: 24rpx;
  45. font-weight: 500;
  46. text-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.3);
  47. }
  48. .carousel-overlay {
  49. position: absolute;
  50. bottom: 0;
  51. left: 0;
  52. right: 0;
  53. background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
  54. padding: 40rpx 30rpx 30rpx;
  55. }
  56. .carousel-title {
  57. color: white;
  58. font-size: 32rpx;
  59. font-weight: bold;
  60. text-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.3);
  61. }
  62. /* 分类选择样式 */
  63. .category-section {
  64. padding: 0 40rpx;
  65. margin-bottom: 40rpx;
  66. }
  67. .category-tabs {
  68. display: flex;
  69. justify-content: space-between;
  70. gap: 20rpx;
  71. }
  72. .category-tab {
  73. flex: 1;
  74. display: flex;
  75. flex-direction: column;
  76. align-items: center;
  77. background-color: rgba(229, 200, 142, 0.2);
  78. padding: 30rpx;
  79. border-radius: 10rpx;
  80. border: 2rpx solid rgba(148, 118, 90, 0.5);
  81. transition: all 0.3s ease;
  82. }
  83. .category-tab.active {
  84. background-color: rgba(229, 200, 142, 0.6);
  85. border-color: rgba(148, 118, 90, 0.8);
  86. transform: scale(1.02);
  87. }
  88. .category-icon {
  89. width: 90rpx;
  90. height: 78rpx;
  91. margin-bottom: 12rpx;
  92. }
  93. .category-tab text {
  94. font-size: 32rpx;
  95. color: #B1967B;
  96. font-weight: 500;
  97. }
  98. .category-tab.active text {
  99. color: #B1967B;
  100. }
  101. /* 展览列表样式 */
  102. .exhibition-list {
  103. padding: 0 40rpx;
  104. }
  105. .exhibition-item {
  106. position: relative;
  107. width: 100%;
  108. height: 412rpx;
  109. border-radius: 16rpx;
  110. overflow: hidden;
  111. margin-bottom: 40rpx;
  112. transition: all 0.3s ease;
  113. box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.1);
  114. }
  115. .exhibition-item:active {
  116. transform: translateY(-4rpx);
  117. box-shadow: 0 8rpx 32rpx rgba(0, 0, 0, 0.15);
  118. }
  119. .exhibition-image {
  120. width: 100%;
  121. height: 412rpx;
  122. object-fit: cover;
  123. }
  124. .exhibition-content {
  125. position: absolute;
  126. bottom: 0;
  127. left: 0;
  128. right: 0;
  129. height: 60rpx;
  130. display: flex;
  131. justify-content: center;
  132. align-items: center;
  133. background-color: #B1967B;
  134. opacity: 0.8;
  135. }
  136. .exhibition-title {
  137. font-size: 32rpx;
  138. font-weight: bold;
  139. color: #fff;
  140. margin: 0;
  141. white-space: nowrap;
  142. overflow: hidden;
  143. text-overflow: ellipsis;
  144. padding: 0 20rpx;
  145. }
  146. .exhibition-desc {
  147. display: none;
  148. }
  149. .exhibition-meta {
  150. display: none;
  151. }
  152. .exhibition-time,
  153. .exhibition-location {
  154. display: none;
  155. }
  156. /* 加载状态样式 */
  157. .loading-section {
  158. text-align: center;
  159. padding: 40rpx;
  160. color: #999;
  161. font-size: 28rpx;
  162. }
  163. /* 没有更多数据样式 */
  164. .no-more-section {
  165. text-align: center;
  166. padding: 40rpx;
  167. color: #999;
  168. font-size: 26rpx;
  169. }
  170. /* 空状态样式 */
  171. .empty-section {
  172. text-align: center;
  173. padding: 100rpx 40rpx;
  174. color: #999;
  175. font-size: 28rpx;
  176. }