: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);
}

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	background-color: #f1f5f9;
	color: var(--dark-color);
	line-height: 1.5;
	padding-bottom: 70px;
	font-size: 16px; /* 优化基础字体大小 */
}

.app-container {
	max-width: 480px;
	margin: 0 auto;
	padding: 0;
	background-color: #fff;
	min-height: 100vh;
	box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

/* 页头样式 */
.header-container {
	background-color: var(--primary-color);
	color: white;
	padding: 15px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.app-title {
	margin: 0;
	font-size: 1.3rem; /* 调整为更合适的大小 */
	font-weight: 700; /* 加粗标题 */
	letter-spacing: 0.01em; /* 微调字距 */
}

.app-subtitle {
	margin: 0;
	font-size: 0.85rem; /* 略微增大 */
	opacity: 0.9; /* 增加透明度，提高可读性 */
}

/* 用户信息样式 */
.user-avatar {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background-color: #eef2ff;
	color: var(--primary-color);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.8rem;
}

.user-balance {
	color: var(--success-color);
	font-size: 0.8rem; /* 减小大小 */
	font-weight: 500; /* 增加粗细 */
}

.user-name {
	font-weight: 600; /* 增加粗细度 */
	font-size: 1rem; /* 调整大小 */
}

.user-id {
	color: var(--gray-color);
	font-size: 0.8rem; /* 调整大小 */
}

.tickets-badge {
	background-color: rgba(255, 255, 255, 0.2);
	border-radius: 20px;
	padding: 4px 10px;
	display: flex;
	align-items: center;
	font-size: 0.85rem;
}

.tickets-badge i {
	font-size: 1rem;
	margin-right: 3px;
}

.ticket-count {
	font-weight: 700; /* 增加粗细 */
	font-size: 1rem; /* 调整大小 */
	margin-left: 3px;
}

/* 卡片样式 */
.card {
	background: #fff;
	border-radius: var(--border-radius);
	border: none;
	box-shadow: var(--box-shadow);
	margin-bottom: 16px;
	overflow: hidden;
}

.card-header {
	background-color: #fff;
	border-bottom: 1px solid var(--gray-light-color);
	padding: 15px 20px;
}

/* 倒计时样式 */
.countdown-container {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 10px 0 20px;
}

.countdown-item {
	text-align: center;
	margin: 0 8px;
}

.countdown-number {
	background-color: var(--primary-color);
	color: white;
	border-radius: 8px;
	width: 48px; /* 略微调小 */
	height: 48px; /* 略微调小 */
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.4rem; /* 调小字体 */
	font-weight: 700; /* 增加粗细 */
}

.countdown-label {
	font-size: 0.75rem; /* 缩小标签文字 */
	color: var(--gray-color);
	margin-top: 5px;
	font-weight: 500; /* 略微加粗 */
}

/* 奖池金额样式 */
.pool-amount {
	font-size: 1.8rem; /* 调整大小 */
	font-weight: 800; /* 增加粗细 */
	color: var(--primary-color);
	text-align: center;
	margin: 10px 0;
	letter-spacing: -0.02em; /* 负字距更加精致 */
}

/* 统计区域样式 */
.stats-container {
	display: flex;
	justify-content: space-around;
	text-align: center;
	padding: 15px 0;
}

.stat-item {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.stat-value {
	font-size: 1.1rem; /* 调整大小 */
	font-weight: 700; /* 增加粗细 */
}

.stat-label {
	font-size: 0.75rem; /* 缩小标签 */
	color: #64748b; /* 更柔和的颜色 */
	font-weight: 500; /* 略微加粗 */
}

/* 按钮样式增强 */
.btn {
	position: relative;
	overflow: hidden;
	border-radius: var(--border-radius);
	padding: 10px 16px;
	font-weight: 600; /* 加粗按钮文字 */
	font-size: 0.9rem; /* 调整大小 */
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	letter-spacing: 0.01em; /* 微调字距 */
}

.btn i {
	margin-right: 6px;
	font-size: 1.1rem;
}

.btn:active {
	transform: scale(0.97);
}

.btn-primary {
	background: linear-gradient(135deg, var(--primary-color), #3a5be3);
	border: none;
	box-shadow: 0 2px 5px rgba(74, 108, 247, 0.2);
}

.btn-primary:hover {
	background-color: #405ce6;
	border-color: #405ce6;
	box-shadow: 0 4px 8px rgba(74, 108, 247, 0.3);
	transform: translateY(-1px);
}

.btn-primary:active {
	box-shadow: 0 2px 3px rgba(74, 108, 247, 0.2);
	transform: translateY(1px) scale(0.98);
}

.btn-outline-primary {
	border: 1px solid var(--primary-color);
	color: var(--primary-color);
}

.btn-outline-primary:hover {
	background-color: rgba(74, 108, 247, 0.08);
}

/* 区域标题样式 */
.section-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 20px;
}

.section-title {
	font-size: 1.15rem; /* 调整大小 */
	font-weight: 700; /* 增加粗细 */
	margin: 0;
	letter-spacing: 0.01em; /* 微调字距 */
}

/* 任务项样式 */
.task-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 15px;
	border-bottom: 1px solid var(--gray-light-color);
}

.task-item:last-child {
	border-bottom: none;
}

.task-icon {
	width: 38px; /* 调整大小 */
	height: 38px; /* 调整大小 */
	border-radius: 50%;
	background-color: #eef2ff;
	color: var(--primary-color);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-right: 15px;
}

.task-content {
	flex: 1;
}

.task-title {
	font-weight: 600; /* 加粗标题 */
	font-size: 0.95rem; /* 调整大小 */
	margin-bottom: 4px; /* 增加间距 */
}

.task-desc {
	color: #64748b; /* 更柔和的颜色 */
	font-size: 0.8rem; /* 缩小描述文字 */
	margin: 0;
	line-height: 1.4; /* 增加行高 */
}

.task-reward {
	display: flex;
	align-items: center;
	color: var(--success-color);
	font-weight: 600; /* 加粗奖励文字 */
	margin-bottom: 0;
	margin-top: 5px;
	font-size: 0.85rem; /* 调整大小 */
}

.task-reward i {
	font-size: 1rem;
	margin-right: 3px;
}

.task-section {
	padding: 15px;
}

/* 底部导航样式 */
.bottom-nav {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background-color: white;
	display: flex;
	justify-content: space-around;
	padding: 10px 0;
	box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.05);
	z-index: 1000;
	max-width: 480px;
	margin: 0 auto;
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* 添加过渡效果 */
}

.bottom-nav.hidden {
	transform: translateY(100%);
}

.bottom-nav-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	color: var(--gray-color);
	font-size: 0.75rem; /* 缩小文字 */
	font-weight: 500; /* 增加粗细 */
	text-decoration: none;
	padding: 5px 0;
	width: 25%;
	text-align: center;
	position: relative; /* 添加定位 */
	overflow: hidden; /* 裁剪溢出内容 */
	-webkit-tap-highlight-color: transparent; /* 去除移动端点击高亮 */
	transition: color 0.3s ease; /* 添加颜色过渡 */
}

.bottom-nav-item.active {
	color: var(--primary-color);
	font-weight: 600; /* 加粗激活项 */
}

.bottom-nav-item i {
	font-size: 1.4rem; /* 增大图标 */
	margin-bottom: 4px; /* 增加与文字的间距 */
	transition: transform 0.2s ease; /* 添加变换过渡 */
}

.bottom-nav-item:active i {
	transform: scale(0.9); /* 点击时缩小图标 */
}

/* 语言选择器样式 */
.language-selector {
	position: relative;
}

.language-select {
	background-color: rgba(255, 255, 255, 0.2);
	border: none;
	color: white;
	font-size: 0.8rem;
	font-weight: 500;
	padding: 0.3rem 1.5rem 0.3rem 0.8rem;
	border-radius: 16px;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.5rem center;
	background-size: 12px;
	transition: background-color 0.2s ease;
}

.language-select:hover {
	background-color: rgba(255, 255, 255, 0.3);
}

.language-select:focus {
	outline: none;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4);
}

.language-select option {
	background-color: white;
	color: var(--dark-color);
}

/* 响应式调整 */
@media (max-width: 375px) {
	body {
		font-size: 15px; /* 略微减小基础字体大小 */
	}

	.countdown-number {
		width: 45px;
		height: 45px;
		font-size: 1.3rem;
	}

	.pool-amount {
		font-size: 1.7rem;
	}

	.task-icon {
		width: 35px;
		height: 35px;
		font-size: 0.9rem;
	}

	.btn {
		padding: 8px 12px;
		font-size: 0.85rem;
	}

	.task-title {
		font-size: 0.9rem;
	}

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

	.bottom-nav-item {
		font-size: 0.7rem;
	}

	.bottom-nav-item i {
		font-size: 1.3rem;
	}
}

/* 极小屏幕优化 */
@media (max-width: 320px) {
	body {
		font-size: 14px; /* 进一步减小基础字体大小 */
	}

	.countdown-number {
		width: 40px;
		height: 40px;
		font-size: 1.2rem;
	}

	.section-title {
		font-size: 1.05rem;
	}

	.app-title {
		font-size: 1.2rem;
	}

	.task-icon {
		width: 32px;
		height: 32px;
	}

	.pool-amount {
		font-size: 1.6rem;
	}

	.bottom-nav-item i {
		font-size: 1.2rem;
	}

	.stat-value {
		font-size: 1rem;
	}
}
