:root {
	--primary-color: #4a6cf7;
	--secondary-color: #f97316;
	--success-color: #10b981;
	--warning-color: #f59e0b;
	--danger-color: #ef4444;
	--dark-color: #1e293b;
	--light-color: #f8fafc;
	--gray-color: #94a3b8;
	--gray-light-color: #e2e8f0;
	--border-radius: 8px;
	--box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.app-container {
	max-width: 480px;
	margin: 0 auto;
	padding: 0 0 70px 0;
	background-color: #f1f5f9;
	min-height: 100vh;
}

/* 任务详情头部 */
.task-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px;
	background-color: #4a6cf7;
	color: white;
	border-radius: 12px 12px 0 0;
}

.task-header h1 {
	font-size: 18px;
	font-weight: 600;
	margin: 0;
}

.task-status-badge {
	padding: 5px 10px;
	border-radius: 16px;
	font-size: 12px;
	font-weight: 500;
	display: inline-flex;
	align-items: center;
}

.task-status-badge i {
	margin-right: 4px;
}

.task-status-badge.completed {
	background-color: rgba(16, 185, 129, 0.2);
	color: #10b981;
}

.task-status-badge.pending {
	background-color: rgba(245, 158, 11, 0.2);
	color: #f59e0b;
}

.task-status-badge.incomplete {
	background-color: rgba(148, 163, 184, 0.2);
	color: white;
}

/* 任务详情卡片 */
.card {
	background-color: #fff;
	border-radius: 12px;
	border: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	margin-bottom: 16px;
	overflow: hidden;
}

.card-body {
	padding: 16px;
}

/* 任务步骤样式 */
.task-step {
	padding: 16px;
	border-bottom: 1px solid #e2e8f0;
	position: relative;
	transition: background-color 0.3s ease;
}

.task-step:last-child {
	border-bottom: none;
}

.task-step.completed {
	background-color: rgba(16, 185, 129, 0.05);
}

.task-step.in-progress {
	background-color: rgba(245, 158, 11, 0.05);
}

.step-number {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background-color: #eef2ff;
	color: #4a6cf7;
	font-weight: 600;
	font-size: 14px;
	margin-right: 12px;
}

.task-step.completed .step-number {
	background-color: #10b981;
	color: white;
}

.step-content {
	flex: 1;
}

.step-header {
	display: flex;
	align-items: center;
	margin-bottom: 8px;
}

.step-title {
	font-weight: 600;
	font-size: 15px;
	margin: 0;
}

.step-status {
	position: absolute;
	top: 16px;
	right: 16px;
}

/* 任务奖励卡片 */
.reward-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	padding: 16px;
	background-color: #f8fafc;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.reward-icon {
	font-size: 28px;
	margin-bottom: 8px;
}

.reward-amount {
	font-weight: 600;
	font-size: 16px;
}

.reward-type {
	font-size: 12px;
	color: #64748b;
}

/* 状态标签 */
.status-label {
	padding: 8px 16px;
	border-radius: 8px;
	margin-bottom: 16px;
	font-weight: 500;
}

.status-label.success {
	background-color: rgba(16, 185, 129, 0.1);
	color: #10b981;
}

.status-label.warning {
	background-color: rgba(245, 158, 11, 0.1);
	color: #f59e0b;
}

.status-label.secondary {
	background-color: rgba(100, 116, 139, 0.1);
	color: #64748b;
}

/* 按钮样式 */
.btn {
	border-radius: 24px;
	font-weight: 500;
	padding: 10px 24px;
	transition: all 0.2s;
}

.btn-lg {
	padding: 12px 32px;
	font-size: 16px;
}

.btn-primary {
	background-color: #4a6cf7;
	border-color: #4a6cf7;
}

.btn-primary:hover {
	background-color: #3a5be3;
	border-color: #3a5be3;
	transform: translateY(-1px);
}

.btn-warning {
	background-color: #f59e0b;
	border-color: #f59e0b;
}

.btn-warning:hover {
	background-color: #ea8c00;
	border-color: #ea8c00;
}

.btn-secondary {
	background-color: #94a3b8;
	border-color: #94a3b8;
}

.btn-secondary:hover {
	background-color: #64748b;
	border-color: #64748b;
}

.btn-success {
	background-color: #10b981;
	border-color: #10b981;
}

.btn-success:disabled {
	background-color: #10b981;
	border-color: #10b981;
	opacity: 0.7;
}

.btn-success:hover:not(:disabled) {
	background-color: #0ea271;
	border-color: #0ea271;
}

.btn-outline-primary {
	color: #4a6cf7;
	border-color: #4a6cf7;
}

.btn-outline-primary:hover {
	background-color: #4a6cf7;
	color: white;
}

/* 链接按钮 */
.link-button {
	display: inline-flex;
	align-items: center;
	padding: 8px 16px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	transition: all 0.2s;
	margin-bottom: 12px;
}

.link-button i {
	margin-right: 8px;
}

.link-button.primary {
	background-color: #eef2ff;
	color: #4a6cf7;
}

.link-button.primary:hover {
	background-color: #dce7ff;
}

/* 禁用的链接按钮 */
.link-button.disabled {
	opacity: 0.6;
	cursor: not-allowed;
	pointer-events: none;
}

/* 禁用的按钮 */
button:disabled,
.btn.disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* 步骤完成按钮 */
.step-action {
	display: flex;
	justify-content: flex-end;
	margin-top: 10px;
}

/* 进度指示器 */
.progress-steps {
	display: flex;
	justify-content: space-between;
	margin-bottom: 20px;
	position: relative;
	padding: 0 20px;
}

.progress-steps::before {
	content: '';
	position: absolute;
	top: 14px;
	left: 40px;
	right: 40px;
	height: 2px;
	background-color: #e2e8f0;
	z-index: 1;
}

.progress-step {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.step-dot {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background-color: #fff;
	border: 2px solid #e2e8f0;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 8px;
	transition: all 0.3s ease;
	color: #94a3b8;
}

.step-dot.active {
	border-color: #4a6cf7;
	background-color: #4a6cf7;
	color: white;
}

.step-dot.completed {
	border-color: #10b981;
	background-color: #10b981;
	color: white;
}

.step-label {
	font-size: 12px;
	color: #64748b;
	text-align: center;
}

/* 响应式调整 */
@media (max-width: 360px) {
	.btn {
		padding: 8px 16px;
	}

	.btn-lg {
		padding: 10px 24px;
	}
}

/* 奖励动画 */
.reward-animation {
	animation: bounce 1.5s ease infinite;
}

@keyframes bounce {
	0%, 20%, 50%, 80%, 100% {
		transform: translateY(0);
	}
	40% {
		transform: translateY(-10px);
	}
	60% {
		transform: translateY(-5px);
	}
}

/* 步骤完成动画 */
@keyframes stepComplete {
	0% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.2);
	}
	100% {
		transform: scale(1);
	}
}

.step-complete-animation {
	animation: stepComplete 0.5s ease;
}

.highlight-needed {
	animation: highlight 2s ease-in-out;
}

@keyframes highlight {
	0%, 100% {
		background-color: rgba(245, 158, 11, 0.05);
	}
	50% {
		background-color: rgba(245, 158, 11, 0.3);
	}
}

/* 新增：Telegram 相关样式 */
.telegram-app {
	background-color: var(--tg-theme-bg-color, #f1f5f9);
	color: var(--tg-theme-text-color, #1e293b);
}

.telegram-btn {
	background-color: var(--tg-theme-button-color, #4a6cf7) !important;
	color: var(--tg-theme-button-text-color, #ffffff) !important;
}

.telegram-alert {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 9999;
	margin: 0;
	border-radius: 0;
	text-align: center;
	padding: 10px;
}
