index.wxss 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534
  1. /**index.wxss**/
  2. page {
  3. background-color: #F9F9F9;
  4. font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  5. color: #333;
  6. padding-bottom: 40rpx;
  7. }
  8. /* pages/index/index.wxss */
  9. /* 已有内容... */
  10. button {
  11. margin: 20rpx auto;
  12. width: 200rpx;
  13. height: 80rpx;
  14. line-height: 80rpx;
  15. text-align: center;
  16. border: 2rpx solid #E7624F;
  17. color: #E7624F;
  18. border-radius: 20rpx;
  19. }
  20. image {
  21. width: 100rpx;
  22. height: 100rpx;
  23. border-radius: 50%;
  24. margin: 20rpx auto;
  25. }
  26. text {
  27. font-size: 30rpx;
  28. text-align: center;
  29. display: block;
  30. }
  31. .container {
  32. padding: 0 20rpx;
  33. display: flex;
  34. flex-direction: column;
  35. align-items: center;
  36. }
  37. /* ================= 统一内容区域样式 ================= */
  38. .time-picker-container,
  39. .content-section {
  40. width: 100%;
  41. max-width: 710rpx;
  42. background: #FFFFFF;
  43. border-radius: 16rpx;
  44. padding: 30rpx;
  45. margin-bottom: 30rpx;
  46. box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.05);
  47. }
  48. /* ================= 时间滑块 ================= */
  49. .time-picker-header {
  50. display: flex;
  51. justify-content: space-between;
  52. align-items: center;
  53. margin-bottom: 36rpx;
  54. }
  55. .time-picker-title {
  56. font-size: 32rpx;
  57. font-weight: 600;
  58. color: #333333;
  59. }
  60. .time-value-display {
  61. background: linear-gradient(135deg, #FF6B81 0%, #FF8E53 100%);
  62. border-radius: 24rpx;
  63. padding: 12rpx 24rpx;
  64. display: flex;
  65. align-items: baseline;
  66. box-shadow: 0 4rpx 12rpx rgba(255, 107, 129, 0.3);
  67. }
  68. .time-number {
  69. font-size: 36rpx;
  70. font-weight: 700;
  71. color: #FFFFFF;
  72. margin-right: 8rpx;
  73. }
  74. .time-unit {
  75. font-size: 24rpx;
  76. color: rgba(255, 255, 255, 0.9);
  77. }
  78. .slider-container {
  79. position: relative;
  80. padding: 0 10rpx 40rpx;
  81. width: 95%;
  82. }
  83. .slider-container slider {
  84. width: 100% !important;
  85. margin: 0;
  86. padding: 0;
  87. }
  88. .slider-container .wx-slider-track {
  89. width: 100% !important;
  90. height: 8rpx !important;
  91. border-radius: 4rpx !important;
  92. }
  93. .slider-container .wx-slider-handle {
  94. width: 28rpx !important;
  95. height: 28rpx !important;
  96. margin-top: -11rpx !important;
  97. border: 4rpx solid #FFFFFF !important;
  98. box-shadow: 0 4rpx 12rpx rgba(255, 107, 129, 0.4) !important;
  99. }
  100. .slider-scale {
  101. display: flex;
  102. justify-content: space-between;
  103. margin-top: 16rpx;
  104. width: 100%;
  105. position: relative;
  106. height: 40rpx;
  107. }
  108. .scale-mark {
  109. position: absolute;
  110. display: flex;
  111. flex-direction: column;
  112. align-items: center;
  113. transform: translateX(-50%);
  114. }
  115. .scale-line {
  116. width: 2rpx;
  117. height: 12rpx;
  118. background: #D8D8D8;
  119. margin-bottom: 8rpx;
  120. }
  121. .scale-line.major {
  122. height: 20rpx;
  123. background: #FF6B81;
  124. }
  125. .scale-label {
  126. font-size: 22rpx;
  127. color: #999999;
  128. font-weight: 400;
  129. white-space: nowrap;
  130. }
  131. .scale-label.major-label {
  132. color: #FF6B81;
  133. font-weight: 500;
  134. }
  135. /* ================= 任务选择区域 ================= */
  136. .section-header {
  137. margin-bottom: 30rpx;
  138. }
  139. .section-title {
  140. font-size: 32rpx;
  141. font-weight: 500;
  142. color: #333;
  143. display: block;
  144. margin-bottom: 10rpx;
  145. }
  146. .section-subtitle {
  147. font-size: 26rpx;
  148. color: #999;
  149. }
  150. .task-categories {
  151. display: flex;
  152. flex-wrap: wrap;
  153. justify-content: space-between;
  154. margin-bottom: 20rpx;
  155. }
  156. .category-item {
  157. width: 25%;
  158. display: flex;
  159. flex-direction: column;
  160. align-items: center;
  161. margin-bottom: 30rpx;
  162. }
  163. .category-icon {
  164. width: 100rpx;
  165. height: 100rpx;
  166. border-radius: 50%;
  167. background: #F5F5F5;
  168. display: flex;
  169. justify-content: center;
  170. align-items: center;
  171. margin-bottom: 15rpx;
  172. transition: all 0.2s ease;
  173. }
  174. .category-icon image {
  175. width: 50rpx;
  176. height: 50rpx;
  177. }
  178. .category-icon.active {
  179. background: #E7624F;
  180. }
  181. .category-icon.active image {
  182. filter: brightness(0) invert(1);
  183. }
  184. .custom-icon {
  185. font-size: 40rpx;
  186. color: #999;
  187. }
  188. .category-icon.active .custom-icon {
  189. color: #FFF;
  190. }
  191. .category-name {
  192. font-size: 26rpx;
  193. color: #666;
  194. }
  195. /* 自定义任务区域 */
  196. .custom-task-section {
  197. margin-top: 20rpx;
  198. padding-top: 20rpx;
  199. border-top: 1rpx solid #EEE;
  200. }
  201. .task-input {
  202. width: 100%;
  203. height: 90rpx;
  204. background: #FAFAFA;
  205. border-radius: 12rpx;
  206. padding: 0 25rpx;
  207. font-size: 28rpx;
  208. margin-bottom: 25rpx;
  209. border: 1rpx solid #EEE;
  210. }
  211. .placeholder {
  212. color: #CCC;
  213. }
  214. .action-buttons {
  215. display: flex;
  216. justify-content: space-between;
  217. }
  218. .save-btn, .start-btn {
  219. width: 48%;
  220. height: 80rpx;
  221. line-height: 80rpx;
  222. border-radius: 12rpx;
  223. font-size: 28rpx;
  224. margin: 0;
  225. transition: all 0.2s ease;
  226. }
  227. .save-btn {
  228. background: #E7624F;
  229. color: #FFF;
  230. }
  231. .save-btn:active {
  232. background: #E55C70;
  233. }
  234. .start-btn {
  235. background: #4CAF50;
  236. color: #FFF;
  237. }
  238. .start-btn:active {
  239. background: #3E8E41;
  240. }
  241. /* 当前任务卡片 */
  242. .current-task-card {
  243. background: #FFF8F9;
  244. border-radius: 16rpx;
  245. padding: 30rpx;
  246. margin-top: 30rpx;
  247. border-left: 6rpx solid #FF6B81;
  248. }
  249. .task-card-header {
  250. display: flex;
  251. justify-content: space-between;
  252. align-items: center;
  253. margin-bottom: 20rpx;
  254. }
  255. .card-title {
  256. font-size: 28rpx;
  257. font-weight: 500;
  258. color: #FF6B81;
  259. }
  260. .task-time-badge {
  261. background: #FF6B81;
  262. color: #FFF;
  263. padding: 5rpx 15rpx;
  264. border-radius: 20rpx;
  265. font-size: 24rpx;
  266. }
  267. .task-content {
  268. font-size: 32rpx;
  269. margin-bottom: 30rpx;
  270. line-height: 1.4;
  271. border-radius: 20rpx;
  272. }
  273. .start-focus-btn {
  274. width: 100%;
  275. height: 90rpx;
  276. line-height: 90rpx;
  277. background: #FF6B81;
  278. color: #FFF;
  279. border-radius: 12rpx;
  280. font-size: 32rpx;
  281. font-weight: 500;
  282. }
  283. .start-focus-btn:active {
  284. background: #E55C70;
  285. }
  286. /* 计划列表 */
  287. .plan-count {
  288. font-size: 26rpx;
  289. color: #999;
  290. margin-left: 10rpx;
  291. }
  292. .plan-card {
  293. background: #FAFAFA;
  294. border-radius: 12rpx;
  295. padding: 25rpx;
  296. margin-bottom: 20rpx;
  297. display: flex;
  298. justify-content: space-between;
  299. transition: all 0.2s ease;
  300. }
  301. .plan-card.active {
  302. background: #FFF8F9;
  303. border-left: 6rpx solid #FF6B81;
  304. }
  305. .plan-content {
  306. flex: 1;
  307. }
  308. .plan-text {
  309. font-size: 28rpx;
  310. margin-bottom: 10rpx;
  311. line-height: 1.4;
  312. border-radius: 20rpx;
  313. }
  314. .plan-meta {
  315. display: flex;
  316. align-items: center;
  317. }
  318. .plan-time {
  319. font-size: 24rpx;
  320. color: #FF6B81;
  321. background: rgba(255, 107, 129, 0.1);
  322. padding: 3rpx 12rpx;
  323. border-radius: 10rpx;
  324. margin-right: 15rpx;
  325. }
  326. .plan-date {
  327. font-size: 24rpx;
  328. color: #999;
  329. }
  330. .plan-actions {
  331. display: flex;
  332. align-items: center;
  333. }
  334. .action-btn {
  335. width: 60rpx;
  336. height: 60rpx;
  337. border-radius: 50%;
  338. display: flex;
  339. justify-content: center;
  340. align-items: center;
  341. margin-left: 15rpx;
  342. }
  343. .edit-btn {
  344. background: rgba(74, 144, 226, 0.1);
  345. }
  346. .delete-btn {
  347. background: rgba(255, 77, 79, 0.1);
  348. }
  349. .action-icon {
  350. width: 30rpx;
  351. height: 30rpx;
  352. }
  353. /* 主要按钮 */
  354. .primary-btn {
  355. width: 100%;
  356. max-width: 710rpx;
  357. height: 90rpx;
  358. line-height: 90rpx;
  359. background: #FF6B81;
  360. color: #FFF;
  361. border-radius: 12rpx;
  362. font-size: 32rpx;
  363. font-weight: 500;
  364. margin-top: 30rpx;
  365. }
  366. .primary-btn:active {
  367. background: #E55C70;
  368. }
  369. /* 专注时钟界面 */
  370. .focus-clock {
  371. background: #E7624F;
  372. display: flex;
  373. flex-direction: column;
  374. align-items: center;
  375. justify-content: center;
  376. color: #FFF;
  377. width: 100%;
  378. position: relative;
  379. }
  380. .progress-container {
  381. position: relative;
  382. width: 500rpx;
  383. height: 500rpx;
  384. margin: 0 auto 60rpx;
  385. display: flex;
  386. justify-content: center;
  387. align-items: center;
  388. }
  389. .progress-bg, .progress-active {
  390. position: absolute;
  391. width: 100%;
  392. height: 100%;
  393. }
  394. .time-display {
  395. position: absolute;
  396. top: 40%;
  397. left: 50%;
  398. transform: translate(-50%, -50%);
  399. font-size: 72rpx;
  400. font-weight: 300;
  401. width: 100%;
  402. text-align: center;
  403. }
  404. .task-name {
  405. position: absolute;
  406. top: 60%;
  407. left: 50%;
  408. transform: translateX(-50%);
  409. font-size: 32rpx;
  410. width: 100%;
  411. text-align: center;
  412. padding: 0 50rpx;
  413. box-sizing: border-box;
  414. }
  415. .control-buttons {
  416. width: 100%;
  417. padding: 0 60rpx;
  418. box-sizing: border-box;
  419. position: absolute;
  420. bottom: 100rpx;
  421. display: flex;
  422. justify-content: center;
  423. }
  424. .action-button {
  425. display: flex;
  426. flex-direction: column;
  427. align-items: center;
  428. justify-content: center;
  429. color: #FFF;
  430. font-size: 28rpx;
  431. margin: 0 30rpx;
  432. }
  433. .btn-icon {
  434. width: 60rpx;
  435. height: 60rpx;
  436. margin-bottom: 10rpx;
  437. }
  438. .action-buttons-group {
  439. display: flex;
  440. justify-content: space-between;
  441. width: 100%;
  442. }
  443. .finish-btn .btn-icon {
  444. filter: brightness(0) invert(1);
  445. }
  446. .pause-btn .btn-icon {
  447. filter: brightness(0) invert(1);
  448. }
  449. .continue-btn .btn-icon {
  450. filter: brightness(0) invert(1);
  451. }
  452. .cancel-btn .btn-icon {
  453. filter: brightness(0) invert(1);
  454. }
  455. .back{
  456. height: 270rpx;
  457. overflow: hidden;
  458. }