details.wxss 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312
  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. border: none;
  70. padding: 15rpx 0 !important;
  71. border-radius: 40rpx;
  72. width: 30% !important;
  73. /* height: 70rpx; */
  74. font-size: 28rpx;
  75. font-weight: 500;
  76. display: flex;
  77. justify-content: center;
  78. align-content: center;
  79. }
  80. .yulan {
  81. background: #409eff;
  82. color: #fff;
  83. border: 1rpx solid #409eff;
  84. }
  85. .shoucang {
  86. background: #edecec !important;
  87. border: 1rpx solid #edecec !important;
  88. }
  89. .shoucangs {
  90. background: #ffaa2b;
  91. border: 1rpx solid #ffaa2b;
  92. color: #fff;
  93. }
  94. .xiazai {
  95. background: #ecf5ff;
  96. color: #409eff;
  97. border: 1rpx solid #9fceff;
  98. }
  99. .related-courses {
  100. width: 100%;
  101. padding: 20rpx;
  102. border-radius: 10rpx;
  103. font-size: 34rpx;
  104. }
  105. .course-list{
  106. width: 100%;
  107. margin-top: 20rpx;
  108. display: flex;
  109. flex-wrap: wrap;
  110. }
  111. .card {
  112. width: 48%;
  113. margin-right: 4%;
  114. margin-bottom: 20rpx;
  115. background-color: #fff;
  116. border-radius: 12rpx;
  117. overflow: hidden;
  118. box-shadow: 0 2rpx 6rpx rgba(0, 0, 0, 0.1);
  119. }
  120. .card:nth-child(2n) {
  121. margin-right: 0;
  122. }
  123. .label {
  124. width: 60rpx;
  125. height: 43rpx;
  126. text-align: center;
  127. line-height: 45rpx;
  128. font-size: 26rpx;
  129. padding: 5rpx 16rpx;
  130. border-radius: 40rpx;
  131. }
  132. .label.PDF { background: #ffeaea; color: #ff4d4f; border: 1rpx solid #fde2e2;}
  133. .label.shipin { background: #e6f7ff; color: #1890ff; border: 1rpx solid #d9ecff;}
  134. .label.yinpin { background: #f6ffed; color: #52c41a; border: 1rpx solid #e1f3d8;}
  135. .label.PPT { background: #fff7e6; color: #faad14; border: 1rpx solid #fde2e2;}
  136. .preview-btn {
  137. flex: 1;
  138. background-color: #409eff;
  139. color: #fff;
  140. border: none;
  141. border-radius: 40rpx;
  142. padding: 12rpx 0;
  143. font-size: 32rpx;
  144. display: flex;
  145. justify-content: center;
  146. align-content: center;
  147. }
  148. .cardimg {
  149. width: 100%;
  150. height: 300rpx;
  151. background: papayawhip;
  152. border-radius: 12rpx;
  153. position: relative;
  154. }
  155. .labelwg {
  156. position: absolute;
  157. top: 16rpx;
  158. left: 16rpx;
  159. }
  160. .info {
  161. display: flex;
  162. justify-content: space-between;
  163. padding-top: 16rpx;
  164. font-size: 26rpx;
  165. }
  166. .title_box.list {
  167. width: 320rpx;
  168. height: 100%;
  169. margin-right: 80rpx;
  170. }
  171. .item-content {
  172. padding: 20rpx;
  173. }
  174. .item-title {
  175. font-size: 32rpx;
  176. color: #333;
  177. margin-bottom: 10rpx;
  178. }
  179. .item-subtitle {
  180. font-size: 28rpx;
  181. color: #666;
  182. margin-bottom: 10rpx;
  183. }
  184. .item-download-count {
  185. font-size: 24rpx;
  186. color: #999;
  187. margin-bottom: 20rpx;
  188. }
  189. .item-buttons {
  190. display: flex;
  191. align-items: center;
  192. align-content: center;
  193. }
  194. .download-icon {
  195. width: 45rpx;
  196. height: 40rpx;
  197. margin-left: 20rpx;
  198. }
  199. .download-icons {
  200. width: 45rpx;
  201. height: 40rpx;
  202. margin-right: 20rpx;
  203. }
  204. .group-options {
  205. display: flex;
  206. justify-content: space-between;
  207. margin-top: 20rpx;
  208. width: 100%;
  209. }
  210. .option {
  211. text-align: center;
  212. margin-top: 20rpx;
  213. display: flex;
  214. align-items: center;
  215. flex-direction: column;
  216. }
  217. .option-icon {
  218. width: 80rpx;
  219. height: 80rpx;
  220. border-radius: 50%;
  221. }
  222. .option-text {
  223. font-size: 28rpx;
  224. color: #666;
  225. margin-top: 16rpx;
  226. }
  227. .course-lists {
  228. display: flex;
  229. flex-direction: column;
  230. gap: 20rpx;
  231. margin-top: 20rpx;
  232. }
  233. .course-items {
  234. background-color: #fff;
  235. border-radius: 8rpx;
  236. overflow: hidden;
  237. }
  238. .course-infos {
  239. padding: 20rpx;
  240. }
  241. .course-titles {
  242. font-size: 36rpx;
  243. font-weight: bold;
  244. color: #333;
  245. margin-bottom: 10rpx;
  246. }
  247. .course-descriptions {
  248. font-size: 28rpx;
  249. color: #666;
  250. line-height: 1.5;
  251. }
  252. .download-iconss {
  253. width: 35rpx;
  254. height: 35rpx;
  255. margin-right: 15rpx;
  256. margin-top: 0.5rpx;
  257. }
  258. .download-iconss2 {
  259. width: 30rpx;
  260. height: 30rpx;
  261. margin-right: 15rpx;
  262. margin-top: 3rpx;
  263. }
  264. .active {
  265. background-color: #ffaa2b !important; /* 高亮背景色 */
  266. color: #ffffff; /* 高亮文字颜色 */
  267. }