activity.wxss 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. /* pages/index/activity/activity.wxss */
  2. .activity-container {
  3. position: relative;
  4. height: 100vh;
  5. padding: 40rpx;
  6. background: url('https://klmybwg.4dage.com/mini/wxImg/bg.png') no-repeat;
  7. background-size: cover;
  8. }
  9. .back-button {
  10. position: absolute;
  11. top: 20rpx;
  12. left: 20rpx;
  13. width: 80rpx;
  14. height: 80rpx;
  15. border-radius: 50%;
  16. z-index: 10;
  17. }
  18. .back-button image {
  19. width: 80rpx;
  20. height: 80rpx;
  21. }
  22. .section-title {
  23. font-size: 40rpx;
  24. font-weight: bold;
  25. color: #584735;
  26. margin: 36rpx 0 40rpx 0;
  27. position: relative;
  28. padding-bottom: 20rpx;
  29. }
  30. .section-title::after {
  31. content: '';
  32. position: absolute;
  33. bottom: 0;
  34. left: 0;
  35. width: 100%;
  36. height: 4rpx;
  37. background: linear-gradient(90deg, rgba(91, 71, 46, 0.5) 0%, rgba(91, 71, 46, 0) 100%);
  38. }
  39. .content-section {
  40. padding-bottom: 40rpx;
  41. }
  42. .collection-list {
  43. display: flex;
  44. flex-direction: column;
  45. gap: 30rpx;
  46. }
  47. .collection-item {
  48. background-color: #fff;
  49. border-radius: 16rpx;
  50. overflow: hidden;
  51. box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.05);
  52. }
  53. .item-image-container {
  54. position: relative;
  55. height: 436rpx;
  56. overflow: hidden;
  57. }
  58. .item-image {
  59. width: 100%;
  60. height: 100%;
  61. }
  62. .view-button {
  63. position: absolute;
  64. display: flex;
  65. align-items: center;
  66. justify-content: center;
  67. width: 160rpx;
  68. height: 72rpx;
  69. top: 24rpx;
  70. right: 24rpx;
  71. background-color: rgba(0, 0, 0, 0.2);
  72. color: #fff;
  73. border-radius: 100rpx;
  74. font-size: 24rpx;
  75. border: 2rpx solid #fff;
  76. }
  77. .view-button text {
  78. font-size: 28rpx;
  79. }
  80. .arrow {
  81. margin-left: 12rpx;
  82. font-size: 24rpx;
  83. }
  84. .item-info {
  85. position: absolute;
  86. width: 90%;
  87. bottom: 32rpx;
  88. left: 48rpx;
  89. }
  90. .item-title {
  91. font-size: 40rpx;
  92. font-weight: bold;
  93. color: #fff;
  94. margin-bottom: 8rpx;
  95. }
  96. .item-description {
  97. font-size: 24rpx;
  98. color: #fff;
  99. overflow: hidden;
  100. text-overflow: ellipsis;
  101. white-space: nowrap;
  102. }
  103. /* 加载状态样式 */
  104. .loading-container {
  105. display: flex;
  106. justify-content: center;
  107. align-items: center;
  108. height: 400rpx;
  109. }
  110. .loading-text {
  111. font-size: 36rpx;
  112. color: #584735;
  113. opacity: 0.8;
  114. }
  115. /* 空状态样式 */
  116. .empty-state {
  117. display: flex;
  118. justify-content: center;
  119. align-items: center;
  120. height: 400rpx;
  121. margin-top: 100rpx;
  122. }
  123. .empty-text {
  124. font-size: 36rpx;
  125. color: #584735;
  126. opacity: 0.6;
  127. }