/**index.wxss**/ page { background-color: #F9F9F9; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; color: #333; padding-bottom: 40rpx; } /* pages/index/index.wxss */ /* 已有内容... */ button { margin: 20rpx auto; width: 200rpx; height: 80rpx; line-height: 80rpx; text-align: center; border: 2rpx solid #E7624F; color: #E7624F; border-radius: 20rpx; } image { width: 100rpx; height: 100rpx; border-radius: 50%; margin: 20rpx auto; } text { font-size: 30rpx; text-align: center; display: block; } .container { padding: 0 20rpx; display: flex; flex-direction: column; align-items: center; } /* ================= 统一内容区域样式 ================= */ .time-picker-container, .content-section { width: 100%; max-width: 710rpx; background: #FFFFFF; border-radius: 16rpx; padding: 30rpx; margin-bottom: 30rpx; box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.05); } /* ================= 时间滑块 ================= */ .time-picker-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 36rpx; } .time-picker-title { font-size: 32rpx; font-weight: 600; color: #333333; } .time-value-display { background: linear-gradient(135deg, #FF6B81 0%, #FF8E53 100%); border-radius: 24rpx; padding: 12rpx 24rpx; display: flex; align-items: baseline; box-shadow: 0 4rpx 12rpx rgba(255, 107, 129, 0.3); } .time-number { font-size: 36rpx; font-weight: 700; color: #FFFFFF; margin-right: 8rpx; } .time-unit { font-size: 24rpx; color: rgba(255, 255, 255, 0.9); } .slider-container { position: relative; padding: 0 10rpx 40rpx; width: 95%; } .slider-container slider { width: 100% !important; margin: 0; padding: 0; } .slider-container .wx-slider-track { width: 100% !important; height: 8rpx !important; border-radius: 4rpx !important; } .slider-container .wx-slider-handle { width: 28rpx !important; height: 28rpx !important; margin-top: -11rpx !important; border: 4rpx solid #FFFFFF !important; box-shadow: 0 4rpx 12rpx rgba(255, 107, 129, 0.4) !important; } .slider-scale { display: flex; justify-content: space-between; margin-top: 16rpx; width: 100%; position: relative; height: 40rpx; } .scale-mark { position: absolute; display: flex; flex-direction: column; align-items: center; transform: translateX(-50%); } .scale-line { width: 2rpx; height: 12rpx; background: #D8D8D8; margin-bottom: 8rpx; } .scale-line.major { height: 20rpx; background: #FF6B81; } .scale-label { font-size: 22rpx; color: #999999; font-weight: 400; white-space: nowrap; } .scale-label.major-label { color: #FF6B81; font-weight: 500; } /* ================= 任务选择区域 ================= */ .section-header { margin-bottom: 30rpx; } .section-title { font-size: 32rpx; font-weight: 500; color: #333; display: block; margin-bottom: 10rpx; } .section-subtitle { font-size: 26rpx; color: #999; } .task-categories { display: flex; flex-wrap: wrap; justify-content: space-between; margin-bottom: 20rpx; } .category-item { width: 25%; display: flex; flex-direction: column; align-items: center; margin-bottom: 30rpx; } .category-icon { width: 100rpx; height: 100rpx; border-radius: 50%; background: #F5F5F5; display: flex; justify-content: center; align-items: center; margin-bottom: 15rpx; transition: all 0.2s ease; } .category-icon image { width: 50rpx; height: 50rpx; } .category-icon.active { background: #E7624F; } .category-icon.active image { filter: brightness(0) invert(1); } .custom-icon { font-size: 40rpx; color: #999; } .category-icon.active .custom-icon { color: #FFF; } .category-name { font-size: 26rpx; color: #666; } /* 自定义任务区域 */ .custom-task-section { margin-top: 20rpx; padding-top: 20rpx; border-top: 1rpx solid #EEE; } .task-input { width: 100%; height: 90rpx; background: #FAFAFA; border-radius: 12rpx; padding: 0 25rpx; font-size: 28rpx; margin-bottom: 25rpx; border: 1rpx solid #EEE; } .placeholder { color: #CCC; } .action-buttons { display: flex; justify-content: space-between; } .save-btn, .start-btn { width: 48%; height: 80rpx; line-height: 80rpx; border-radius: 12rpx; font-size: 28rpx; margin: 0; transition: all 0.2s ease; } .save-btn { background: #E7624F; color: #FFF; } .save-btn:active { background: #E55C70; } .start-btn { background: #4CAF50; color: #FFF; } .start-btn:active { background: #3E8E41; } /* 当前任务卡片 */ .current-task-card { background: #FFF8F9; border-radius: 16rpx; padding: 30rpx; margin-top: 30rpx; border-left: 6rpx solid #FF6B81; } .task-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20rpx; } .card-title { font-size: 28rpx; font-weight: 500; color: #FF6B81; } .task-time-badge { background: #FF6B81; color: #FFF; padding: 5rpx 15rpx; border-radius: 20rpx; font-size: 24rpx; } .task-content { font-size: 32rpx; margin-bottom: 30rpx; line-height: 1.4; border-radius: 20rpx; } .start-focus-btn { width: 100%; height: 90rpx; line-height: 90rpx; background: #FF6B81; color: #FFF; border-radius: 12rpx; font-size: 32rpx; font-weight: 500; } .start-focus-btn:active { background: #E55C70; } /* 计划列表 */ .plan-count { font-size: 26rpx; color: #999; margin-left: 10rpx; } .plan-card { background: #FAFAFA; border-radius: 12rpx; padding: 25rpx; margin-bottom: 20rpx; display: flex; justify-content: space-between; transition: all 0.2s ease; } .plan-card.active { background: #FFF8F9; border-left: 6rpx solid #FF6B81; } .plan-content { flex: 1; } .plan-text { font-size: 28rpx; margin-bottom: 10rpx; line-height: 1.4; border-radius: 20rpx; } .plan-meta { display: flex; align-items: center; } .plan-time { font-size: 24rpx; color: #FF6B81; background: rgba(255, 107, 129, 0.1); padding: 3rpx 12rpx; border-radius: 10rpx; margin-right: 15rpx; } .plan-date { font-size: 24rpx; color: #999; } .plan-actions { display: flex; align-items: center; } .action-btn { width: 60rpx; height: 60rpx; border-radius: 50%; display: flex; justify-content: center; align-items: center; margin-left: 15rpx; } .edit-btn { background: rgba(74, 144, 226, 0.1); } .delete-btn { background: rgba(255, 77, 79, 0.1); } .action-icon { width: 30rpx; height: 30rpx; } /* 主要按钮 */ .primary-btn { width: 100%; max-width: 710rpx; height: 90rpx; line-height: 90rpx; background: #FF6B81; color: #FFF; border-radius: 12rpx; font-size: 32rpx; font-weight: 500; margin-top: 30rpx; } .primary-btn:active { background: #E55C70; } /* 专注时钟界面 */ .focus-clock { background: #E7624F; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #FFF; width: 100%; position: relative; } .progress-container { position: relative; width: 500rpx; height: 500rpx; margin: 0 auto 60rpx; display: flex; justify-content: center; align-items: center; } .progress-bg, .progress-active { position: absolute; width: 100%; height: 100%; } .time-display { position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%); font-size: 72rpx; font-weight: 300; width: 100%; text-align: center; } .task-name { position: absolute; top: 60%; left: 50%; transform: translateX(-50%); font-size: 32rpx; width: 100%; text-align: center; padding: 0 50rpx; box-sizing: border-box; } .control-buttons { width: 100%; padding: 0 60rpx; box-sizing: border-box; position: absolute; bottom: 100rpx; display: flex; justify-content: center; } .action-button { display: flex; flex-direction: column; align-items: center; justify-content: center; color: #FFF; font-size: 28rpx; margin: 0 30rpx; } .btn-icon { width: 60rpx; height: 60rpx; margin-bottom: 10rpx; } .action-buttons-group { display: flex; justify-content: space-between; width: 100%; } .finish-btn .btn-icon { filter: brightness(0) invert(1); } .pause-btn .btn-icon { filter: brightness(0) invert(1); } .continue-btn .btn-icon { filter: brightness(0) invert(1); } .cancel-btn .btn-icon { filter: brightness(0) invert(1); } .back{ height: 270rpx; overflow: hidden; }