index.wxss 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  1. /* 小程序首页样式 */
  2. .home-container {
  3. height: 100vh;
  4. overflow-y: auto;
  5. background: url('https://sit-kelamayi.4dage.com/mini/wxImg/bg.png') no-repeat center top;
  6. background-size: 100% auto;
  7. }
  8. .home-not-overflow {
  9. overflow: hidden;
  10. }
  11. /* 轮播图区域 */
  12. .carousel-section {
  13. width: 100%;
  14. margin-bottom: 30rpx;
  15. }
  16. .nobanner-data{
  17. display: flex;
  18. justify-content: center;
  19. align-items: center;
  20. height: 100rpx;
  21. color: #999;
  22. }
  23. .carousel-swiper {
  24. height: 360rpx;
  25. }
  26. .carousel-img {
  27. width: 100%;
  28. height: 100%;
  29. }
  30. /* 功能区域 */
  31. .function-section {
  32. display: flex;
  33. justify-content: space-around;
  34. border-radius: 16rpx;
  35. margin: 0 30rpx 40rpx;
  36. }
  37. .function-item {
  38. display: flex;
  39. flex-direction: column;
  40. align-items: center;
  41. width: 22%;
  42. }
  43. .function-item-disabled {
  44. opacity: 0.5;
  45. }
  46. .function-icon {
  47. width: 112rpx;
  48. height: 112rpx;
  49. margin-bottom: 10rpx;
  50. }
  51. .function-icon-disabled {
  52. filter: grayscale(100%);
  53. }
  54. .function-text {
  55. font-size: 32rpx;
  56. color: #B1967B;
  57. }
  58. .function-text-disabled {
  59. color: #999;
  60. }
  61. /* 通用区块样式 */
  62. .section {
  63. margin: 0 30rpx 0;
  64. border-radius: 16rpx;
  65. padding: 8rpx 20rpx;
  66. }
  67. .section-header {
  68. display: flex;
  69. justify-content: space-between;
  70. align-items: center;
  71. margin-bottom: 30rpx;
  72. }
  73. .section-title {
  74. font-size: 40rpx;
  75. font-weight: bold;
  76. color: #584735;
  77. position: relative;
  78. padding-left: 20rpx;
  79. }
  80. .view-more {
  81. font-size: 28rpx;
  82. color: #79ACF9;
  83. }
  84. /* 空数据状态 */
  85. .empty-data {
  86. display: flex;
  87. justify-content: center;
  88. align-items: center;
  89. height: 200rpx;
  90. }
  91. .empty-text {
  92. font-size: 32rpx;
  93. color: #999;
  94. }
  95. /* 展览资讯 */
  96. .news-item {
  97. position: relative;
  98. margin-bottom: 20rpx;
  99. border-radius: 10rpx;
  100. height: 212rpx;
  101. overflow: hidden;
  102. }
  103. .news-img {
  104. width: 100%;
  105. height: 212rpx;
  106. }
  107. .news-content {
  108. position: absolute;
  109. top: 0;
  110. width: 100%;
  111. height: 212rpx;
  112. background: linear-gradient(90deg, rgba(177, 150, 123, 0) 0%, #B1967B 100%);
  113. }
  114. .news-title {
  115. width: 300rpx;
  116. text-align: right;
  117. font-size: 32rpx;
  118. font-weight: 800;
  119. margin: 32rpx;
  120. float: right;
  121. color: #FFFFFF;
  122. display: -webkit-box;
  123. -webkit-line-clamp: 2;
  124. -webkit-box-orient: vertical;
  125. overflow: hidden;
  126. }
  127. .news-desc {
  128. position: absolute;
  129. bottom: 16rpx;
  130. right: 32rpx;
  131. font-size: 50rpx;
  132. color: #fff;
  133. /* transform: rotate(-90deg) scale(1, -1); */
  134. }
  135. /* 滚动容器 */
  136. .scroll-container {
  137. white-space: nowrap;
  138. }
  139. .scroll-wrapper {
  140. display: inline-flex;
  141. padding-bottom: 10rpx;
  142. }
  143. /* 展览项 */
  144. .exhibition-item {
  145. position: relative;
  146. flex: 0 0 auto;
  147. width: 654rpx;
  148. height: 412rpx;
  149. margin-right: 20rpx;
  150. border-radius: 16rpx;
  151. overflow: hidden;
  152. }
  153. .exhibition-item:last-child {
  154. margin-right: 0;
  155. }
  156. .exhibition-img {
  157. width: 100%;
  158. height: 412rpx;
  159. }
  160. .exhibition-info {
  161. width: 690rpx;
  162. height: 60rpx;
  163. display: flex;
  164. justify-content: center;
  165. align-items: center;
  166. opacity: 0.8;
  167. position: absolute;
  168. bottom: 0;
  169. background: #B1967B;
  170. }
  171. .exhibition-title {
  172. font-size: 32rpx;
  173. color: #fff;
  174. font-weight: bold;
  175. white-space: nowrap;
  176. overflow: hidden;
  177. text-overflow: ellipsis;
  178. }
  179. /* 活动项 */
  180. .activity-item {
  181. flex: 0 0 auto;
  182. width: 216rpx;
  183. margin-right: 20rpx;
  184. border-radius: 16rpx;
  185. overflow: hidden;
  186. }
  187. .activity-item:last-child {
  188. margin-right: 0;
  189. }
  190. .active-top {
  191. position: relative;
  192. width: 216rpx;
  193. height: 248rpx;
  194. border-radius: 16rpx;
  195. overflow: hidden;
  196. }
  197. .active-go {
  198. display: flex;
  199. justify-content: center;
  200. align-items: center;
  201. width: 32rpx;
  202. height: 32rpx;
  203. position: absolute;
  204. bottom: 8rpx;
  205. right: 16rpx;
  206. border: 2rpx solid #FCE39E;
  207. border-radius: 50%;
  208. color: #FCE39E;
  209. font-size: 24rpx;
  210. }
  211. .activity-img {
  212. width: 216rpx;
  213. height: 248rpx;
  214. }
  215. .activity-info {
  216. padding: 16rpx;
  217. }
  218. .activity-title {
  219. font-size: 24rpx;
  220. white-space: nowrap;
  221. overflow: hidden;
  222. text-overflow: ellipsis;
  223. color: #584735;
  224. }