/* TaskCard 组件样式 */
.task-card {
	background: white;
	border-radius: 12px;
	padding: 16px;
	position: relative;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	cursor: pointer;
	transition: transform 0.2s, box-shadow 0.2s;
	margin-bottom: 12px;
}

.task-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.task-card:active {
	opacity: 0.8;
}

.task-tag {
	position: absolute;
	top: 10px;
	right: 10px;
	background: #FF6B35;
	color: white;
	padding: 4px 8px;
	border-radius: 12px;
	font-size: 10px;
	font-weight: bold;
}

.task-icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 12px;
}

.icon-text {
	font-size: 24px;
}

.task-content {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.task-title {
	font-size: 16px;
	font-weight: bold;
	color: #111827;
	margin-bottom: 8px;
}

.task-desc {
	font-size: 14px;
	color: #6B7280;
}

/* ProductCard 组件样式 */
.product-card {
	background: white;
	border-radius: 12px;
	padding: 16px;
	margin-bottom: 16px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-image-wrapper {
	position: relative;
	width: 100%;
	height: 200px;
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 12px;
}

.product-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.product-status {
	position: absolute;
	top: 8px;
	right: 8px;
	background: rgba(0, 0, 0, 0.6);
	color: white;
	padding: 4px 8px;
	border-radius: 12px;
	font-size: 12px;
}

.product-info {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.product-title {
	font-size: 16px;
	font-weight: 600;
	color: #111827;
}

.product-desc {
	font-size: 14px;
	color: #6B7280;
}

.product-reward {
	display: flex;
	align-items: center;
	gap: 8px;
}

.reward-label {
	font-size: 14px;
	color: #6B7280;
}

.reward-value {
	font-size: 18px;
	font-weight: bold;
	color: #10B981;
}

.task-btn {
	width: 100%;
	padding: 12px;
	background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
	color: white;
	border: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: opacity 0.2s;
}

.task-btn:hover {
	opacity: 0.9;
}

.task-completed {
	width: 100%;
	padding: 12px;
	background: #D1FAE5;
	color: #059669;
	border-radius: 8px;
	text-align: center;
	font-size: 14px;
	font-weight: 500;
}

/* 任务网格 */
.task-grid {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 16px;
}

.task-item {
	width: 100%;
}

/* 空状态 */
.empty-state {
	text-align: center;
	padding: 60px 20px;
}

.empty-text {
	font-size: 16px;
	color: #9CA3AF;
}

/* 表单样式 */
.form-section {
	padding: 16px;
}

.form-item {
	margin-bottom: 20px;
}

.form-label {
	display: block;
	font-size: 14px;
	font-weight: 500;
	color: #111827;
	margin-bottom: 8px;
}

.form-input {
	width: 100%;
	height: 44px;
	padding: 0 12px;
	border: 2px solid #E5E7EB;
	border-radius: 8px;
	font-size: 14px;
	color: #111827;
	background: white;
}

.form-input:focus {
	outline: none;
	border-color: #4F46E5;
}

/* 按钮组 */
.button-group {
	display: flex;
	gap: 8px;
	padding: 16px;
	overflow-x: auto;
}

.type-btn {
	padding: 10px 20px;
	border-radius: 20px;
	background: white;
	border: 2px solid #E5E7EB;
	cursor: pointer;
	white-space: nowrap;
	transition: all 0.2s;
}

.type-btn.active {
	background: #4F46E5;
	border-color: #4F46E5;
}

.type-btn.active .btn-text {
	color: white;
}

.btn-text {
	font-size: 14px;
	font-weight: 500;
	color: #111827;
}

/* 上传区域 */
.upload-section {
	padding: 16px;
}

.upload-box {
	width: 100%;
	height: 200px;
	border: 2px dashed #D1D5DB;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: border-color 0.2s;
	position: relative;
	overflow: hidden;
}

.upload-box:hover {
	border-color: #4F46E5;
}

.uploaded-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.upload-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.upload-icon {
	font-size: 48px;
}

.upload-text {
	font-size: 14px;
	color: #6B7280;
}

/* 登录提示 */
.login-tip {
	background: #FEF3C7;
	border: 1px solid #FCD34D;
	border-radius: 8px;
	padding: 12px 16px;
	margin: 16px;
}

.tip-text {
	font-size: 14px;
	color: #92400E;
}

/* PopupCard 组件样式 */
.popup-card {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.popup-mask {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(17, 24, 39, 0.55);
}

.popup-container {
	position: relative;
	width: 86%;
	max-width: 320px;
	max-height: 80%;
	background: linear-gradient(180deg, #FFFFFF 0%, #F5F3FF 100%);
	border-radius: 24px;
	padding: 20px 20px 16px 20px;
	box-shadow: 0 20px 40px rgba(79, 70, 229, 0.2);
	display: flex;
	flex-direction: column;
	overflow-y: auto;
}

.popup-header {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

.popup-title {
	font-size: 18px;
	font-weight: bold;
	color: #1F2937;
}

.popup-close {
	font-size: 16px;
	color: #9CA3AF;
	padding: 4px 8px;
	cursor: pointer;
}

.popup-subtitle {
	font-size: 14px;
	color: #6B7280;
	margin-bottom: 12px;
}

.popup-content {
	flex: 1;
	padding: 4px 0;
	overflow-y: auto;
}

.popup-item {
	background: white;
	padding: 14px 16px;
	border-radius: 16px;
	margin-bottom: 12px;
	position: relative;
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 12px;
	box-shadow: 0 12px 24px rgba(79, 70, 229, 0.08);
	cursor: pointer;
	transition: transform 0.2s;
}

.popup-item:hover {
	transform: translateY(-2px);
}

.popup-item:active {
	opacity: 0.9;
}

.popup-item-icon {
	width: 44px;
	height: 44px;
	border-radius: 14px;
	background: rgba(99, 102, 241, 0.12);
	display: flex;
	align-items: center;
	justify-content: center;
}

.popup-item-icon-text {
	font-size: 22px;
}

.popup-item-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
	align-items: flex-start;
}

.popup-item-title {
	font-size: 16px;
	font-weight: 600;
	color: #111827;
}

.popup-item-desc {
	font-size: 12px;
	color: #6B7280;
}

.popup-item-arrow {
	font-size: 16px;
	color: #9CA3AF;
}

.popup-footer {
	margin-top: 8px;
}

/* CommonCard 组件样式 */
.common-card {
	background: white;
	border-radius: 12px;
	padding: 16px;
	margin-bottom: 12px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	display: flex;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
	transition: transform 0.2s;
}

.common-card:hover {
	transform: translateY(-2px);
}

.common-card:active {
	opacity: 0.8;
}

.common-card-title {
	font-size: 16px;
	font-weight: bold;
	color: #111827;
}

.common-card-text {
	font-size: 14px;
	color: #6B7280;
	flex: 1;
}

.common-card-arrow {
	font-size: 24px;
	color: #9CA3AF;
	margin-left: 8px;
}

.common-card.purple {
	background: linear-gradient(135deg, #8B5CF6 0%, #A78BFA 100%);
	color: white;
}

.common-card.purple .common-card-title,
.common-card.purple .common-card-text {
	color: white;
}

.common-card.red {
	background: linear-gradient(135deg, #EF4444 0%, #F87171 100%);
	color: white;
}

.common-card.red .common-card-title,
.common-card.red .common-card-text {
	color: white;
}

.common-card.green {
	background: linear-gradient(135deg, #10B981 0%, #34D399 100%);
	color: white;
}

.common-card.green .common-card-title,
.common-card.green .common-card-text {
	color: white;
}

.common-card.yellow {
	background: linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%);
	color: white;
}

.common-card.yellow .common-card-title,
.common-card.yellow .common-card-text {
	color: white;
}

.common-card.blue {
	background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%);
	color: white;
}

.common-card.blue .common-card-title,
.common-card.blue .common-card-text {
	color: white;
}

/* WechatLoginModal 组件样式 */
.login-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 3000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.5);
	animation: fadeIn 0.3s;
}

.login-modal-content {
	position: relative;
	width: 90%;
	max-width: 400px;
	background: white;
	border-radius: 20px;
	overflow: hidden;
	animation: slideUp 0.3s;
}

.login-modal-top-bar {
	height: 4px;
	background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.login-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px;
	border-bottom: 1px solid #E5E7EB;
}

.header-left {
	display: flex;
	align-items: center;
	gap: 12px;
}

.login-modal-icon {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
}

.login-modal-title {
	font-size: 18px;
	font-weight: 600;
	color: #111827;
}

.login-modal-close {
	cursor: pointer;
	padding: 4px;
}

.close-icon {
	font-size: 20px;
	color: #6B7280;
}

.login-modal-body {
	padding: 16px 20px;
	max-height: 60vh;
	overflow-y: auto;
}

.avatar-section,
.nickname-section,
.phone-section {
	margin-bottom: 20px;
}

.section-label {
	display: block;
	font-size: 14px;
	font-weight: 500;
	color: #333;
	margin-bottom: 8px;
}

.avatar-button {
	width: 100%;
	background: transparent;
	border: none;
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	cursor: pointer;
}

.avatar-wrapper {
	position: relative;
	width: 120px;
	height: 120px;
	border-radius: 50%;
	overflow: hidden;
	border: 2px solid #f0f0f0;
}

.avatar-preview {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.avatar-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.3);
	display: flex;
	align-items: center;
	justify-content: center;
}

.avatar-icon {
	font-size: 32px;
}

.avatar-hint {
	font-size: 14px;
	color: #999;
}

.input-wrapper {
	position: relative;
	display: flex;
	align-items: center;
	background: #fff;
	border: 2px solid #e2e8f0;
	border-radius: 12px;
	padding: 0 12px;
	transition: all 0.3s;
}

.input-wrapper:focus-within {
	border-color: #4F46E5;
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.nickname-input,
.phone-input {
	flex: 1;
	height: 44px;
	padding: 0;
	border: none;
	border-radius: 0;
	font-size: 15px;
	color: #1a1a1a;
	background: transparent;
	outline: none;
}

.nickname-input::placeholder,
.phone-input::placeholder {
	color: #94a3b8;
}

.input-count {
	font-size: 12px;
	color: #94a3b8;
	margin-left: 8px;
}

.phone-hint {
	display: block;
	font-size: 12px;
	color: #ff6b6b;
	margin-top: 8px;
}

.login-modal-footer {
	padding: 0 24px 24px;
}

.login-confirm-btn {
	width: 100%;
	height: 56px;
	background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
	border: none;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	padding: 12px;
	cursor: pointer;
	transition: opacity 0.2s;
}

.login-confirm-btn:hover:not(:disabled) {
	opacity: 0.9;
}

.login-confirm-btn-disabled {
	background: #e0e0e0;
	color: #999;
	cursor: not-allowed;
}

.confirm-icon {
	font-size: 20px;
}

.confirm-text {
	font-size: 16px;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes slideUp {
	from {
		transform: translateY(50px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

/* 登录方式切换标签 */
.login-type-tabs {
	display: flex;
	justify-content: center;
	gap: 8px;
	padding: 16px 20px 0;
	border-bottom: 1px solid #E5E7EB;
}

.tab-item {
	flex: 1;
	padding: 12px;
	text-align: center;
	cursor: pointer;
	border-bottom: 2px solid transparent;
	transition: all 0.3s;
	color: #6B7280;
	font-size: 14px;
	font-weight: 500;
}

.tab-item:hover {
	color: #4F46E5;
}

.tab-item.active {
	color: #4F46E5;
	border-bottom-color: #4F46E5;
	font-weight: 600;
}

/* 手机号登录表单 */
.phone-login-form {
	padding: 20px 0;
}

/* 登录按钮组 */
.login-btns {
	display: flex;
	gap: 8px;
	align-items: center;
}

.phone-login-btn {
	background: linear-gradient(135deg, #10B981 0%, #34D399 100%);
}

.wechat-login-btn {
	background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
}
