123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534 |
- /**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;
- }
|