/* daily-tasks.css — 每日任务样式 */

/* ════════════════════════════════════════
   任务页面头部
═════════════════════════════════════════ */

.tasks-header {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.tasks-date {
  font-size: 1rem;
  font-weight: 600;
  color: #667eea;
  margin-bottom: 6px;
}

.tasks-hint {
  font-size: 0.8rem;
  color: #999;
}

/* ════════════════════════════════════════
   任务列表
═════════════════════════════════════════ */

.tasks-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ════════════════════════════════════════
   任务卡片
═════════════════════════════════════════ */

.task-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.task-card.done {
  opacity: 0.6;
  background: #f9f9f9;
}

.task-card.claimable {
  background: linear-gradient(135deg, #667eea10, #764ba210);
  border: 2px solid #667eea40;
  animation: taskPulse 2s ease infinite;
}

@keyframes taskPulse {
  0%, 100% { box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1); }
  50% { box-shadow: 0 4px 16px rgba(102, 126, 234, 0.25); }
}

.task-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: #f5f5f5;
  border-radius: 12px;
  flex-shrink: 0;
}

.task-card.done .task-icon {
  filter: grayscale(1);
}

.task-info {
  flex: 1;
  min-width: 0;
}

.task-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.task-desc {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 8px;
}

/* 进度条 */
.task-progress-bar {
  width: 100%;
  height: 6px;
  background: #eee;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 4px;
}

.task-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 3px;
  transition: width 0.4s ease;
}

.task-card.done .task-progress-fill {
  background: #ccc;
}

.task-progress-text {
  font-size: 0.7rem;
  color: #aaa;
}

/* 奖励区域 */
.task-reward {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
}

.task-tickets {
  font-size: 0.9rem;
  color: #667eea;
  font-weight: 500;
}

.task-claim-btn {
  padding: 8px 12px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.task-claim-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.task-claim-btn:active {
  transform: translateY(0);
}

/* ════════════════════════════════════════
   提示区域
═════════════════════════════════════════ */

.tasks-tips {
  margin-top: 20px;
  padding: 14px;
  background: #fff9e6;
  border-radius: 10px;
  font-size: 0.8rem;
  color: #b8860b;
  text-align: center;
}

/* ════════════════════════════════════════
   移动端适配
═════════════════════════════════════════ */

@media (max-width: 480px) {
  .task-card {
    padding: 12px;
    gap: 10px;
  }

  .task-icon {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
  }

  .task-name {
    font-size: 0.85rem;
  }

  .task-desc {
    font-size: 0.7rem;
  }

  .task-claim-btn {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
}
