index.wxss 3.4 KB

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