index.wxss 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. /* pages/exhibition/index.wxss */
  2. .exhibition-container {
  3. background-image: url('https://swkz-1332577016.cos.ap-guangzhou.myqcloud.com/karamay/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. height: 400rpx;
  15. width: 100%;
  16. }
  17. .carousel-image {
  18. width: 100%;
  19. height: 100%;
  20. }
  21. .carousel-overlay {
  22. position: absolute;
  23. bottom: 0;
  24. left: 0;
  25. right: 0;
  26. background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
  27. padding: 40rpx 30rpx 30rpx;
  28. }
  29. .carousel-title {
  30. color: white;
  31. font-size: 32rpx;
  32. font-weight: bold;
  33. text-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.3);
  34. }
  35. /* 分类选择样式 */
  36. .category-section {
  37. padding: 0 40rpx;
  38. margin-bottom: 40rpx;
  39. }
  40. .category-tabs {
  41. display: flex;
  42. justify-content: space-between;
  43. gap: 20rpx;
  44. }
  45. .category-tab {
  46. flex: 1;
  47. display: flex;
  48. flex-direction: column;
  49. align-items: center;
  50. background-color: rgba(229, 200, 142, 0.2);
  51. padding: 30rpx;
  52. border-radius: 10rpx;
  53. border: 2rpx solid rgba(148, 118, 90, 0.5);
  54. transition: all 0.3s ease;
  55. }
  56. .category-tab.active {
  57. background-color: rgba(229, 200, 142, 0.6);
  58. border-color: rgba(148, 118, 90, 0.8);
  59. transform: scale(1.02);
  60. }
  61. .category-icon {
  62. width: 90rpx;
  63. height: 78rpx;
  64. margin-bottom: 12rpx;
  65. }
  66. .category-tab text {
  67. font-size: 32rpx;
  68. color: #B1967B;
  69. font-weight: 500;
  70. }
  71. .category-tab.active text {
  72. color: #B1967B;
  73. }
  74. /* 展览列表样式 */
  75. .exhibition-list {
  76. padding: 0 40rpx;
  77. }
  78. .exhibition-item {
  79. position: relative;
  80. width: 100%;
  81. height: 412rpx;
  82. border-radius: 16rpx;
  83. overflow: hidden;
  84. margin-bottom: 40rpx;
  85. transition: all 0.3s ease;
  86. box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.1);
  87. }
  88. .exhibition-item:active {
  89. transform: translateY(-4rpx);
  90. box-shadow: 0 8rpx 32rpx rgba(0, 0, 0, 0.15);
  91. }
  92. .exhibition-image {
  93. width: 100%;
  94. height: 412rpx;
  95. object-fit: cover;
  96. }
  97. .exhibition-content {
  98. position: absolute;
  99. bottom: 0;
  100. left: 0;
  101. right: 0;
  102. height: 60rpx;
  103. display: flex;
  104. justify-content: center;
  105. align-items: center;
  106. background-color: #B1967B;
  107. opacity: 0.8;
  108. }
  109. .exhibition-title {
  110. font-size: 32rpx;
  111. font-weight: bold;
  112. color: #fff;
  113. margin: 0;
  114. white-space: nowrap;
  115. overflow: hidden;
  116. text-overflow: ellipsis;
  117. padding: 0 20rpx;
  118. }
  119. .exhibition-desc {
  120. display: none;
  121. }
  122. .exhibition-meta {
  123. display: none;
  124. }
  125. .exhibition-time,
  126. .exhibition-location {
  127. display: none;
  128. }
  129. /* 加载状态样式 */
  130. .loading-section {
  131. text-align: center;
  132. padding: 40rpx;
  133. color: #999;
  134. font-size: 28rpx;
  135. }
  136. /* 没有更多数据样式 */
  137. .no-more-section {
  138. text-align: center;
  139. padding: 40rpx;
  140. color: #999;
  141. font-size: 26rpx;
  142. }
  143. /* 空状态样式 */
  144. .empty-section {
  145. text-align: center;
  146. padding: 100rpx 40rpx;
  147. color: #999;
  148. font-size: 28rpx;
  149. }