news.wxss 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. /* pages/index/news/news.wxss */
  2. .news-container {
  3. position: relative;
  4. min-height: 100vh;
  5. padding: 40rpx 40rpx 0 40rpx;
  6. background: url('https://klmybwg.4dage.com/mini/wxImg/bg.png');
  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. /* 加载状态样式 */
  40. .loading-container {
  41. display: flex;
  42. justify-content: center;
  43. align-items: center;
  44. height: 400rpx;
  45. }
  46. .loading-text {
  47. font-size: 36rpx;
  48. color: #584735;
  49. opacity: 0.8;
  50. }
  51. /* 空状态样式 */
  52. .empty-state {
  53. display: flex;
  54. justify-content: center;
  55. align-items: center;
  56. height: 400rpx;
  57. margin-top: 100rpx;
  58. }
  59. .empty-text {
  60. font-size: 36rpx;
  61. color: #584735;
  62. opacity: 0.6;
  63. }
  64. /* 滚动容器 */
  65. .scroll-container {
  66. overflow-x: auto;
  67. }
  68. .scroll-wrapper {
  69. display: flex;
  70. padding-bottom: 10rpx;
  71. }
  72. .all-item {
  73. position: relative;
  74. flex: 0 0 auto;
  75. width: 654rpx;
  76. height: 1200rpx;
  77. margin-right: 20rpx;
  78. }
  79. .exhibition-item {
  80. position: relative;
  81. flex: 0 0 auto;
  82. width: 654rpx;
  83. height: 918rpx;
  84. border-radius: 10rpx;
  85. overflow: hidden;
  86. }
  87. .exhibition-item:last-child {
  88. margin-right: 0;
  89. }
  90. .exhibition-img {
  91. width: 100%;
  92. height: 100%;
  93. }
  94. .bg-img {
  95. position: absolute;
  96. width: 602rpx;
  97. height: 862rpx;
  98. top: 28rpx;
  99. left: 28rpx;
  100. }
  101. .exhibition-info {
  102. width: 690rpx;
  103. height: 60rpx;
  104. display: flex;
  105. justify-content: center;
  106. align-items: center;
  107. opacity: 0.8;
  108. position: absolute;
  109. bottom: 94rpx;
  110. }
  111. .exhibition-title {
  112. font-size: 48rpx;
  113. margin: 0;
  114. color: #fff;
  115. font-weight: 800;
  116. white-space: nowrap;
  117. overflow: hidden;
  118. text-overflow: ellipsis;
  119. }
  120. .view-details-button {
  121. position: absolute;
  122. bottom: 80rpx;
  123. left: 50%;
  124. transform: translateX(-50%);
  125. width: 430rpx;
  126. height: 116rpx;
  127. display: flex;
  128. justify-content: center;
  129. align-items: center;
  130. background: linear-gradient(90deg, #B1967B 0%, #9F6F3F 100%);
  131. border-radius: 100rpx;
  132. font-size: 40rpx;
  133. color: #fff;
  134. }
  135. .view-details-button text {
  136. margin-right: 32rpx;
  137. }
  138. .arrow {
  139. font-size: 32rpx;
  140. }