/* pages/list/list.wxss */ .container { padding: 0; background: transparent; /* 确保顶部有足够的安全区 */ padding-top: max(env(safe-area-inset-top), 16px); } /* 顶部标题区域 */ .header-section { padding: 16px 16px 12px; background: transparent; } .header-content { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; } .header-title { font-size: 20px; font-weight: 600; color: #333; } .header-subtitle { font-size: 14px; color: #666; display: block; } .add-button { width: 32px; height: 32px; background: #0052d9; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; } .add-button:active { background: #0034b5; transform: scale(0.95); } /* 统计概览卡片 */ .stats-card { background: rgba(255, 255, 255, 0.95); border-radius: 12px; padding: 16px; margin: 0 16px 16px; border: 1px solid rgba(240, 240, 240, 0.8); backdrop-filter: blur(10px); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); } .stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; } .stat-item { text-align: center; } .stat-number { display: block; font-size: 18px; font-weight: 600; color: #0052d9; line-height: 1; margin-bottom: 4px; } .stat-label { display: block; font-size: 12px; color: #666; line-height: 1; } /* 搜索和筛选工具栏 */ .toolbar-section { padding: 0 16px 12px; } .search-box { margin-bottom: 12px; } .search-input { background: #ffffff; border-radius: 8px; border: 1px solid #e0e0e0; } .filter-tabs { display: flex; gap: 8px; } .filter-tab { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 8px 12px; border-radius: 8px; background: #f5f5f5; transition: all 0.2s ease; position: relative; } .filter-tab.active { background: #0052d9; color: white; } .filter-tab text { font-size: 12px; line-height: 1; } .tab-count { font-size: 10px; opacity: 0.7; margin-top: 2px; } /* 排序和筛选选项 */ .sort-section { padding: 0 16px 12px; display: flex; gap: 12px; align-items: center; } .sort-options { display: flex; gap: 8px; flex: 1; } .sort-option { display: flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 16px; background: #f5f5f5; transition: all 0.2s ease; font-size: 12px; } .sort-option.active { background: #0052d9; color: white; } .priority-filter { display: flex; gap: 6px; } .priority-filter-item { display: flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 12px; background: #f5f5f5; transition: all 0.2s ease; font-size: 11px; } .priority-filter-item.active { background: #0052d9; color: white; } .priority-dot { width: 6px; height: 6px; border-radius: 50%; } .priority-dot.high { background: #e34d59; } .priority-dot.medium { background: #ed7b2f; } .priority-dot.low { background: #0052d9; } /* 任务列表 */ .todo-list-scroll { flex: 1; padding: 0 16px; /* 确保底部有足够的安全区 */ padding-bottom: max(env(safe-area-inset-bottom), 100px); } .todo-list { display: flex; flex-direction: column; gap: 8px; padding-bottom: 16px; } .todo-item { background: #ffffff; border-radius: 12px; padding: 16px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); border: 1px solid #f0f0f0; transition: all 0.2s ease; } .todo-item.completed { background: #fafafa; opacity: 0.8; } .todo-item:active { transform: scale(0.98); } .todo-main { display: flex; gap: 12px; } .todo-checkbox { flex-shrink: 0; margin-top: 2px; } .todo-content { flex: 1; display: flex; flex-direction: column; gap: 8px; } .todo-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; } .todo-text { font-size: 15px; color: #333; line-height: 1.4; flex: 1; font-weight: 500; } .todo-text.completed { text-decoration: line-through; color: #999; } .todo-priority { flex-shrink: 0; } .todo-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; } .meta-left { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; } .meta-right { flex-shrink: 0; } .todo-time { font-size: 12px; color: #999; } .todo-category { font-size: 11px; color: #0052d9; background: rgba(0, 82, 217, 0.1); padding: 2px 6px; border-radius: 8px; } .todo-deadline { font-size: 11px; color: #ed7b2f; background: rgba(237, 123, 47, 0.1); padding: 2px 6px; border-radius: 8px; } .todo-deadline.overdue { color: #e34d59; background: rgba(227, 77, 89, 0.1); } .completed-time { font-size: 11px; color: #00a870; background: rgba(0, 168, 112, 0.1); padding: 2px 6px; border-radius: 8px; } .todo-note { font-size: 13px; color: #666; line-height: 1.4; background: #f9f9f9; padding: 8px 12px; border-radius: 6px; border-left: 3px solid #0052d9; } .todo-actions { display: flex; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px solid #f0f0f0; } .action-btn { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #f5f5f5; transition: all 0.2s ease; } .action-btn:active { transform: scale(0.9); background: #e0e0e0; } /* 底部操作栏 */ .bottom-actions { padding: 12px 16px; background: #ffffff; border-top: 1px solid #f0f0f0; display: flex; justify-content: space-between; align-items: center; /* 添加底部安全区适配 */ padding-bottom: max(env(safe-area-inset-bottom), 12px); } .action-group { display: flex; gap: 8px; } .clear-btn, .export-btn { background: #f5f5f5; color: #666; border: 1px solid #e0e0e0; } .task-summary { font-size: 12px; color: #666; } /* 空状态样式 */ .empty-state { text-align: center; padding: 60px 20px; color: #999; } .empty-state .t-icon { margin-bottom: 12px; opacity: 0.5; } .empty-text { font-size: 14px; display: block; } /* 添加任务半屏样式 */ .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; }