* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

body {
	background-color: #f5f5f5;
	color: #333;
	max-width: 100%;
	overflow-x: hidden;
}

.container {
	width: 100%;
	height: 100vh;
	display: flex;
	flex-direction: column;
	background-color: #fff;
}

/* 用户信息头部 */
.user-header {
	background: linear-gradient(135deg, #07c160, #06ad56);
	padding: 25px 20px;
	color: white;
	display: flex;
	align-items: center;
	gap: 15px;
}

.avatar-container {
	position: relative;
}

.user-avatar {
	width: 70px;
	height: 70px;
	border-radius: 50%;
	border: 3px solid rgba(255, 255, 255, 0.3);
	background-color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.avatar-placeholder {
	font-size: 32px;
	color: #07c160;
}

.user-info {
	flex: 1;
}

.user-nickname {
	font-size: 20px;
	font-weight: 600;
	margin-bottom: 5px;
}

.user-id {
	font-size: 14px;
	opacity: 0.9;
}

.edit-profile {
	background-color: rgba(255, 255, 255, 0.2);
	border: none;
	color: white;
	padding: 6px 15px;
	border-radius: 15px;
	font-size: 13px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.edit-profile:hover {
	background-color: rgba(255, 255, 255, 0.3);
}

/* 功能列表区域 */
.content-section {
	flex: 1;
	overflow-y: auto;
	padding: 0;
}

.function-list {
	margin: 15px;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.function-item {
	background-color: #fff;
	padding: 18px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid #f0f0f0;
	transition: all 0.3s ease;
	cursor: pointer;
}

.function-item:last-child {
	border-bottom: none;
}

.function-item:hover {
	background-color: #f9f9f9;
}

.function-item.disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.function-left {
	display: flex;
	align-items: center;
	gap: 15px;
}

.function-icon {
	width: 40px;
	height: 40px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	color: white;
}

.icon-balance {
	background-color: #1890ff;
}

.icon-recharge {
	background-color: #52c41a;
}

.icon-restore {
	background-color: #fa8c16;
}

.icon-guide {
	background-color: #722ed1;
}

.icon-support {
	background-color: #f759ab;
}

.icon-agreement {
	background-color: #13c2c2;
}

.icon-settings {
	background-color: #eb2f96;
}

.function-content {
	display: flex;
	flex-direction: column;
}

.function-title {
	font-size: 16px;
	color: #333;
	margin-bottom: 4px;
	font-weight: 500;
}

.function-desc {
	font-size: 13px;
	color: #999;
}

.function-right {
	display: flex;
	align-items: center;
	gap: 10px;
}

.balance-count {
	font-size: 18px;
	font-weight: 600;
	color: #07c160;
}

.balance-unit {
	font-size: 14px;
	color: #999;
}

.arrow-icon {
	color: #ccc;
	font-size: 14px;
}

/* 额度恢复弹窗 - 修改后的样式 */
.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
	padding: 20px;
}

.modal-overlay.active {
	opacity: 1;
	visibility: visible;
}

.modal-content {
	background-color: #fff;
	border-radius: 12px;
	width: 100%;
	max-width: 400px;
	max-height: 80vh;
	display: flex;
	flex-direction: column;
	transform: translateY(20px);
	transition: transform 0.3s ease;
	overflow: hidden;
}

.modal-overlay.active .modal-content {
	transform: translateY(0);
}

.modal-header {
	padding: 20px;
	text-align: center;
	border-bottom: 1px solid #f0f0f0;
	flex-shrink: 0;
}

.modal-title {
	font-size: 18px;
	color: #333;
	font-weight: 600;
}

.modal-body {
	padding: 20px;
	overflow-y: auto;
	flex: 1;
	max-height: calc(80vh - 140px);
	/* 减去头部和底部的高度 */
}

.modal-text {
	color: #666;
	line-height: 1.6;
	margin-bottom: 20px;
	text-align: center;
}

.restore-options {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.restore-option {
	padding: 15px;
	border: 1px solid #ddd;
	border-radius: 8px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
	transition: all 0.3s ease;
	flex-shrink: 0;
}

.restore-option:hover {
	border-color: #07c160;
	background-color: #f6ffed;
}

.restore-option.active {
	border-color: #07c160;
	background-color: #f6ffed;
}

.option-left {
	display: flex;
	align-items: center;
	gap: 10px;
}

.option-icon {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background-color: #f0f0f0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #666;
}

.option-title {
	font-weight: 500;
	color: #333;
}

.option-desc {
	font-size: 12px;
	color: #999;
	margin-top: 2px;
}

.option-right {
	color: #07c160;
	font-weight: 600;
}

.modal-footer {
	padding: 15px 20px;
	display: flex;
	gap: 10px;
	border-top: 1px solid #f0f0f0;
	flex-shrink: 0;
}

.modal-btn {
	flex: 1;
	padding: 12px;
	border-radius: 8px;
	border: none;
	font-size: 15px;
	cursor: pointer;
	transition: all 0.3s ease;
	font-weight: 500;
}

.cancel-btn {
	background-color: #f5f5f5;
	color: #666;
}

.cancel-btn:hover {
	background-color: #e8e8e8;
}

.confirm-btn {
	background-color: #07c160;
	color: white;
}

.confirm-btn:hover {
	background-color: #06ad56;
}

.confirm-btn.loading {
	opacity: 0.7;
	pointer-events: none;
}

/* 滚动条样式优化 */
.modal-body::-webkit-scrollbar {
	width: 6px;
}

.modal-body::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb {
	background: #c1c1c1;
	border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
	background: #a8a8a8;
}

/* 操作成功提示 */
.success-toast {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background-color: rgba(0, 0, 0, 0.8);
	color: white;
	padding: 15px 25px;
	border-radius: 25px;
	font-size: 14px;
	z-index: 1001;
	animation: fadeInOut 2s ease;
	display: flex;
	align-items: center;
	gap: 8px;
}

@keyframes fadeInOut {
	0% {
		opacity: 0;
		transform: translate(-50%, -50%) scale(0.9);
	}

	15% {
		opacity: 1;
		transform: translate(-50%, -50%) scale(1);
	}

	85% {
		opacity: 1;
		transform: translate(-50%, -50%) scale(1);
	}

	100% {
		opacity: 0;
		transform: translate(-50%, -50%) scale(0.9);
	}
}

/* 底部导航栏 */
.nav-section {
	height: 70px;
	width: 100%;
	background-color: #fff;
	border-top: 1px solid #eee;
	display: flex;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.nav-btn {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	color: #888;
	transition: all 0.3s ease;
	position: relative;
}

.nav-btn.active {
	color: #07c160;
}

.nav-btn.active::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background-color: #07c160;
}

.nav-icon {
	font-size: 20px;
	margin-bottom: 5px;
}

.nav-text {
	font-size: 12px;
}

/* 响应式调整 */
@media (max-height: 700px) {
	.user-header {
		padding: 20px 15px;
	}

	.user-avatar {
		width: 60px;
		height: 60px;
	}

	.function-item {
		padding: 15px;
	}

	.nav-section {
		height: 65px;
	}

	.modal-content {
		max-height: 75vh;
	}

	.modal-body {
		max-height: calc(75vh - 140px);
	}
}

@media (max-width: 400px) {
	.user-nickname {
		font-size: 18px;
	}

	.function-title {
		font-size: 15px;
	}

	.modal-overlay {
		padding: 15px;
	}
}

/* 用于演示的额外选项 */
.demo-options {
	display: none;
}