index.wxss 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  1. /* 引入字体图标 */
  2. @font-face {
  3. font-family: 'iconfont';
  4. src: url('//at.alicdn.com/t/font_3266846_kxscvlm9qpp.woff2') format('woff2');
  5. }
  6. .iconfont.data-v-502b983e {
  7. font-family: "iconfont" !important;
  8. font-size: 22rpx;
  9. font-style: normal;
  10. -webkit-font-smoothing: antialiased;
  11. -moz-osx-font-smoothing: grayscale;
  12. }
  13. .icon-robot.data-v-502b983e:before {
  14. content: "\e64b";
  15. }
  16. .icon-eye.data-v-502b983e:before {
  17. content: "\e614";
  18. }
  19. /* 页面容器 */
  20. .page-container.data-v-502b983e {
  21. min-height: 100vh;
  22. background-color: #f7f8fa;
  23. position: relative;
  24. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  25. }
  26. /* 头部标签样式 */
  27. .header-tabs.data-v-502b983e {
  28. display: flex;
  29. background-color: #fff;
  30. padding: 0 30rpx;
  31. position: relative;
  32. border-bottom: 1rpx solid #f2f2f2;
  33. }
  34. .tab-item.data-v-502b983e {
  35. position: relative;
  36. padding: 20rpx 30rpx;
  37. margin-right: 50rpx;
  38. font-size: 30rpx;
  39. color: #666;
  40. transition: all 0.3s ease;
  41. }
  42. .tab-item.active.data-v-502b983e {
  43. color: #333;
  44. font-weight: 600;
  45. }
  46. .tab-line.data-v-502b983e {
  47. position: absolute;
  48. bottom: 0;
  49. left: 50%;
  50. width: 0;
  51. height: 6rpx;
  52. background-color: #4dc971;
  53. border-radius: 3rpx;
  54. transition: all 0.3s ease;
  55. transform: translateX(-50%);
  56. }
  57. .tab-line.active.data-v-502b983e {
  58. width: 40rpx;
  59. }
  60. /* 内容区域样式 */
  61. .content-container.data-v-502b983e {
  62. height: calc(100vh - 88rpx);
  63. box-sizing: border-box;
  64. }
  65. .cards-section.data-v-502b983e {
  66. padding: 12rpx;
  67. }
  68. /* 内容卡片通用样式 */
  69. .content-card.data-v-502b983e {
  70. background-color: #fff;
  71. border-radius: 16rpx;
  72. margin-bottom: 24rpx;
  73. overflow: hidden;
  74. transition: all 0.2s ease;
  75. box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.08);
  76. position: relative;
  77. }
  78. .card-hover.data-v-502b983e {
  79. transform: translateY(-2rpx);
  80. box-shadow: 0 6rpx 16rpx rgba(0, 0, 0, 0.12);
  81. }
  82. /* 缩略图 */
  83. .content-thumbnail.data-v-502b983e {
  84. position: relative;
  85. width: 100%;
  86. height: 300rpx;
  87. background-color: #f0f0f0;
  88. }
  89. .thumbnail-image.data-v-502b983e {
  90. width: 100%;
  91. height: 100%;
  92. object-fit: cover;
  93. }
  94. /* 播放按钮 */
  95. .play-button.data-v-502b983e {
  96. position: absolute;
  97. top: 50%;
  98. left: 50%;
  99. transform: translate(-50%, -50%);
  100. width: 70rpx;
  101. height: 70rpx;
  102. background-color: rgba(0, 0, 0, 0.5);
  103. border-radius: 50%;
  104. display: flex;
  105. align-items: center;
  106. justify-content: center;
  107. z-index: 2;
  108. }
  109. .play-icon.data-v-502b983e {
  110. width: 0;
  111. height: 0;
  112. border-style: solid;
  113. border-width: 9rpx 0 9rpx 16rpx;
  114. border-color: transparent transparent transparent #ffffff;
  115. margin-left: 4rpx;
  116. }
  117. /* 视频时长 */
  118. .video-duration.data-v-502b983e {
  119. position: absolute;
  120. bottom: 10rpx;
  121. right: 10rpx;
  122. padding: 3rpx 8rpx;
  123. background-color: rgba(0, 0, 0, 0.6);
  124. color: #fff;
  125. font-size: 18rpx;
  126. border-radius: 10rpx;
  127. }
  128. /* 内容类型标签 */
  129. .content-type-tag.data-v-502b983e {
  130. position: absolute;
  131. top: 10rpx;
  132. left: 10rpx;
  133. padding: 4rpx 10rpx;
  134. font-size: 20rpx;
  135. border-radius: 6rpx;
  136. z-index: 2;
  137. }
  138. .content-type-tag.video.data-v-502b983e {
  139. background-color: #4dc971;
  140. color: #fff;
  141. }
  142. .content-type-tag.article.data-v-502b983e {
  143. background-color: #3498db;
  144. color: #fff;
  145. }
  146. /* 内容信息 */
  147. .content-info.data-v-502b983e {
  148. padding: 16rpx;
  149. position: relative;
  150. }
  151. .content-title.data-v-502b983e {
  152. font-size: 30rpx;
  153. font-weight: 600;
  154. color: #333;
  155. line-height: 1.4;
  156. margin-bottom: 10rpx;
  157. display: -webkit-box;
  158. -webkit-box-orient: vertical;
  159. -webkit-line-clamp: 2;
  160. overflow: hidden;
  161. }
  162. .source-name.data-v-502b983e {
  163. color: #999;
  164. font-size: 22rpx;
  165. }
  166. .info-row.data-v-502b983e {
  167. display: flex;
  168. justify-content: space-between;
  169. align-items: center;
  170. }
  171. .view-count.data-v-502b983e {
  172. color: #c0c0c0;
  173. font-size: 20rpx;
  174. display: flex;
  175. align-items: center;
  176. }
  177. .view-count .iconfont.data-v-502b983e {
  178. margin-right: 4rpx;
  179. }
  180. /* 空状态 */
  181. .empty-state.data-v-502b983e {
  182. display: flex;
  183. flex-direction: column;
  184. align-items: center;
  185. justify-content: center;
  186. padding: 120rpx 0;
  187. }
  188. .empty-image.data-v-502b983e {
  189. width: 180rpx;
  190. height: 180rpx;
  191. margin-bottom: 16rpx;
  192. }
  193. .empty-text.data-v-502b983e {
  194. font-size: 26rpx;
  195. color: #999;
  196. }
  197. /* AI按钮 */
  198. .assistant-btn.data-v-502b983e {
  199. position: fixed;
  200. right: 30rpx;
  201. bottom: 100rpx;
  202. height: 80rpx;
  203. border-radius: 40rpx;
  204. background: linear-gradient(135deg, #42b983, #3db160);
  205. display: flex;
  206. align-items: center;
  207. padding: 0 24rpx;
  208. box-shadow: 0 6rpx 20rpx rgba(66, 185, 131, 0.35);
  209. z-index: 99;
  210. transition: all 0.25s ease;
  211. }
  212. .assistant-icon.data-v-502b983e {
  213. width: 68rpx;
  214. height: 68rpx;
  215. margin-right: 10rpx;
  216. }
  217. .btn-hover.data-v-502b983e {
  218. transform: scale(1.05);
  219. box-shadow: 0 8rpx 24rpx rgba(66, 185, 131, 0.45);
  220. }
  221. .btn-text.data-v-502b983e {
  222. font-size: 28rpx;
  223. color: #fff;
  224. font-weight: 500;
  225. }