614 lines
9.5 KiB
Plaintext
614 lines
9.5 KiB
Plaintext
/* pages/index/index.wxss */
|
|
|
|
.container {
|
|
padding: 0;
|
|
background: transparent;
|
|
/* 增大安全区,避开胶囊按钮 */
|
|
padding-top: max(env(safe-area-inset-top), 60px);
|
|
position: relative;
|
|
}
|
|
|
|
/* 顶部渐变背景 */
|
|
.gradient-background {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 220px;
|
|
background: linear-gradient(135deg,
|
|
rgba(114, 67, 255, 0.28) 0%,
|
|
rgba(67, 123, 255, 0.22) 20%,
|
|
rgba(0, 191, 255, 0.15) 40%,
|
|
rgba(159, 122, 234, 0.08) 60%,
|
|
rgba(255, 255, 255, 0.03) 80%,
|
|
rgba(255, 255, 255, 0) 100%);
|
|
/* 添加动态效果 */
|
|
background-size: 200% 200%;
|
|
animation: gradientShift 8s ease-in-out infinite;
|
|
z-index: 1;
|
|
}
|
|
|
|
/* 渐变动画 */
|
|
@keyframes gradientShift {
|
|
0% {
|
|
background-position: 0% 50%;
|
|
}
|
|
50% {
|
|
background-position: 100% 50%;
|
|
}
|
|
100% {
|
|
background-position: 0% 50%;
|
|
}
|
|
}
|
|
|
|
/* 问候区域 */
|
|
.greeting-section {
|
|
padding: 30px 16px 20px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
position: relative;
|
|
z-index: 2;
|
|
}
|
|
|
|
.greeting-content {
|
|
flex: 1;
|
|
}
|
|
|
|
.greeting {
|
|
display: block;
|
|
font-size: 24px;
|
|
font-weight: 600;
|
|
color: #333333;
|
|
margin-bottom: 4px;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.date {
|
|
display: block;
|
|
font-size: 14px;
|
|
color: #999999;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
/* 统计概览 */
|
|
.stats-overview {
|
|
padding: 0 16px 16px;
|
|
position: relative;
|
|
z-index: 2;
|
|
}
|
|
|
|
/* 紧凑型进度卡片 */
|
|
.compact-progress-card {
|
|
background: rgba(255, 255, 255, 0.95);
|
|
border-radius: 12px;
|
|
padding: 16px;
|
|
margin-bottom: 8px;
|
|
border: 1px solid rgba(240, 240, 240, 0.8);
|
|
backdrop-filter: blur(10px);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
|
|
}
|
|
|
|
/* 迷你圆形进度环 */
|
|
.progress-mini-circle {
|
|
position: relative;
|
|
width: 60px;
|
|
height: 60px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.mini-circle-bg {
|
|
position: absolute;
|
|
width: 60px;
|
|
height: 60px;
|
|
border-radius: 50%;
|
|
border: 4px solid #f0f0f0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.mini-circle-progress {
|
|
position: absolute;
|
|
width: 60px;
|
|
height: 60px;
|
|
border-radius: 50%;
|
|
border: 4px solid transparent;
|
|
border-top-color: #0052d9;
|
|
box-sizing: border-box;
|
|
transform-origin: center;
|
|
transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
|
|
.mini-circle-inner {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
text-align: center;
|
|
}
|
|
|
|
.mini-percentage {
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
color: #0052d9;
|
|
line-height: 1;
|
|
}
|
|
|
|
/* 紧凑统计信息 */
|
|
.compact-stats {
|
|
flex: 1;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.compact-info {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.compact-title {
|
|
font-size: 12px;
|
|
color: #666;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.compact-numbers {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
}
|
|
|
|
.compact-number {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: #333;
|
|
line-height: 1;
|
|
}
|
|
|
|
.achievement-mini {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.achievement-mini-text {
|
|
font-size: 11px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* 快速操作按钮 */
|
|
.quick-actions-mini {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.action-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 2px;
|
|
padding: 8px;
|
|
border-radius: 8px;
|
|
background: rgba(0, 82, 217, 0.05);
|
|
transition: all 0.2s ease;
|
|
min-width: 44px;
|
|
}
|
|
|
|
.action-item:active {
|
|
transform: scale(0.95);
|
|
background: rgba(0, 82, 217, 0.1);
|
|
}
|
|
|
|
.action-text {
|
|
font-size: 10px;
|
|
color: #666;
|
|
line-height: 1;
|
|
}
|
|
|
|
/* 今日任务 */
|
|
.today-tasks {
|
|
padding: 0 16px 20px;
|
|
position: relative;
|
|
z-index: 2;
|
|
}
|
|
|
|
.section-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.section-title {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: #333333;
|
|
}
|
|
|
|
.task-count {
|
|
font-size: 12px;
|
|
color: #999999;
|
|
background: #f5f5f5;
|
|
padding: 2px 8px;
|
|
border-radius: 12px;
|
|
}
|
|
|
|
.task-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.task-item {
|
|
background: #ffffff;
|
|
padding: 16px;
|
|
border-radius: 8px;
|
|
border: 1px solid #f0f0f0;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.task-content {
|
|
display: flex;
|
|
align-items: center;
|
|
flex: 1;
|
|
gap: 12px;
|
|
}
|
|
|
|
.task-text {
|
|
font-size: 14px;
|
|
color: #333333;
|
|
line-height: 1.4;
|
|
flex: 1;
|
|
}
|
|
|
|
.task-text.completed {
|
|
text-decoration: line-through;
|
|
color: #999999;
|
|
}
|
|
|
|
.task-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
/* 快速操作 */
|
|
.quick-actions {
|
|
padding: 0 16px 20px;
|
|
position: relative;
|
|
z-index: 2;
|
|
}
|
|
|
|
/* 添加任务半屏 */
|
|
.add-task-sheet {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(0, 0, 0, 0.5);
|
|
z-index: 2000;
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
|
|
.add-task-sheet.show {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
}
|
|
|
|
.sheet-content {
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
background: #ffffff;
|
|
border-radius: 20px 20px 0 0;
|
|
max-height: 85vh;
|
|
transform: translateY(100%);
|
|
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.add-task-sheet.show .sheet-content {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
/* 半屏头部 */
|
|
.sheet-header {
|
|
padding: 12px 20px 16px;
|
|
border-bottom: 1px solid #f0f0f0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
position: relative;
|
|
}
|
|
|
|
.sheet-handle {
|
|
position: absolute;
|
|
top: 8px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
width: 32px;
|
|
height: 4px;
|
|
background: #e0e0e0;
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.sheet-title {
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
color: #333;
|
|
flex: 1;
|
|
text-align: center;
|
|
}
|
|
|
|
.sheet-close {
|
|
width: 32px;
|
|
height: 32px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 50%;
|
|
background: #f5f5f5;
|
|
transition: background 0.2s ease;
|
|
}
|
|
|
|
.sheet-close:active {
|
|
background: #e0e0e0;
|
|
}
|
|
|
|
/* 半屏主体 */
|
|
.sheet-body {
|
|
flex: 1;
|
|
padding: 20px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.input-section {
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.input-label {
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
color: #333;
|
|
margin-bottom: 8px;
|
|
display: block;
|
|
}
|
|
|
|
.task-input,
|
|
.note-input {
|
|
width: 100%;
|
|
border: 1px solid #e0e0e0;
|
|
border-radius: 8px;
|
|
background: #fafafa;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.task-input:focus,
|
|
.note-input:focus {
|
|
border-color: #0052d9;
|
|
background: #ffffff;
|
|
box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
|
|
}
|
|
|
|
/* 优先级选择器 */
|
|
.priority-selector {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.priority-item {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 12px 16px;
|
|
border: 1px solid #e0e0e0;
|
|
border-radius: 8px;
|
|
background: #ffffff;
|
|
transition: all 0.2s ease;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.priority-item:active {
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
.priority-item.active {
|
|
border-color: #0052d9;
|
|
background: rgba(0, 82, 217, 0.05);
|
|
}
|
|
|
|
.priority-dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
margin-right: 12px;
|
|
}
|
|
|
|
.priority-dot.high {
|
|
background: #e34d59;
|
|
}
|
|
|
|
.priority-dot.medium {
|
|
background: #ed7b2f;
|
|
}
|
|
|
|
.priority-dot.low {
|
|
background: #0052d9;
|
|
}
|
|
|
|
.priority-text {
|
|
font-size: 14px;
|
|
color: #333;
|
|
}
|
|
|
|
/* 分类选择器 */
|
|
.category-selector {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 12px;
|
|
}
|
|
|
|
.category-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding: 16px 12px;
|
|
border: 1px solid #e0e0e0;
|
|
border-radius: 8px;
|
|
background: #ffffff;
|
|
transition: all 0.2s ease;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.category-item:active {
|
|
transform: scale(0.95);
|
|
}
|
|
|
|
.category-item.active {
|
|
border-color: #0052d9;
|
|
background: rgba(0, 82, 217, 0.05);
|
|
}
|
|
|
|
.category-item .t-icon {
|
|
margin-bottom: 6px;
|
|
color: #666;
|
|
}
|
|
|
|
.category-item.active .t-icon {
|
|
color: #0052d9;
|
|
}
|
|
|
|
.category-item text {
|
|
font-size: 12px;
|
|
color: #333;
|
|
}
|
|
|
|
.category-item.active text {
|
|
color: #0052d9;
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* 日期时间选择器 */
|
|
.datetime-picker {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 12px 16px;
|
|
border: 1px solid #e0e0e0;
|
|
border-radius: 8px;
|
|
background: #ffffff;
|
|
transition: all 0.2s ease;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.datetime-picker:active {
|
|
background: #fafafa;
|
|
border-color: #0052d9;
|
|
}
|
|
|
|
.datetime-text {
|
|
flex: 1;
|
|
margin: 0 12px;
|
|
font-size: 14px;
|
|
color: #333;
|
|
}
|
|
|
|
.datetime-text.placeholder {
|
|
color: #999;
|
|
}
|
|
|
|
/* 清除截止时间按钮 */
|
|
.datetime-clear {
|
|
margin-top: 8px;
|
|
text-align: center;
|
|
}
|
|
|
|
.clear-text {
|
|
font-size: 12px;
|
|
color: #e34d59;
|
|
padding: 4px 8px;
|
|
border: 1px solid #e34d59;
|
|
border-radius: 4px;
|
|
background: rgba(227, 77, 89, 0.05);
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.datetime-clear:active .clear-text {
|
|
background: rgba(227, 77, 89, 0.1);
|
|
}
|
|
|
|
/* 半屏底部 */
|
|
.sheet-footer {
|
|
padding: 16px 20px;
|
|
border-top: 1px solid #f0f0f0;
|
|
display: flex;
|
|
gap: 12px;
|
|
background: #ffffff;
|
|
border-radius: 0 0 20px 20px;
|
|
}
|
|
|
|
.cancel-btn {
|
|
flex: 1;
|
|
height: 44px;
|
|
border: 1px solid #e0e0e0;
|
|
background: #ffffff;
|
|
color: #666;
|
|
}
|
|
|
|
.confirm-btn {
|
|
flex: 2;
|
|
height: 44px;
|
|
background: linear-gradient(135deg, #0052d9 0%, #0043a5 100%);
|
|
border: none;
|
|
}
|
|
|
|
.confirm-btn[disabled] {
|
|
background: #e0e0e0;
|
|
color: #999;
|
|
}
|
|
|
|
/* 隐藏日期选择器 */
|
|
.hidden {
|
|
display: none;
|
|
}
|
|
|
|
/* 空状态 */
|
|
.empty-state {
|
|
text-align: center;
|
|
padding: 40px 20px;
|
|
}
|
|
|
|
.empty-text {
|
|
display: block;
|
|
font-size: 14px;
|
|
color: #999999;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
/* 对话框 */
|
|
.dialog-content {
|
|
padding: 20px 0;
|
|
}
|
|
|
|
.priority-label {
|
|
font-size: 14px;
|
|
color: #333333;
|
|
margin-bottom: 12px;
|
|
display: block;
|
|
}
|
|
|
|
.priority-options {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|