/* 赞助打赏插件 前台样式 */

/* ---- 赞助弹窗（原生 JS 控制显示，不依赖 Bootstrap JS） ---- */
.xn-modal-mask {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9999;
	background: rgba(0, 0, 0, 0.45);
	overflow-y: auto;
}
.xn-modal-dialog {
	position: relative;
	max-width: 480px;
	margin: 60px auto 20px;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
	padding: 20px 24px;
}
.xn-modal-close {
	position: absolute;
	top: 8px;
	right: 12px;
	font-size: 24px;
	line-height: 1;
	color: #adb5bd;
	cursor: pointer;
	padding: 4px 8px;
	z-index: 1;
}
.xn-modal-close:hover {
	color: #495057;
}

.xn-sponsor-wrap {
	max-width: 560px;
	margin: 0 auto;
	padding: 16px 0;
}

.xn-sponsor-card {
	background: #fff;
	border: 1px solid #e9ecef;
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	padding: 24px 20px;
	margin-bottom: 16px;
}

.xn-sponsor-title {
	font-size: 17px;
	font-weight: 600;
	color: #333;
	text-align: center;
	margin-bottom: 20px;
}

.xn-sponsor-input-group {
	display: flex;
	align-items: center;
	border: 1px solid #d9dde3;
	border-radius: 8px;
	background: #f8f9fa;
	margin-bottom: 12px;
	overflow: hidden;
}

.xn-sponsor-input-group .xn-sponsor-prefix {
	flex: 0 0 52px;
	text-align: center;
	font-size: 18px;
	color: #666;
	padding: 10px 0;
	background: #f1f3f5;
	border-right: 1px solid #e9ecef;
}

.xn-sponsor-input-group input {
	flex: 1;
	border: 0;
	outline: 0;
	background: #fff;
	font-size: 18px;
	padding: 10px 14px;
	min-width: 0;
}

.xn-sponsor-input-group input:focus {
	background: #fff;
}

.xn-sponsor-pay-options {
	display: flex;
	justify-content: space-around;
	margin: 12px 0 14px;
}

.xn-sponsor-pay-options label {
	display: flex;
	align-items: center;
	cursor: pointer;
	font-size: 15px;
	color: #333;
	margin: 0;
}

.xn-sponsor-pay-options input[type="radio"] {
	margin-right: 6px;
	width: 15px;
	height: 15px;
	cursor: pointer;
}

.xn-sponsor-tip {
	font-size: 12px;
	color: #868e96;
	line-height: 1.6;
	margin-bottom: 14px;
}

.xn-sponsor-submit {
	width: 100%;
	padding: 12px 0;
	background: #3b82f6;
	color: #fff;
	border: 0;
	border-radius: 8px;
	font-size: 17px;
	cursor: pointer;
}

.xn-sponsor-submit:hover {
	background: #2f6fd6;
}

.xn-sponsor-confirm {
	text-align: center;
	font-size: 13px;
	color: #495057;
	margin-top: 10px;
}

/* 赞助名单 */
.xn-sponsor-list-title {
	font-size: 15px;
	font-weight: 600;
	color: #333;
	margin-bottom: 6px;
}

.xn-sponsor-list-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 9px 4px;
	border-bottom: 1px solid #f1f3f5;
	font-size: 14px;
}

.xn-sponsor-list-item:last-child {
	border-bottom: 0;
}

.xn-sponsor-list-user {
	font-weight: 600;
	color: #343a40;
}

.xn-sponsor-list-remark {
	color: #868e96;
	font-size: 13px;
	margin-left: 8px;
	max-width: 180px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.xn-sponsor-list-amount {
	color: #e03131;
	font-weight: 600;
}

.xn-sponsor-list-date {
	color: #adb5bd;
	font-size: 12px;
	margin-left: 10px;
}

/* 支付页 */
.xn-sponsor-pay-title {
	font-size: 17px;
	font-weight: 600;
	color: #333;
	text-align: center;
	margin-bottom: 6px;
}

.xn-sponsor-pay-amount {
	text-align: center;
	font-size: 15px;
	color: #495057;
	margin-bottom: 4px;
}

.xn-sponsor-pay-amount .amount {
	color: #e03131;
	font-size: 26px;
	font-weight: 700;
	margin: 0 4px;
}

.xn-sponsor-pay-info {
	text-align: center;
	font-size: 13px;
	color: #868e96;
	margin-bottom: 16px;
}

.xn-sponsor-qrcode-box {
	border: 1px solid #e9ecef;
	border-radius: 12px;
	padding: 16px 12px;
	text-align: center;
	background: #fff;
}

.xn-sponsor-qrcode-box img {
	max-width: 200px;
	width: 100%;
	border-radius: 6px;
}

.xn-sponsor-qrcode-box .pay-name {
	font-size: 15px;
	font-weight: 600;
	color: #333;
	margin-top: 10px;
}

.xn-sponsor-qrcode-box .pay-slogan {
	font-size: 13px;
	color: #868e96;
	margin-top: 2px;
}

.xn-sponsor-qrcode-box .pay-money {
	font-size: 15px;
	font-weight: 600;
	color: #e03131;
	margin-top: 4px;
}
