html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: #f8f9fa;
  font-family: "Helvetica Neue", sans-serif;
}

.container {
  padding: 15px;
  padding-bottom: 100px; /* ✅ 预留底部空间，防止卡片被遮挡 */
}

.mobile-header {
  background: #fff;
  font-weight: bold;
  display: flex;
  align-items: center;
  padding: 10px 15px;
  border-bottom: 1px solid #eee;
}

.task-list-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

.task-card {
  width: 48%;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.task-top-time {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #f44336;
  color: #fff;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 8px;
  z-index: 2;
}

.task-banner {
  width: 100%;
  height: 90px;
  object-fit: cover;
}

.task-content {
  padding: 10px;
  display: flex;
  flex-direction: column;
}

.task-title {
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-community {
  font-size: 12px;
  color: #888;
  margin-bottom: 4px;
}

.task-reward {
  background: #ff9800;
  color: #fff;
  font-size: 12px;
  padding: 3px 6px;
  border-radius: 6px;
  margin-top: 6px;
  display: inline-block;
}

.task-remaining {
  font-size: 12px;
  color: #555;
  margin-top: 2px;
}

.task-audit-btn {
  background-color: #007bff;
  color: #fff;
  font-size: 13px;
  padding: 6px;
  border-radius: 6px;
  text-align: center;
  text-decoration: none;
  margin-top: 8px;
}
