/* pages/schedule/schedule.wxss */ .container { min-height: 100vh; background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); animation: fadeIn 0.5s ease-out; } .header { background: linear-gradient(135deg, #9B59B6 0%, #8E44AD 100%); padding: 45rpx 30rpx; color: #ffffff; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 8rpx 24rpx rgba(155, 89, 182, 0.3); animation: slideInDown 0.6s cubic-bezier(0.4, 0, 0.2, 1); } .header-title { font-size: 44rpx; font-weight: bold; text-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.2); } .header-right { display: flex; align-items: center; gap: 20rpx; } .add-btn { width: 60rpx; height: 60rpx; background: rgba(255, 255, 255, 0.3); border-radius: 30rpx; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(10rpx); transition: all 0.3s ease; } .add-btn:active { transform: scale(0.95); background: rgba(255, 255, 255, 0.4); } .add-icon { font-size: 48rpx; color: #fff; font-weight: bold; line-height: 1; } /* 周次切换器 */ .week-selector { display: flex; align-items: center; justify-content: space-between; padding: 20rpx 30rpx; background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%); margin: 20rpx 30rpx; border-radius: 20rpx; box-shadow: 0 8rpx 24rpx rgba(0, 0, 0, 0.08); animation: slideInDown 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s both; } .week-btn { width: 80rpx; height: 80rpx; background: linear-gradient(135deg, #9B59B6 0%, #8E44AD 100%); border-radius: 16rpx; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; box-shadow: 0 4rpx 12rpx rgba(155, 89, 182, 0.3); } .week-btn:active { transform: scale(0.95); box-shadow: 0 2rpx 8rpx rgba(155, 89, 182, 0.2); } .week-arrow { color: #ffffff; font-size: 32rpx; font-weight: bold; } .week-display { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 40rpx; cursor: pointer; } .week-text { font-size: 40rpx; font-weight: bold; color: #9B59B6; margin-bottom: 8rpx; } .week-hint { font-size: 22rpx; color: #999; } .current-week { font-size: 26rpx; padding: 12rpx 24rpx; background-color: rgba(255, 255, 255, 0.25); border-radius: 24rpx; backdrop-filter: blur(10rpx); box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.1); } .schedule-container { padding: 20rpx 30rpx; } .schedule-table { width: 100%; background-color: #ffffff; border-radius: 20rpx; overflow: hidden; box-shadow: 0 12rpx 32rpx rgba(0, 0, 0, 0.1); animation: scaleIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both; } .table-header { display: flex; background: linear-gradient(135deg, #9B59B6 0%, #8E44AD 100%); color: #ffffff; box-shadow: 0 4rpx 12rpx rgba(155, 89, 182, 0.2); } .table-row { display: flex; border-bottom: 2rpx solid #f0f0f0; transition: all 0.3s ease; } .table-row:last-child { border-bottom: none; } .time-column { flex: 0 0 100rpx; width: 100rpx; } .day-column { flex: 1; min-width: 0; } .header-cell { padding: 20rpx 8rpx; text-align: center; font-size: 26rpx; font-weight: bold; border-right: 2rpx solid rgba(255, 255, 255, 0.2); display: flex; align-items: center; justify-content: center; } .header-cell:last-child { border-right: none; } .time-cell { display: flex; align-items: center; justify-content: center; padding: 16rpx 8rpx; font-size: 24rpx; color: #666666; background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%); border-right: 2rpx solid #f0f0f0; font-weight: 600; } .course-cell { padding: 12rpx 8rpx; border-right: 2rpx solid #f0f0f0; min-height: 110rpx; display: flex; flex-direction: column; justify-content: center; align-items: center; background-color: #ffffff; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); position: relative; overflow: hidden; text-overflow: ellipsis; } .course-cell:last-child { border-right: none; } .course-cell.has-course { background: linear-gradient(135deg, #E8D5F2 0%, #F0E5F5 100%); box-shadow: inset 0 2rpx 8rpx rgba(155, 89, 182, 0.15); cursor: pointer; } .course-cell.has-course::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4rpx; background: linear-gradient(to bottom, #9B59B6, #8E44AD); } .course-cell.has-course:active { transform: scale(0.98); background: linear-gradient(135deg, #d5b8e8 0%, #e5d5f0 100%); } .course-name { font-size: 22rpx; font-weight: bold; color: #9B59B6; margin-bottom: 6rpx; text-align: center; line-height: 1.3; word-break: break-all; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } .course-location { font-size: 20rpx; color: #8E44AD; text-align: center; opacity: 0.9; word-break: break-all; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .empty-hint { display: flex; align-items: center; justify-content: center; opacity: 0.3; width: 100%; height: 100%; } .hint-text { font-size: 32rpx; color: #999; font-weight: 300; } /* 快捷操作按钮 */ .action-buttons { padding: 20rpx 30rpx; animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both; } .action-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 16rpx; padding: 28rpx; background: linear-gradient(135deg, #9B59B6 0%, #8E44AD 100%); border-radius: 20rpx; border: none; box-shadow: 0 8rpx 24rpx rgba(155, 89, 182, 0.3); transition: all 0.3s ease; } .action-btn:active { transform: scale(0.98); box-shadow: 0 4rpx 16rpx rgba(155, 89, 182, 0.2); } .btn-icon { font-size: 36rpx; } .btn-text { font-size: 28rpx; font-weight: bold; color: #ffffff; } .legend { display: flex; justify-content: center; gap: 50rpx; padding: 35rpx; animation: fadeIn 0.8s ease-out 0.4s both; } .legend-item { display: flex; align-items: center; gap: 15rpx; padding: 12rpx 24rpx; background-color: #ffffff; border-radius: 20rpx; box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.06); transition: all 0.3s ease; } .legend-item:active { transform: scale(0.95); } .legend-color { width: 48rpx; height: 48rpx; border-radius: 12rpx; background-color: #ffffff; border: 3rpx solid #e0e0e0; transition: all 0.3s ease; } .legend-color.has-course { background: linear-gradient(135deg, #E8D5F2 0%, #F0E5F5 100%); border-color: #9B59B6; box-shadow: 0 2rpx 8rpx rgba(155, 89, 182, 0.3); } .legend-text { font-size: 26rpx; color: #666666; font-weight: 500; } /* 空格子提示 */ .empty-hint { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; opacity: 0.2; transition: all 0.2s ease; } .course-cell:active .empty-hint { opacity: 0.5; } .hint-text { font-size: 40rpx; color: #9B59B6; font-weight: 300; } /* 编辑弹窗样式 */ .modal-mask { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0, 0, 0, 0.6); display: flex; align-items: center; justify-content: center; z-index: 10000; animation: fadeIn 0.3s ease; } .modal-dialog { width: 85%; max-width: 600rpx; background-color: #ffffff; border-radius: 20rpx; overflow: hidden; box-shadow: 0 20rpx 60rpx rgba(0, 0, 0, 0.3); animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1); } @keyframes modalSlideIn { from { opacity: 0; transform: translateY(50rpx) scale(0.9); } to { opacity: 1; transform: translateY(0) scale(1); } } .modal-header { padding: 35rpx 30rpx; background: linear-gradient(135deg, #9B59B6 0%, #8E44AD 100%); color: #ffffff; display: flex; justify-content: space-between; align-items: center; } .modal-title { font-size: 32rpx; font-weight: bold; } .modal-close { width: 50rpx; height: 50rpx; display: flex; align-items: center; justify-content: center; font-size: 36rpx; border-radius: 25rpx; transition: all 0.2s ease; } .modal-close:active { background-color: rgba(255, 255, 255, 0.2); } .modal-content { padding: 40rpx 30rpx; } .form-item { margin-bottom: 30rpx; } .form-item:last-child { margin-bottom: 0; } .form-label { display: block; font-size: 28rpx; color: #333; margin-bottom: 15rpx; font-weight: 600; } .form-input { width: 100%; padding: 25rpx 20rpx; border: 2rpx solid #e0e0e0; border-radius: 12rpx; font-size: 28rpx; background-color: #f8f9fa; transition: all 0.3s ease; } .form-input:focus { border-color: #9B59B6; background-color: #fff; } .time-display { padding: 25rpx 20rpx; background: linear-gradient(135deg, #E8D5F2 0%, #F0E5F5 100%); border-radius: 12rpx; font-size: 28rpx; color: #9B59B6; font-weight: 600; text-align: center; } .modal-footer { padding: 25rpx 30rpx; background-color: #f8f9fa; display: flex; gap: 15rpx; } .modal-btn { flex: 1; padding: 25rpx; border-radius: 12rpx; font-size: 28rpx; font-weight: 600; border: none; transition: all 0.3s ease; } .modal-btn::after { border: none; } .cancel-btn { background-color: #e0e0e0; color: #666; } .cancel-btn:active { background-color: #d0d0d0; } .delete-btn { background: linear-gradient(135deg, #FF5252 0%, #E53935 100%); color: #fff; } .delete-btn:active { opacity: 0.8; } .confirm-btn { background: linear-gradient(135deg, #9B59B6 0%, #8E44AD 100%); color: #fff; } .confirm-btn:active { opacity: 0.8; }