details.wxss 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  1. .container {
  2. margin: 0rpx 30rpx;
  3. width: calc(100% - 60rpx);
  4. padding: 0 0;
  5. }
  6. .header {
  7. width: calc(100% - 40rpx);
  8. background-color: #fff;
  9. padding: 20rpx;
  10. border-radius: 10rpx;
  11. margin-bottom: 20rpx;
  12. }
  13. .file-preview {
  14. width: 100%;
  15. height: 400rpx;
  16. margin-bottom: 20rpx;
  17. position: relative;
  18. }
  19. .file-previews {
  20. width: 100%;
  21. margin-bottom: 20rpx;
  22. position: relative;
  23. }
  24. .play-button {
  25. width: 100%;
  26. text-align: center;
  27. position: absolute;
  28. top: 50%;
  29. left: 50%;
  30. transform: translate(-50%, -50%);
  31. font-size: 38rpx;
  32. font-weight: bold;
  33. color: #333333;
  34. }
  35. .course-videos {
  36. width: 100%;
  37. height: 100%;
  38. text-align: center;
  39. }
  40. video, audio {
  41. width: 100%;
  42. height: 100%;
  43. object-fit: cover;
  44. margin-bottom: 20rpx;
  45. }
  46. .header text {
  47. display: block;
  48. margin-bottom: 10rpx;
  49. }
  50. .video-preview {
  51. width: 100%;
  52. position: relative;
  53. background-color: #ddd;
  54. border-radius: 10rpx;
  55. margin-bottom: 20rpx;
  56. }
  57. .video-placeholder {
  58. width: 100%;
  59. height: 100%;
  60. object-fit: cover;
  61. }
  62. .buttons {
  63. width: 100%;
  64. display: flex;
  65. justify-content: space-between;
  66. margin-bottom: 20rpx;
  67. }
  68. .preview-btns, .download-btn {
  69. /* background-color: #409eff; */
  70. /* color: white; */
  71. border: none;
  72. padding: 15rpx 0 !important;
  73. border-radius: 40rpx;
  74. width: 30% !important;
  75. height: 70rpx;
  76. font-size: 28rpx;
  77. font-weight: 500;
  78. }
  79. .yulan {
  80. background: #409eff;
  81. color: #fff;
  82. border: 1rpx solid #409eff;
  83. }
  84. .shoucang {
  85. background: #edecec !important;
  86. border: 1rpx solid #edecec !important;
  87. }
  88. .shoucangs {
  89. background: #ffaa2b;
  90. border: 1rpx solid #ffaa2b;
  91. color: #fff;
  92. }
  93. .xiazai {
  94. background: #ecf5ff;
  95. color: #409eff;
  96. border: 1rpx solid #9fceff;
  97. }
  98. .related-courses {
  99. width: 100%;
  100. padding: 20rpx;
  101. border-radius: 10rpx;
  102. font-size: 34rpx;
  103. }
  104. .course-list{
  105. width: 100%;
  106. margin-top: 20rpx;
  107. display: flex;
  108. flex-wrap: wrap;
  109. }
  110. .card {
  111. width: 48%;
  112. margin-right: 4%;
  113. margin-bottom: 20rpx;
  114. background-color: #fff;
  115. border-radius: 12rpx;
  116. overflow: hidden;
  117. box-shadow: 0 2rpx 6rpx rgba(0, 0, 0, 0.1);
  118. }
  119. .card:nth-child(2n) {
  120. margin-right: 0;
  121. }
  122. .label {
  123. width: 60rpx;
  124. height: 43rpx;
  125. text-align: center;
  126. line-height: 45rpx;
  127. font-size: 26rpx;
  128. padding: 5rpx 16rpx;
  129. border-radius: 40rpx;
  130. }
  131. .label.PDF { background: #ffeaea; color: #ff4d4f; border: 1rpx solid #fde2e2;}
  132. .label.shipin { background: #e6f7ff; color: #1890ff; border: 1rpx solid #d9ecff;}
  133. .label.yinpin { background: #f6ffed; color: #52c41a; border: 1rpx solid #e1f3d8;}
  134. .label.PPT { background: #fff7e6; color: #faad14; border: 1rpx solid #fde2e2;}
  135. .preview-btn {
  136. flex: 1;
  137. background-color: #409eff;
  138. color: #fff;
  139. border: none;
  140. border-radius: 40rpx;
  141. padding: 12rpx 0;
  142. font-size: 32rpx;
  143. display: flex;
  144. justify-content: center;
  145. align-content: center;
  146. }
  147. .cardimg {
  148. width: 100%;
  149. height: 300rpx;
  150. background: papayawhip;
  151. border-radius: 12rpx;
  152. position: relative;
  153. }
  154. .labelwg {
  155. position: absolute;
  156. top: 16rpx;
  157. left: 16rpx;
  158. }
  159. .info {
  160. display: flex;
  161. justify-content: space-between;
  162. padding-top: 16rpx;
  163. font-size: 26rpx;
  164. }
  165. .title_box.list {
  166. width: 320rpx;
  167. height: 100%;
  168. margin-right: 80rpx;
  169. }
  170. .item-content {
  171. padding: 20rpx;
  172. }
  173. .item-title {
  174. font-size: 32rpx;
  175. color: #333;
  176. margin-bottom: 10rpx;
  177. }
  178. .item-subtitle {
  179. font-size: 28rpx;
  180. color: #666;
  181. margin-bottom: 10rpx;
  182. }
  183. .item-download-count {
  184. font-size: 24rpx;
  185. color: #999;
  186. margin-bottom: 20rpx;
  187. }
  188. .item-buttons {
  189. display: flex;
  190. align-items: center;
  191. align-content: center;
  192. }
  193. .download-icon {
  194. width: 45rpx;
  195. height: 40rpx;
  196. margin-left: 20rpx;
  197. }
  198. .download-icons {
  199. width: 45rpx;
  200. height: 40rpx;
  201. margin-right: 20rpx;
  202. }
  203. .group-options {
  204. display: flex;
  205. justify-content: space-between;
  206. margin-top: 20rpx;
  207. width: 100%;
  208. }
  209. .option {
  210. text-align: center;
  211. margin-top: 20rpx;
  212. display: flex;
  213. align-items: center;
  214. flex-direction: column;
  215. }
  216. .option-icon {
  217. width: 80rpx;
  218. height: 80rpx;
  219. border-radius: 50%;
  220. }
  221. .option-text {
  222. font-size: 28rpx;
  223. color: #666;
  224. margin-top: 16rpx;
  225. }
  226. .course-lists {
  227. display: flex;
  228. flex-direction: column;
  229. gap: 20rpx;
  230. margin-top: 20rpx;
  231. }
  232. .course-items {
  233. background-color: #fff;
  234. border-radius: 8rpx;
  235. overflow: hidden;
  236. }
  237. .course-infos {
  238. padding: 20rpx;
  239. }
  240. .course-titles {
  241. font-size: 36rpx;
  242. font-weight: bold;
  243. color: #333;
  244. margin-bottom: 10rpx;
  245. }
  246. .course-descriptions {
  247. font-size: 28rpx;
  248. color: #666;
  249. line-height: 1.5;
  250. }
  251. .download-iconss {
  252. width: 30rpx;
  253. height: 30rpx;
  254. margin-right: 15rpx;
  255. }