/**calendar.wxss**/ .container { min-height: 100vh; background-color: #f5f5f5; } .calendar-header { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); padding: 40rpx 32rpx; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 4rpx 16rpx rgba(102, 126, 234, 0.2); } .month-navigation { display: flex; align-items: center; gap: 24rpx; } .nav-btn { font-size: 40rpx; color: #fff; font-weight: 300; width: 56rpx; height: 56rpx; display: flex; align-items: center; justify-content: center; background-color: rgba(255, 255, 255, 0.2); border-radius: 50%; transition: all 0.2s; } .nav-btn:active { background-color: rgba(255, 255, 255, 0.3); transform: scale(0.95); } .month-title { font-size: 36rpx; font-weight: 600; color: #fff; min-width: 240rpx; text-align: center; } .today-btn { padding: 14rpx 32rpx; background-color: rgba(255, 255, 255, 0.25); color: #fff; border-radius: 40rpx; font-size: 26rpx; border: none; font-weight: 600; transition: all 0.2s; } .today-btn:active { background-color: rgba(255, 255, 255, 0.35); transform: scale(0.95); } .today-btn::after { border: none; } .week-header { display: grid; grid-template-columns: repeat(7, 1fr); background: linear-gradient(to bottom, #fff 0%, #fafafa 100%); padding: 20rpx 24rpx 12rpx 24rpx; gap: 12rpx; border-bottom: 2rpx solid #f0f0f0; box-sizing: border-box; } .week-title { display: flex; align-items: center; justify-content: center; height: 60rpx; font-size: 26rpx; color: #888; font-weight: 600; margin: 0; padding: 0; box-sizing: border-box; } .week-title text { display: block; } .calendar-content { height: calc(100vh - 200rpx); background-color: #f5f5f5; } .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); background-color: #f5f5f5; padding: 16rpx 24rpx 16rpx 24rpx; gap: 12rpx; box-sizing: border-box; } .calendar-cell { min-height: 100rpx; background-color: #fff; border-radius: 12rpx; padding: 12rpx 8rpx; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.04); transition: all 0.2s; box-sizing: border-box; margin: 0; } .calendar-cell.other-month { background-color: transparent; box-shadow: none; } .calendar-cell.today { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); box-shadow: 0 8rpx 16rpx rgba(102, 126, 234, 0.3); transform: scale(1.05); } .calendar-cell.today .date-num { color: #fff; font-weight: 700; } .date-num { font-size: 32rpx; color: #333; margin-bottom: 8rpx; font-weight: 600; } .calendar-cell.other-month .date-num { color: #d0d0d0; font-weight: 400; } .events { display: flex; gap: 6rpx; flex-wrap: wrap; justify-content: center; max-width: 100%; } .event-dot { width: 8rpx; height: 8rpx; border-radius: 50%; box-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.15); } .calendar-cell.today .event-dot { background-color: #fff !important; } .more-text { font-size: 18rpx; color: #999; margin-top: 4rpx; font-weight: 500; } .calendar-cell.today .more-text { color: #fff; } /* 事件列表 */ .events-list { padding: 32rpx 24rpx; } .section-title { font-size: 32rpx; font-weight: 700; color: #333; margin-bottom: 24rpx; padding-left: 16rpx; border-left: 6rpx solid #667eea; } .empty-state { text-align: center; padding: 120rpx 40rpx; opacity: 0.6; } .empty-state .icon { font-size: 120rpx; display: block; margin-bottom: 32rpx; } .empty-state .text { font-size: 28rpx; color: #999; line-height: 1.6; } .event-card { background: linear-gradient(135deg, #fff 0%, #fafafa 100%); border-radius: 16rpx; padding: 32rpx; margin-bottom: 20rpx; box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.08); border: 2rpx solid rgba(102, 126, 234, 0.1); transition: all 0.3s; } .event-header { display: flex; align-items: center; } .event-icon { font-size: 40rpx; margin-right: 16rpx; } .event-title { flex: 1; font-size: 28rpx; font-weight: 600; color: #333; } .event-date { font-size: 24rpx; color: #999; } .event-info { display: flex; align-items: center; gap: 16rpx; margin-top: 16rpx; } .lunar-badge { padding: 6rpx 16rpx; background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%); color: #1976d2; border-radius: 20rpx; font-size: 20rpx; font-weight: 600; box-shadow: 0 2rpx 8rpx rgba(25, 118, 210, 0.15); } .status { font-size: 22rpx; padding: 6rpx 16rpx; border-radius: 20rpx; font-weight: 600; } .status.urgent { background: linear-gradient(135deg, #ffe0db 0%, #ffccbc 100%); color: #ff5722; box-shadow: 0 2rpx 8rpx rgba(255, 87, 34, 0.15); } .status.warning { background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%); color: #ff9800; box-shadow: 0 2rpx 8rpx rgba(255, 152, 0, 0.15); }