audio.wxss 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287
  1. /* pages/audio/audio.wxss */
  2. .container {
  3. min-height: 100vh;
  4. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  5. padding: 60rpx 30rpx;
  6. color: #fff;
  7. position: relative;
  8. overflow: hidden;
  9. }
  10. .container::before {
  11. content: '';
  12. position: absolute;
  13. top: -30%;
  14. right: -20%;
  15. width: 500rpx;
  16. height: 500rpx;
  17. background: rgba(255, 255, 255, 0.1);
  18. border-radius: 50%;
  19. pointer-events: none;
  20. }
  21. .container::after {
  22. content: '';
  23. position: absolute;
  24. bottom: -20%;
  25. left: -15%;
  26. width: 400rpx;
  27. height: 400rpx;
  28. background: rgba(255, 255, 255, 0.08);
  29. border-radius: 50%;
  30. pointer-events: none;
  31. }
  32. .header {
  33. text-align: center;
  34. margin-bottom: 80rpx;
  35. position: relative;
  36. z-index: 1;
  37. }
  38. .cover {
  39. width: 340rpx;
  40. height: 340rpx;
  41. border-radius: 24rpx;
  42. margin: 0 auto 50rpx;
  43. box-shadow: 0 20rpx 60rpx rgba(0, 0, 0, 0.4);
  44. transition: transform 0.3s ease;
  45. position: relative;
  46. overflow: hidden;
  47. }
  48. .cover::after {
  49. content: '';
  50. position: absolute;
  51. top: 0;
  52. left: 0;
  53. right: 0;
  54. bottom: 0;
  55. background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  56. opacity: 0;
  57. transition: opacity 0.3s ease;
  58. pointer-events: none;
  59. }
  60. .title {
  61. font-size: 40rpx;
  62. font-weight: 600;
  63. margin-bottom: 24rpx;
  64. text-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.2);
  65. line-height: 1.4;
  66. }
  67. .narrator {
  68. font-size: 28rpx;
  69. opacity: 0.9;
  70. font-weight: 500;
  71. }
  72. .progress-section {
  73. display: flex;
  74. align-items: center;
  75. margin-bottom: 80rpx;
  76. position: relative;
  77. z-index: 1;
  78. gap: 20rpx;
  79. }
  80. .time-text {
  81. font-size: 26rpx;
  82. min-width: 90rpx;
  83. text-align: center;
  84. font-weight: 500;
  85. opacity: 0.95;
  86. }
  87. .progress-slider {
  88. flex: 1;
  89. }
  90. .controls {
  91. display: flex;
  92. justify-content: center;
  93. align-items: center;
  94. margin-bottom: 80rpx;
  95. position: relative;
  96. z-index: 1;
  97. gap: 40rpx;
  98. }
  99. .control-btn {
  100. display: flex;
  101. flex-direction: column;
  102. align-items: center;
  103. transition: all 0.3s ease;
  104. padding: 10rpx;
  105. }
  106. .control-btn:active {
  107. transform: scale(0.9);
  108. opacity: 0.8;
  109. }
  110. .control-btn .icon {
  111. font-size: 64rpx;
  112. margin-bottom: 12rpx;
  113. transition: transform 0.3s ease;
  114. }
  115. .control-btn:active .icon {
  116. transform: scale(1.1);
  117. }
  118. .control-btn .label {
  119. font-size: 24rpx;
  120. opacity: 0.9;
  121. font-weight: 500;
  122. }
  123. .play-btn {
  124. width: 140rpx;
  125. height: 140rpx;
  126. border-radius: 50%;
  127. background: rgba(255, 255, 255, 0.25);
  128. backdrop-filter: blur(10rpx);
  129. display: flex;
  130. align-items: center;
  131. justify-content: center;
  132. box-shadow: 0 8rpx 24rpx rgba(0, 0, 0, 0.3);
  133. border: 4rpx solid rgba(255, 255, 255, 0.3);
  134. transition: all 0.3s ease;
  135. position: relative;
  136. }
  137. .play-btn::before {
  138. content: '';
  139. position: absolute;
  140. top: -4rpx;
  141. left: -4rpx;
  142. right: -4rpx;
  143. bottom: -4rpx;
  144. border-radius: 50%;
  145. background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
  146. opacity: 0;
  147. transition: opacity 0.3s ease;
  148. pointer-events: none;
  149. }
  150. .play-btn:active {
  151. transform: scale(0.95);
  152. box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.4);
  153. }
  154. .play-btn:active::before {
  155. opacity: 1;
  156. }
  157. .play-btn .icon {
  158. font-size: 88rpx;
  159. margin: 0;
  160. text-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.2);
  161. }
  162. .settings {
  163. background: rgba(255, 255, 255, 0.15);
  164. backdrop-filter: blur(20rpx);
  165. border-radius: 24rpx;
  166. padding: 40rpx;
  167. border: 2rpx solid rgba(255, 255, 255, 0.2);
  168. box-shadow: 0 8rpx 32rpx rgba(0, 0, 0, 0.2);
  169. position: relative;
  170. z-index: 1;
  171. }
  172. .setting-item {
  173. margin-bottom: 40rpx;
  174. }
  175. .setting-item:last-child {
  176. margin-bottom: 0;
  177. }
  178. .setting-label {
  179. font-size: 30rpx;
  180. margin-bottom: 24rpx;
  181. display: block;
  182. font-weight: 500;
  183. opacity: 0.95;
  184. }
  185. .speed-slider {
  186. margin-bottom: 12rpx;
  187. }
  188. .speed-text {
  189. font-size: 26rpx;
  190. opacity: 0.9;
  191. text-align: right;
  192. display: block;
  193. font-weight: 600;
  194. background: rgba(255, 255, 255, 0.2);
  195. padding: 8rpx 16rpx;
  196. border-radius: 12rpx;
  197. display: inline-block;
  198. float: right;
  199. }
  200. .chapter-list-btn {
  201. width: 100%;
  202. height: 88rpx;
  203. line-height: 88rpx;
  204. background: rgba(255, 255, 255, 0.25);
  205. backdrop-filter: blur(10rpx);
  206. color: #fff;
  207. border-radius: 16rpx;
  208. font-size: 30rpx;
  209. font-weight: 500;
  210. border: 2rpx solid rgba(255, 255, 255, 0.3);
  211. transition: all 0.3s ease;
  212. box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.2);
  213. }
  214. .chapter-list-btn::after {
  215. border: none;
  216. }
  217. .chapter-list-btn:active {
  218. background: rgba(255, 255, 255, 0.35);
  219. transform: scale(0.98);
  220. box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.3);
  221. }
  222. .loading {
  223. text-align: center;
  224. padding: 200rpx 40rpx;
  225. font-size: 28rpx;
  226. color: #fff;
  227. display: flex;
  228. flex-direction: column;
  229. align-items: center;
  230. position: relative;
  231. z-index: 1;
  232. }
  233. .loading text {
  234. margin-top: 20rpx;
  235. opacity: 0.9;
  236. }
  237. .loading::before {
  238. content: '';
  239. width: 40rpx;
  240. height: 40rpx;
  241. border: 4rpx solid rgba(255, 255, 255, 0.3);
  242. border-top-color: #fff;
  243. border-radius: 50%;
  244. animation: spin 0.8s linear infinite;
  245. }
  246. @keyframes spin {
  247. 0% {
  248. transform: rotate(0deg);
  249. }
  250. 100% {
  251. transform: rotate(360deg);
  252. }
  253. }