/* ===================================== */
/* 全局基础样式 */
/* ===================================== */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: "Microsoft Yahei", sans-serif;
}

html,
body {
	margin: 0;
	padding: 0;
	height: 100%;
	overflow-x: hidden;
}

/* 隐藏全局滚动条 */
html::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}
html {
	scrollbar-width: none;
	-ms-overflow-style: none;
}

/* ===================================== */
/* 页面容器：无左右padding */
/* ===================================== */
.container {
	width: 100%;
	/* max-width: 480px; */
	margin: 0 auto;
	padding: 0; /* 已取消内边距 */
	background: url("../img/beijing.png") no-repeat top center;
	background-size: 100% auto;
	background-attachment: local;
	min-height: 100vh;
	box-sizing: border-box;
	overflow-x: hidden;
	/* display: flex;
	flex-direction: column;
	align-items: center; */
}

/* ===================================== */
/* 登录弹窗（仅含 .login-popup-modal 的 layer，勿写全局 .layui-layer，否则会盖住 layer.msg 等背景） */
/* ===================================== */
.layui-layer:has(.login-popup-modal) {
	border-radius: 5.3vw !important;
	overflow: hidden !important;
	background: transparent !important;
}

.layui-layer:has(.login-popup-modal) .layui-layer-content {
	border-radius: 5.3vw !important;
	overflow: hidden !important;
	background: transparent !important;
}

.login-popup-modal {
	padding: 4vw 5vw !important;
	background: linear-gradient(to bottom, #ffefef, #fdf5f5) !important;
	border-radius: 5.3vw !important;
	width: 80vw !important;
	box-sizing: border-box;
}

.login-popup-title {
	text-align: center;
	font-size: 4.8vw;
	font-weight: bold;
	color: #eb403e;
	margin-top: 4vw;
	margin-bottom: 6vw;
	letter-spacing: 0.2vw;
}

.login-popup-item,
.login-popup-code-box {
	display: flex;
	align-items: center;
	width: 100%;
	height: 12vw;
	border: 1px solid #ffacab;
	border-radius: 4vw;
	background: #fff;
	overflow: hidden;
	margin-bottom: 4vw;
	box-sizing: border-box;
}

.login-popup-input,
.login-popup-code-input {
	flex: 1;
	height: 100%;
	border: none;
	padding: 0 3vw;
	font-size: 3.5vw;
	outline: none;
	background: transparent;
}

.login-popup-code-box div {
	width: 0.1vw;
	height: 8vw;
	background-color: #b2b2b2;
}

.login-popup-code-box img {
	width: 24vw;
	height: 100%;
	flex-shrink: 0;
	object-fit: contain;
	object-position: center;
}

.login-popup-code-btn {
	width: 28vw;
	height: 100%;
	background: #ffffff;
	color: #f25f5c;
	border: none;
	font-size: 3.5vw;
	cursor: pointer;
}

.login-popup-modal p {
	font-size: 2.5vw;
	color: #eb403e;
	margin: 0 0 4vw 0;
	text-align: center;
}

.login-popup-submit {
	width: 100%;
	height: 14vw;
	background-image: linear-gradient(0deg, #eb403e 0%, #f77472 100%);
	color: #fff;
	border: none;
	border-radius: 4vw;
	font-size: 5.3vw;
	font-weight: bold;
	cursor: pointer;
	margin-bottom: 4vw;
	letter-spacing: 3vw;
	text-indent: 3vw;
}

.login-popup-modal > div:last-child {
	text-align: center;
}
.login-popup-modal > div:last-child p {
	font-size: 2.7vw;
	color: #000;
}
.login-popup-modal > div:last-child a {
	color: #eb403e;
	text-decoration: none;
}

/* ===================================== */
/* Logo 栏：左右 4vw 内边距 */
/* ===================================== */
.member-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 2vw 4vw; /* 左右留白 */
	height: calc(9vw + 4vw);
	box-sizing: border-box;
	width: 100%;
}

.member-header .logo-img {
	width: 31vw;
	height: auto;
	object-fit: contain;
}

.member-header .search-icon {
	width: 46vw;
	height: 9vw;
	cursor: pointer;
	flex-shrink: 0;
}

.member-header .search-icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* 首页 Logo 栏 */
.member-header.index-layout {
	flex-direction: column;
	align-items: flex-start;
	height: auto;
	padding: 2vw 0; /* 左右留白 */
	width: 100%;
}

.member-header.index-layout > .logo-wrap {
	display: flex;
	align-items: center;
	height: 9vw;
	width: 100%;
	margin-bottom: 2vw;
	padding: 0 4vw;
}

.member-header.index-layout .logo-img {
	width: 31vw;
	height: auto;
	object-fit: contain;
}

/* ===================================== */
/* 会员状态 */
/* ===================================== */
.login-state {
	padding: 0; /* 左右留白 */
	width: 100%;
	box-sizing: border-box;
}

.member-status-card {
    width: 92%;           /* 全局统一宽度 */
    margin: 1.6vh auto 0; /* 自动居中 + 上下间距 */
    height: 26.4vw;
    display: flex;
    align-items: center;
    background-color: #f9f9f9;
    border-radius: 4vw;
    padding: 0 3vw;
    box-sizing: border-box;
}

.member-status-avatar {
	width: 15vw;
	height: 15vw;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
	margin-right: 2.5vw;
}

.member-status-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.member-status-info {
	height: 15vw;
	flex: 1;
	text-align: left;
}

.member-status-info h3 {
	font-size: 4.3vw;
	color: #333;
	font-weight: normal;
}

.member-status-info .desc1 {
	font-size: 2.7vw;
	color: #000;
}

.member-status-info .desc2 {
	font-size: 2.7vw;
	color: #787777;
}

.member-status-logout {
	width: 17vw;
	flex-shrink: 0;
}

.member-status-logout p {
	width: 16.4vw;
	height: 7vw;
	border-radius: 3.5vw;
	border: solid 0.3vw #585858;
	font-size: 3vw;
	line-height: 7vw;
	text-align: center;
	color: #333;
	box-sizing: border-box;
}

.member-status-card[lay-on] {
	cursor: pointer;
}

/* ===================================== */
/* 搜索弹窗 */
/* ===================================== */
.search-popup {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	z-index: 9999;
	transform: translateY(-100%);
	transition: transform 0.3s ease;
	box-sizing: border-box;
}

.search-popup-content {
	width: 100%;
	height: 14vw;
	background: #fff;
	border-bottom: 1px solid #ffacab;
	display: flex;
	align-items: center;
	gap: 2vw;
	padding: 0 4vw;
	box-sizing: border-box;
	position: relative;
	left: 0;
	right: 0;
}

.search-popup.show {
	transform: translateY(0);
}

.search-popup-content .search-input {
	flex: 1;
	height: 8vw;
	border: 1px solid #ffacab;
	border-radius: 4vw;
	padding: 0 3vw;
	font-size: 3.5vw;
	outline: none;
	box-sizing: border-box;
}

.search-popup-content .search-btn {
	width: 15vw;
	height: 8vw;
	background: #eb403e;
	color: #fff;
	border: none;
	border-radius: 4vw;
	font-size: 3vw;
	cursor: pointer;
}

.search-popup-content .close-btn {
	width: 12vw;
	height: 8vw;
	font-size: 3vw;
	color: #666;
	text-align: center;
	line-height: 8vw;
	cursor: pointer;
	box-sizing: border-box;
}

.search-popup-content .close-btn img {
		display: none;
	}

	/* 搜索结果容器 */
	.search-results {
		width: 100%;
		max-height: 60vh;
		overflow-y: auto;
		background: #fff;
		margin-top: 1px;
	}

	/* 搜索结果项 */
	.search-result-item {
		display: flex;
		align-items: center;
		padding: 3vw 4vw;
		border-bottom: 1px solid #f0f0f0;
		text-align: left;
		color: #333;
		font-size: 3.5vw;
		text-decoration: none;
		transition: background-color 0.2s ease;
	}

	.search-result-item:hover {
		background-color: #f5f5f5;
	}

	/* 搜索结果图片 */
	.search-result-img {
		width: 10vw;
		height: 10vw;
		border-radius: 1vw;
		object-fit: cover;
		margin-right: 3vw;
	}

	/* 搜索结果标题 */
	.search-result-title {
		flex: 1;
		line-height: 1.4;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	/* 协议弹窗样式 */
	.agreement-popup {
		width: 100%;
		height: 100%;
		background: #fff;
		border-radius: 2vw;
		overflow: hidden;
	}

	.agreement-header {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 3vw 4vw;
		border-bottom: 1px solid #f0f0f0;
		background: #f9f9f9;
	}

	.agreement-header h3 {
		font-size: 4vw;
		font-weight: bold;
		color: #333;
		margin: 0;
	}

	.agreement-header .close-btn {
		font-size: 5vw;
		color: #999;
		cursor: pointer;
		width: 5vw;
		height: 5vw;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.agreement-content {
		padding: 4vw;
		height: calc(100% - 12vw);
		overflow-y: auto;
	}

	.agreement-content p {
		font-size: 3.2vw;
		line-height: 1.5;
		color: #333;
		margin-bottom: 3vw;
	}

	.agreement-content h4 {
		font-size: 3.5vw;
		font-weight: bold;
		color: #333;
		margin-top: 4vw;
		margin-bottom: 2vw;
		line-height: 1.4;
	}
