video.wxss 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352
  1. /* pages/video/video.wxss */
  2. .container {
  3. display: flex;
  4. flex-direction: column;
  5. height: 100vh;
  6. background-color: #f8f8f8;
  7. position: relative;
  8. }
  9. /* 头部导航样式 */
  10. .nav-container {
  11. position: fixed;
  12. top: 0;
  13. left: 0;
  14. width: 100%;
  15. z-index: 1000;
  16. height: 180rpx;
  17. padding-top: 100rpx;
  18. background-color: #f8f8f8;
  19. box-sizing: border-box;
  20. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
  21. }
  22. .hello-text {
  23. font-size: 34rpx;
  24. font-weight: bold;
  25. color: #333;
  26. position: absolute;
  27. left: 30rpx;
  28. }
  29. .nav-category-scroll {
  30. width: 100%;
  31. height: 80rpx;
  32. white-space: nowrap;
  33. }
  34. .nav-category-list {
  35. display: inline-flex;
  36. padding: 0 24rpx;
  37. height: 100%;
  38. }
  39. .nav-category-item {
  40. display: flex;
  41. align-items: center;
  42. justify-content: center;
  43. padding: 0 32rpx;
  44. height: 100%;
  45. font-size: 30rpx;
  46. color: #333;
  47. position: relative;
  48. transition: all 0.3s ease;
  49. }
  50. .nav-category-item.active {
  51. color: #333;
  52. font-weight: 500;
  53. }
  54. .nav-category-item.active::after {
  55. content: '';
  56. position: absolute;
  57. bottom: 0;
  58. left: 50%;
  59. transform: translateX(-50%);
  60. width: 80rpx;
  61. height: 6rpx;
  62. background: linear-gradient(to right, #007aff, #af97ed);
  63. border-radius: 3rpx;
  64. }
  65. /* 列表容器 */
  66. .list-container {
  67. flex: 1;
  68. height: calc(100vh - 180rpx);
  69. background-color: #f8f8f8;
  70. }
  71. .list {
  72. padding: 20rpx;
  73. box-sizing: border-box;
  74. }
  75. /* 视频卡片样式 */
  76. .video-item {
  77. position: relative;
  78. margin-bottom: 20rpx;
  79. border-radius: 12rpx;
  80. overflow: hidden;
  81. box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.05);
  82. }
  83. .video-item::before{
  84. content: "";
  85. width: 100%;
  86. height: 100%;
  87. background-color: rgba(0, 0, 0, 0.4);
  88. z-index: 2;
  89. position: absolute;
  90. top: 0;
  91. left: 0;
  92. }
  93. .video-cover-container {
  94. width: 100%;
  95. height: 380rpx;
  96. }
  97. .video-cover {
  98. width: 100%;
  99. height: 100%;
  100. }
  101. .play-button-container {
  102. position: absolute;
  103. top: 0;
  104. left: 0;
  105. right: 0;
  106. bottom: 0;
  107. display: flex;
  108. align-items: center;
  109. justify-content: center;
  110. z-index: 3;
  111. }
  112. .play-button {
  113. width: 100rpx;
  114. height: 100rpx;
  115. border-radius: 50%;
  116. background-color: rgba(255, 255, 255, 0.5);
  117. display: flex;
  118. align-items: center;
  119. justify-content: center;
  120. }
  121. .play-button-lock {
  122. /* width: 100rpx; */
  123. height: 100rpx;
  124. text-align: center;
  125. /* display: flex;
  126. align-items: center;
  127. justify-content: center; */
  128. }
  129. .play-button-lock-title {
  130. width: 100%;
  131. color: yellow;
  132. font-weight: 600;
  133. }
  134. .play-icon {
  135. width: 100rpx;
  136. height: 100rpx;
  137. }
  138. .video-title {
  139. position: absolute;
  140. top: 20rpx;
  141. left: 20rpx;
  142. font-size: 42rpx;
  143. font-weight: bold;
  144. color: #fff;
  145. margin-bottom: 10rpx;
  146. display: -webkit-box;
  147. width: 95%;
  148. z-index: 3;
  149. }
  150. .video-play-count {
  151. position: absolute;
  152. bottom: 20rpx;
  153. left: 20rpx;
  154. font-size: 36rpx;
  155. color: #fff;
  156. margin-top: 10rpx;
  157. z-index: 3;
  158. }
  159. .share-button {
  160. position: absolute;
  161. right: 20rpx;
  162. bottom: 20rpx;
  163. display: flex;
  164. flex-direction: row;
  165. align-items: center;
  166. justify-content: center;
  167. background: #07c160;
  168. border-radius: 40rpx;
  169. padding: 7rpx 20rpx;
  170. z-index: 3;
  171. border: 2rpx solid #fff;
  172. }
  173. .share-icon {
  174. width: 48rpx;
  175. height: 48rpx;
  176. margin-right: 8rpx;
  177. }
  178. .share-button text {
  179. font-size: 28rpx;
  180. color: #fff;
  181. font-weight: 500;
  182. }
  183. .share-cover-button {
  184. position: absolute;
  185. top: 0;
  186. left: 0;
  187. width: 100%;
  188. height: 100%;
  189. opacity: 0;
  190. z-index: 4;
  191. padding: 0;
  192. margin: 0;
  193. border: none;
  194. background: transparent;
  195. }
  196. .share-cover-button::after {
  197. display: none;
  198. }
  199. /* 加载状态样式 */
  200. .loading-status {
  201. padding: 30rpx 0;
  202. text-align: center;
  203. font-size: 28rpx;
  204. color: #999;
  205. }
  206. .loading {
  207. display: flex;
  208. flex-direction: column;
  209. align-items: center;
  210. justify-content: center;
  211. height: 100rpx;
  212. }
  213. .loading-spinner {
  214. width: 40rpx;
  215. height: 40rpx;
  216. border: 4rpx solid #f3f3f3;
  217. border-top: 4rpx solid #07c160;
  218. border-radius: 50%;
  219. animation: spin 1s linear infinite;
  220. margin-bottom: 10rpx;
  221. }
  222. .finished {
  223. height: 80rpx;
  224. line-height: 80rpx;
  225. color: #999;
  226. }
  227. .empty {
  228. display: flex;
  229. flex-direction: column;
  230. align-items: center;
  231. justify-content: center;
  232. padding: 100rpx 0;
  233. }
  234. .empty-icon {
  235. width: 200rpx;
  236. height: 200rpx;
  237. margin-bottom: 20rpx;
  238. }
  239. @keyframes spin {
  240. 0% { transform: rotate(0deg); }
  241. 100% { transform: rotate(360deg); }
  242. }
  243. /* 刷新按钮 */
  244. .refresh-container {
  245. position: fixed;
  246. right: 20rpx;
  247. bottom: 100rpx;
  248. z-index: 1001;
  249. width: 120rpx;
  250. height: 120rpx;
  251. display: flex;
  252. align-items: center;
  253. justify-content: center;
  254. }
  255. @keyframes rotate {
  256. from {
  257. transform: rotate(0deg);
  258. }
  259. to {
  260. transform: rotate(360deg);
  261. }
  262. }
  263. /* 分类切换样式 */
  264. .category-scroll {
  265. position: fixed;
  266. top: 180rpx;
  267. left: 0;
  268. width: 100%;
  269. height: 88rpx;
  270. background-color: #fff;
  271. z-index: 100;
  272. white-space: nowrap;
  273. border-bottom: 1rpx solid #f5f5f5;
  274. }
  275. .category-list {
  276. display: inline-flex;
  277. padding: 0 24rpx;
  278. height: 100%;
  279. }
  280. .category-item {
  281. display: flex;
  282. align-items: center;
  283. justify-content: center;
  284. padding: 0 32rpx;
  285. height: 100%;
  286. font-size: 30rpx;
  287. color: #333;
  288. position: relative;
  289. transition: all 0.3s ease;
  290. }
  291. .category-item.active {
  292. color: #333;
  293. font-weight: 500;
  294. }
  295. .category-item.active::after {
  296. content: '';
  297. position: absolute;
  298. bottom: 0;
  299. left: 50%;
  300. transform: translateX(-50%);
  301. width: 48rpx;
  302. height: 6rpx;
  303. background-color: #333;
  304. border-radius: 3rpx;
  305. }
  306. .ad-custom-card-1 {
  307. width: 100%;
  308. /* padding: 0 20rpx; */
  309. box-sizing: border-box;
  310. border-radius: 8rpx;
  311. margin-bottom: 20rpx;
  312. }