/* ---- error state ---- */ .error-card { margin-top: 160rpx; text-align: center; padding: 0 40rpx; } .error-icon { width: 96rpx; height: 96rpx; line-height: 96rpx; margin: 0 auto 24rpx; border-radius: 50%; background: #fdecea; color: #c0392b; font-size: 48rpx; font-weight: 700; text-align: center; } .error-title { color: #5A4A3A; font-size: 28rpx; margin-bottom: 48rpx; line-height: 1.6; } .btn-retry { display: inline-block; min-width: 240rpx; background: #C67B30; color: #fff; border-radius: 12rpx; } .btn-hover { opacity: .85; transform: scale(.98); } .page { padding: 32rpx; padding-bottom: calc(32rpx + env(safe-area-inset-bottom)); height: 100vh; display: flex; flex-direction: column; box-sizing: border-box; overflow: hidden; background: #FDFBF7; } .fade-in { animation: fadeIn .3s ease; } @keyframes fadeIn { from { opacity: 0; transform: translateY(8rpx); } to { opacity: 1; transform: none; } } .card { background: #fff; border-radius: 16rpx; padding: 24rpx; box-shadow: 0 4rpx 16rpx rgba(44, 24, 16, 0.05); } .top-card { flex-shrink: 0; border: 1rpx solid transparent; box-shadow: 0 8rpx 24rpx rgba(44, 24, 16, 0.08); } .top-card.done-card { border-color: rgba(46, 125, 50, 0.25); } /* 打卡状态卡 */ .status-row { display: flex; align-items: center; gap: 20rpx; } .date-chip { width: 124rpx; flex-shrink: 0; border-radius: 14rpx; padding: 16rpx 8rpx; text-align: center; background: #2C1810; color: #FDFBF7; } .date-week { font-size: 22rpx; opacity: 0.75; } .date-num { font-size: 40rpx; font-weight: 800; margin-top: 6rpx; line-height: 1; } .status-main { flex: 1; min-width: 0; } .status-title { font-size: 40rpx; font-weight: 800; } .status-title.done { color: #2E7D32; } .status-title.undone { color: #C67B30; } .status-sub { margin-top: 10rpx; font-size: 24rpx; color: #7A6A5C; } /* 状态按钮:两行布局 */ .pills-grid { position: relative; display: flex; flex-wrap: wrap; gap: 16rpx; margin-top: 28rpx; padding-top: 24rpx; border-top: 1rpx solid #F2EDE7; } .pills-grid.disabled { opacity: 0.7; } .pill { display: inline-flex; align-items: center; justify-content: center; flex: 1 1 30%; min-width: 180rpx; box-sizing: border-box; margin: 0; padding: 18rpx 20rpx; border-radius: 999rpx; border: 1rpx solid #D8C7B4; background: #FFF; color: #5A4A3A; font-size: 26rpx; line-height: 1; } .pill.active { background: #C67B30; border-color: #C67B30; color: #fff; box-shadow: 0 6rpx 14rpx rgba(198, 123, 48, 0.22); } .pill-hover { opacity: 0.85; transform: scale(0.97); } .dot { width: 14rpx; height: 14rpx; border-radius: 50%; margin-right: 12rpx; flex-shrink: 0; } .submitting { position: absolute; left: 0; right: 0; top: 0; bottom: 0; background: rgba(253, 251, 247, 0.75); display: flex; align-items: center; justify-content: center; color: #C67B30; font-weight: 700; border-radius: 12rpx; z-index: 2; } /* 记录区 */ .record-panel { flex: 1; min-height: 0; display: flex; flex-direction: column; margin-top: 24rpx; } .record-scroll { flex: 1; min-height: 0; } .record-inner { padding: 4rpx 4rpx 24rpx; } .tabs { display: flex; border-bottom: 1rpx solid #eee; margin-bottom: 8rpx; } .tab { flex: 1; text-align: center; padding: 22rpx 0; color: #7A6A5C; transition: color .15s ease; } .tab.active { color: #C67B30; font-weight: 700; border-bottom: 4rpx solid #C67B30; transform: translateY(-2rpx); } .tab-hover { background: #f6efe6; } /* 小组头部 + 进度 */ .group-head { display: flex; align-items: center; justify-content: space-between; padding: 12rpx 8rpx; } .group-title { color: #C67B30; font-weight: 700; font-size: 26rpx; } .group-progress { padding: 6rpx 14rpx; border-radius: 999rpx; background: #f6efe6; color: #C67B30; font-size: 22rpx; } /* 成员列表 */ .member { display: flex; align-items: center; padding: 18rpx 8rpx; border-bottom: 1rpx solid #f2ede7; } .member-avatar { width: 60rpx; height: 60rpx; border-radius: 50%; background: #f6efe6; color: #C67B30; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; } .member-avatar.ok { background: #e8f4eb; color: #2E7D32; } .member-info { flex: 1; min-width: 0; margin-left: 16rpx; } /* 姓名与学号同一行;姓名过长时省略,学号始终完整 */ .member-line { display: flex; align-items: baseline; gap: 12rpx; } .member-name { font-size: 28rpx; color: #2C1810; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .member-sid { font-size: 22rpx; color: #8B7A6A; flex-shrink: 0; } .member.ok .member-name { color: #2E7D32; } .member-meta { margin-top: 6rpx; font-size: 22rpx; color: #8B7A6A; } .member-badge { flex-shrink: 0; margin-left: 12rpx; padding: 8rpx 16rpx; border-radius: 999rpx; font-size: 22rpx; } .member-badge.ok { background: #e8f4eb; color: #2E7D32; } .member-badge.idle { background: #f2ede7; color: #8B7A6A; } /* 历史 */ .history-item { background: #fff; border-radius: 12rpx; padding: 20rpx; margin-bottom: 16rpx; box-shadow: 0 4rpx 16rpx rgba(44, 24, 16, 0.04); } .history-head { display: flex; align-items: center; justify-content: space-between; } .history-date { font-size: 28rpx; font-weight: 700; color: #2C1810; } .history-badge { padding: 6rpx 14rpx; border-radius: 999rpx; font-size: 22rpx; } .history-time { margin-top: 8rpx; font-size: 22rpx; color: #999; } .history-note { margin-top: 12rpx; padding: 16rpx 20rpx; background: #faf6f0; border-radius: 8rpx; font-size: 24rpx; color: #5A4A3A; line-height: 1.5; word-break: break-all; } /* 空态 */ .empty { padding: 64rpx 24rpx; text-align: center; color: #B6A996; font-size: 26rpx; } .empty-icon { width: 96rpx; height: 96rpx; line-height: 96rpx; margin: 0 auto 20rpx; border-radius: 50%; background: #f6efe6; font-size: 48rpx; text-align: center; } .empty-text { color: #B6A996; } /* 骨架屏 */ .skeleton-card { background: #fff; border-radius: 16rpx; padding: 28rpx 24rpx; box-shadow: 0 4rpx 16rpx rgba(44, 24, 16, 0.04); } .sk { background: #F0EBE3; border-radius: 12rpx; } .sk-title { width: 60%; height: 40rpx; margin-bottom: 24rpx; } .sk-line { height: 24rpx; margin-top: 16rpx; } .w60 { width: 60%; } .w90 { width: 90%; } .skeleton-list { margin-top: 24rpx; } .sk-row { height: 96rpx; margin-bottom: 16rpx; } /* 顶部当前状态徽标 */ .hero-status { display: inline-flex; align-items: center; margin-top: 14rpx; padding: 8rpx 16rpx; border-radius: 999rpx; background: #F6F0E7; font-size: 24rpx; } .hero-status-dot { width: 12rpx; height: 12rpx; border-radius: 50%; margin-right: 10rpx; flex-shrink: 0; } .hero-status-label { font-weight: 700; } /* 日期 chip 可点击 */ .date-chip-hover { opacity: 0.8; } .date-arrow { font-size: 24rpx; color: #C67B30; margin-left: 6rpx; } /* ---- 老师视图:小组统计卡片 ---- */ .groups-list { padding: 4rpx 4rpx 24rpx; } .group-card { background: #fff; border-radius: 20rpx; padding: 22rpx 24rpx; margin-bottom: 18rpx; box-shadow: 0 6rpx 20rpx rgba(44, 24, 16, 0.05); } .group-card-hover { transform: scale(.99); box-shadow: 0 10rpx 24rpx rgba(44, 24, 16, 0.10); } .group-row { display: flex; align-items: center; gap: 16rpx; } .group-avatar { width: 52rpx; height: 52rpx; border-radius: 14rpx; background: linear-gradient(135deg, #F3E3CF, #FBE7D1); color: #C67B30; font-size: 26rpx; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; } .group-name { font-size: 30rpx; font-weight: 800; color: #2C1810; flex-shrink: 0; } .chevron { color: #CDBFAE; font-size: 32rpx; line-height: 1; flex-shrink: 0; transition: transform .15s ease; } .group-card-hover .chevron { transform: translateX(4rpx); } .group-counts { display: flex; align-items: center; justify-content: flex-end; gap: 10rpx; flex: 1; min-width: 0; } .count { font-size: 22rpx; white-space: nowrap; } .count.done { color: #2E7D32; background: #E8F4EB; padding: 6rpx 12rpx; border-radius: 999rpx; font-weight: 700; } .count.total { color: #C67B30; background: #FFF3E6; padding: 6rpx 12rpx; border-radius: 999rpx; font-weight: 700; } .progress-track { height: 10rpx; border-radius: 999rpx; background: #F2EDE7; margin-top: 18rpx; overflow: hidden; } .progress-bar { height: 100%; border-radius: 999rpx; background: linear-gradient(90deg, #C67B30, #EFA45D); transition: width .35s ease; box-shadow: 0 2rpx 6rpx rgba(198, 123, 48, 0.35); } .unassigned { margin: 4rpx 8rpx 20rpx; font-size: 24rpx; color: #8B7A6A; } .section-title { padding: 16rpx 4rpx 12rpx; font-size: 28rpx; font-weight: 700; color: #6B5D50; } /* ---- 老师详情视图 ---- */ .detail-head { display: flex; align-items: center; gap: 16rpx; padding: 8rpx 4rpx 16rpx; flex-shrink: 0; } .detail-title-wrap { flex: 1; min-width: 0; } .back { color: #C67B30; font-size: 30rpx; flex-shrink: 0; padding: 10rpx 16rpx 10rpx 0; border-radius: 12rpx; font-weight: 600; } .back-hover { opacity: .7; } .detail-title { font-size: 34rpx; font-weight: 800; color: #2C1810; } .detail-sub { margin-top: 6rpx; font-size: 24rpx; color: #A99A89; } .head-hover { opacity: .8; } .head-arrow { color: #C67B30; font-size: 22rpx; } .detail-progress { flex-shrink: 0; padding: 8rpx 20rpx; border-radius: 999rpx; font-size: 24rpx; background: #FFF3E6; color: #C67B30; font-weight: 700; } .detail-scroll { flex: 1; min-height: 0; padding: 0 4rpx; } .member-list { background: #fff; border-radius: 20rpx; padding: 8rpx 24rpx; box-shadow: 0 6rpx 20rpx rgba(44, 24, 16, 0.05); } .bottom-space { height: 40rpx; } .state-block { padding: 64rpx 0; text-align: center; color: #A99A89; font-size: 26rpx; } .state-icon { font-size: 40rpx; margin-bottom: 12rpx; color: #D8C7B4; animation: pulse 1.2s ease-in-out infinite; } @keyframes pulse { 0%,100%{opacity:.4} 50%{opacity:1} } /* 周选择弹层 */ .picker-mask { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.4); z-index: 100; } .picker-panel { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-radius: 28rpx 28rpx 0 0; z-index: 101; max-height: 70vh; display: flex; flex-direction: column; transform: translateY(100%); transition: transform .28s ease; } .picker-panel.show { transform: translateY(0); } .picker-title { flex-shrink: 0; padding: 28rpx 32rpx 20rpx; font-size: 30rpx; font-weight: 700; color: #2C1810; text-align: center; border-bottom: 1rpx solid #F2EDE7; } .picker-list { flex: 1; min-height: 0; padding: 8rpx 0 32rpx; } .picker-item { display: flex; align-items: center; justify-content: space-between; padding: 24rpx 32rpx; font-size: 28rpx; color: #2C1810; } .picker-item:active { background: #FBF7F1; } .picker-item.active { color: #C67B30; font-weight: 700; } .picker-check { font-size: 28rpx; color: #C67B30; } /* 历史列表底部 */ .history-footer { padding: 32rpx 0; text-align: center; font-size: 24rpx; color: #B6A996; }