ranking.wxss 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. .container.data-v-d21fa7e5 {
  2. width: 100%;
  3. height: 100vh;
  4. background-color: #FFFFFF;
  5. display: flex;
  6. flex-direction: column;
  7. }
  8. /* 顶部导航栏 */
  9. .header.data-v-d21fa7e5 {
  10. display: flex;
  11. align-items: center;
  12. justify-content: space-between;
  13. padding: 20rpx 30rpx;
  14. background-color: #4DB6AC;
  15. position: relative;
  16. }
  17. .back-btn.data-v-d21fa7e5 {
  18. width: 60rpx;
  19. height: 60rpx;
  20. display: flex;
  21. align-items: center;
  22. justify-content: center;
  23. }
  24. .back-icon.data-v-d21fa7e5 {
  25. font-size: 40rpx;
  26. color: #FFFFFF;
  27. font-weight: bold;
  28. }
  29. .header-title.data-v-d21fa7e5 {
  30. font-size: 36rpx;
  31. font-weight: bold;
  32. color: #FFFFFF;
  33. position: absolute;
  34. left: 50%;
  35. transform: translateX(-50%);
  36. }
  37. .placeholder.data-v-d21fa7e5 {
  38. width: 60rpx;
  39. }
  40. /* 横向标签栏 */
  41. .tab-bar.data-v-d21fa7e5 {
  42. display: flex;
  43. align-items: center;
  44. background-color: #66CCC2;
  45. padding: 0 20rpx;
  46. overflow-x: auto;
  47. white-space: nowrap;
  48. }
  49. .tab-item.data-v-d21fa7e5 {
  50. flex: 1;
  51. display: flex;
  52. align-items: center;
  53. justify-content: center;
  54. padding: 24rpx 20rpx;
  55. min-width: 120rpx;
  56. }
  57. .tab-text.data-v-d21fa7e5 {
  58. font-size: 28rpx;
  59. color: #FFFFFF;
  60. transition: color 0.3s ease;
  61. }
  62. .tab-text-active.data-v-d21fa7e5 {
  63. font-size: 30rpx;
  64. font-weight: bold;
  65. color: #2E7D32;
  66. }
  67. .tab-active.data-v-d21fa7e5 {
  68. border-bottom: 4rpx solid #2E7D32;
  69. }
  70. /* 主体内容区 */
  71. .main-content.data-v-d21fa7e5 {
  72. flex: 1;
  73. display: flex;
  74. width: 100%;
  75. height: 0;
  76. overflow: hidden;
  77. }
  78. /* 左侧分类边栏 */
  79. .sidebar.data-v-d21fa7e5 {
  80. width: 160rpx;
  81. height: 100%;
  82. background-color: #FFFFFF;
  83. border-right: 1rpx solid #E5E5E5;
  84. }
  85. .category-item.data-v-d21fa7e5 {
  86. position: relative;
  87. display: flex;
  88. align-items: center;
  89. justify-content: center;
  90. padding: 30rpx 20rpx;
  91. min-height: 80rpx;
  92. box-sizing: border-box;
  93. }
  94. .category-active.data-v-d21fa7e5 {
  95. background-color: #F5F5F5;
  96. }
  97. .category-indicator.data-v-d21fa7e5 {
  98. position: absolute;
  99. left: 0;
  100. top: 0;
  101. bottom: 0;
  102. width: 6rpx;
  103. background-color: #4DB6AC;
  104. }
  105. .category-text.data-v-d21fa7e5 {
  106. font-size: 28rpx;
  107. color: #999999;
  108. transition: color 0.3s ease;
  109. }
  110. .category-text-active.data-v-d21fa7e5 {
  111. color: #4DB6AC;
  112. font-weight: bold;
  113. }
  114. /* 右侧书籍列表 */
  115. .book-list-container.data-v-d21fa7e5 {
  116. flex: 1;
  117. height: 100%;
  118. background-color: #FFFFFF;
  119. padding: 0 30rpx;
  120. }
  121. .book-item.data-v-d21fa7e5 {
  122. display: flex;
  123. align-items: center;
  124. padding: 30rpx 0;
  125. position: relative;
  126. }
  127. .rank-number.data-v-d21fa7e5 {
  128. font-size: 48rpx;
  129. font-weight: bold;
  130. color: #CCCCCC;
  131. width: 80rpx;
  132. text-align: center;
  133. flex-shrink: 0;
  134. }
  135. .book-cover.data-v-d21fa7e5 {
  136. width: 120rpx;
  137. height: 160rpx;
  138. border-radius: 8rpx;
  139. margin-right: 24rpx;
  140. flex-shrink: 0;
  141. background-color: #F5F5F5;
  142. }
  143. .book-info.data-v-d21fa7e5 {
  144. flex: 1;
  145. display: flex;
  146. flex-direction: column;
  147. justify-content: center;
  148. min-width: 0;
  149. }
  150. .book-title.data-v-d21fa7e5 {
  151. font-size: 32rpx;
  152. font-weight: bold;
  153. color: #000000;
  154. margin-bottom: 12rpx;
  155. overflow: hidden;
  156. text-overflow: ellipsis;
  157. white-space: nowrap;
  158. }
  159. .book-author.data-v-d21fa7e5 {
  160. font-size: 26rpx;
  161. color: #999999;
  162. overflow: hidden;
  163. text-overflow: ellipsis;
  164. white-space: nowrap;
  165. }
  166. .divider-line.data-v-d21fa7e5 {
  167. position: absolute;
  168. bottom: 0;
  169. left: 80rpx;
  170. right: 0;
  171. height: 1rpx;
  172. background-color: #E5E5E5;
  173. }
  174. /* 加载更多 */
  175. .load-more.data-v-d21fa7e5 {
  176. width: 100%;
  177. height: 80rpx;
  178. display: flex;
  179. align-items: center;
  180. justify-content: center;
  181. margin-top: 20rpx;
  182. margin-bottom: 40rpx;
  183. }
  184. .load-more-text.data-v-d21fa7e5 {
  185. font-size: 28rpx;
  186. color: #999999;
  187. }