:root {
	--primary-start: #3b84fa;
	--primary-mid: #83b2ff;
	--accent-bg: rgba(255, 232, 203, 1);
	--text: #222222;
	--muted: #9b9b9b;
	--shadow: rgba(146, 146, 146, 0.3);
}

* {
	box-sizing: border-box;
}

html,
body {
	height: 100%;
}

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
		"PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
	background: #ffffff;
	color: var(--text);
}

img {
	max-width: 100%;
	display: block;
}

.page {
	min-height: 100vh;
	background: #fff;
}

.top-view {
	position: relative;
	width: 100%;
	padding-bottom: 16px;
}

.top-bg {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.top-bg-img {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	width: 100%;
	height: auto;
	z-index: 0;
	pointer-events: none;
}

.cip-info-top {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	padding-top: 32px;
}

.vip-name-c {
	display: flex;
	align-items: center;
	min-width: 0;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
}

.touxiang {
	width: 56px;
	height: 56px;
	border: rgba(255, 255, 255, 0.5) 2px solid;
	border-radius: 50%;
	overflow: hidden;
	flex: 0 0 auto;
}

.touxiang img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	background-color: rgba(255, 255, 255, 0.5);
}

.vip-name {
	margin-left: 12px;
	color: #ffffff;
	min-width: 0;
}

.vip-name .nickname {
	font-size: 16px;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.vip-name .num {
	margin-top: 6px;
	font-size: 12px;
	opacity: 0.95;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.vip-card {
	position: relative;
	width: 100%;
	padding: 14px 16px 0 16px;
}

.vip-bg {
	position: relative;
	width: 100%;
	border-radius: 12px;
	z-index: 0;
}

.vip-card-data {
	position: absolute;
	left: 16px;
	right: 16px;
	top: 40px;
	padding: 18px;
	z-index: 2;
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 12px;
}

.vip-card-data .title {
	font-size: 18px;
	font-weight: 600;
	color: #2f2b29;
}

.vip-card-data .quanyi {
	margin-top: 10px;
	font-size: 12px;
	color: #ab7223;
}

.right-card {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: flex-end;
	flex: 0 0 auto;
}

.right-card .jiage {
	font-size: 12px;
	color: #2f2b29;
	opacity: 0.9;
}

.right-card .ljkt {
	margin-top: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	color: #ffdbb7;
	padding: 8px 14px;
	background: radial-gradient(0% 0% at 0% 0%, #242325 0%, #3f3735 100%), #000000;
	box-shadow: 3px 0 14px 0 #e9c68b;
	border-radius: 999px;
	user-select: none;
	cursor: pointer;
}

.data-card {
	padding: 14px 16px;
	background: #fff;
}

.pay-form {
	padding: 6px 16px 10px 16px;
}

.confirm-btn {
	width: 100%;
	height: 48px;
	margin-top: 12px;
	border: 0;
	border-radius: 12px;
	background: linear-gradient(90deg, var(--primary-start) 0%, var(--primary-mid) 100%);
	color: #ffffff;
	font-size: 16px;
	font-weight: 600;
}

.confirm-btn:active {
	opacity: 0.9;
}

.form-item {
	background: #ffffff;
	box-shadow: 0 0 10px 0 var(--shadow);
	border-radius: 12px;
	padding: 12px 14px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 10px;
}

.form-label {
	font-size: 14px;
	color: var(--text);
	flex: 0 0 auto;
}

.form-input {
	width: 100%;
	border: 0;
	outline: none;
	font-size: 14px;
	text-align: right;
	color: var(--text);
	background: transparent;
}

.form-input::placeholder {
	color: #b6b6b6;
}

.card-title {
	font-size: 18px;
	font-weight: 500;
}

.card-list {
	margin-top: 14px;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.card-item {
	width: calc(50% - 5px);
	background: #ffffff;
	box-shadow: 0 0 10px 0 var(--shadow);
	border-radius: 12px;
	padding: 14px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.card-item .item-title {
	font-size: 14px;
	font-weight: 600;
	color: var(--text);
	margin-bottom: 6px;
	white-space: nowrap;
}

.card-item .item-sub {
	font-size: 12px;
	color: var(--muted);
}

.card-item img {
	width: 44px;
	height: 44px;
	object-fit: contain;
	flex: 0 0 auto;
}

.vip-button {
	width: calc(100% - 32px);
	height: 56px;
	background: linear-gradient(90deg, var(--primary-start) 0%, var(--primary-mid) 50%);
	margin: 8px auto 18px auto;
	box-shadow: 5px 0 18px 0 rgba(0, 0, 0, 0.25);
	border-radius: 999px;
	overflow: hidden;
	position: relative;
	cursor: pointer;
	user-select: none;
}

.vip-button::after {
	content: '';
	position: absolute;
	right: 0;
	width: 108px;
	height: 100%;
	background-color: var(--accent-bg);
}

.vip-button::before {
	content: '';
	position: absolute;
	top: 0;
	right: 108px;
	width: 0;
	height: 0;
	border-top: 56px solid transparent;
	border-left: 42px solid transparent;
	border-right: 42px solid var(--accent-bg);
	border-bottom: 18px solid var(--accent-bg);
	z-index: 1;
}

.money {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	color: #ffffff;
	font-size: 14px;
	z-index: 2;
	white-space: nowrap;
}

.money .num {
	font-size: 28px;
	font-weight: 700;
	margin: 0 2px;
}

.kaitong {
	position: absolute;
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	font-size: 16px;
	font-weight: 600;
	color: #3e86fa;
}

.pay-icon {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 22px;
	height: 22px;
	z-index: 2;
	object-fit: contain;
	pointer-events: none;
}

.hidden {
	display: none !important;
}

.modal-mask {
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px;
}

.modal {
	width: 100%;
	max-width: 420px;
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
	padding: 16px;
	position: relative;
	animation: modalPop 180ms ease-out;
}

@keyframes modalPop {
	from {
		opacity: 0;
		transform: translateY(8px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.modal-title {
	font-size: 18px;
	font-weight: 700;
	color: var(--text);
}

.modal-subtitle {
	margin-top: 6px;
	font-size: 13px;
	color: var(--muted);
}

.modal-card {
	margin-top: 14px;
	background: linear-gradient(135deg, rgba(59, 132, 250, 0.08) 0%, rgba(131, 178, 255, 0.16) 100%);
	border: 1px solid rgba(59, 132, 250, 0.18);
	border-radius: 14px;
	padding: 12px 14px;
}

.modal-card-label {
	font-size: 12px;
	color: var(--muted);
}

.modal-card-value {
	margin-top: 8px;
	font-size: 18px;
	font-weight: 800;
	letter-spacing: 1px;
	color: #1d4ed8;
	word-break: break-all;
}

.modal-actions {
	margin-top: 16px;
	display: flex;
	gap: 10px;
}

.modal-btn {
	flex: 1;
	height: 44px;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 700;
	border: 0;
	cursor: pointer;
	user-select: none;
}

.modal-btn:active {
	opacity: 0.92;
}

.modal-btn--ghost {
	background: #f3f4f6;
	color: #111827;
}

.modal-btn--primary {
	background: linear-gradient(90deg, var(--primary-start) 0%, var(--primary-mid) 100%);
	color: #ffffff;
}

.toast {
	position: fixed;
	left: 50%;
	bottom: 22px;
	transform: translateX(-50%);
	background: rgba(0, 0, 0, 0.75);
	color: #fff;
	padding: 10px 12px;
	border-radius: 10px;
	font-size: 13px;
	z-index: 9999;
	max-width: calc(100% - 40px);
	text-align: center;
}

@media (max-width: 360px) {
	.vip-card-data .title {
		font-size: 16px;
	}
	.money .num {
		font-size: 26px;
	}
}
