/* 给TA充电 */
.ct-charge-wrap,
.ct-modal,
.ct-author-tips {
	--ct-primary: #ff5d8f;
}

.ct-charge-wrap {
	display: flex;
	justify-content: center;
	margin: 24px 0;
}

.ct-charge-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 26px;
	border: 0;
	border-radius: 10px;
	background: linear-gradient(135deg, var(--ct-primary), #ff88ab);
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(255, 93, 143, 0.28);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ct-charge-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 24px rgba(255, 93, 143, 0.34);
}

.ct-charge-btn:active {
	transform: translateY(0);
}

.ct-charge-ico {
	width: 22px;
	height: 22px;
	flex: 0 0 auto;
}

.ct-charge-wrap--inline {
	display: inline-flex;
	justify-content: flex-start;
	margin: 0 0 0 8px;
	vertical-align: middle;
}

.ct-tab-cta {
	margin-bottom: 16px;
	text-align: center;
}

.ct-charge-btn--sm {
	gap: 5px;
	padding: 7px 14px;
	border-radius: 8px;
	font-size: 13px;
	box-shadow: 0 4px 10px rgba(255, 93, 143, 0.2);
}

.ct-charge-ico--sm {
	width: 16px;
	height: 16px;
}

.ct-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.ct-modal.is-open {
	display: flex;
}

.ct-mask {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
}

.ct-dialog {
	position: relative;
	z-index: 1;
	width: min(520px, 94vw);
	max-height: 90vh;
	overflow-y: auto;
	padding: 28px 22px 24px;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
	box-sizing: border-box;
}

.ct-x {
	position: absolute;
	top: 10px;
	right: 14px;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #b0b4bb;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.ct-x:hover {
	color: #666;
}

.ct-view[hidden] {
	display: none !important;
}

.ct-title {
	margin: 4px 0 22px;
	color: #22252b;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.4;
	text-align: center;
}

.ct-amounts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.ct-amount {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 3px;
	height: 68px;
	padding: 0 6px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #fff;
	color: #22252b;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	transition: border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.ct-amount:hover {
	border-color: #f3b3c7;
}

.ct-amount.is-active {
	border-color: var(--ct-primary);
	color: var(--ct-primary);
	box-shadow: inset 0 0 0 1px var(--ct-primary);
}

.ct-amount-ico {
	width: 23px;
	height: 23px;
	flex: 0 0 auto;
}

.ct-amount-num {
	font-size: 26px;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
}

.ct-amount-cur {
	align-self: flex-start;
	margin-top: 14px;
	font-size: 12px;
	font-weight: 600;
}

.ct-amount--custom {
	gap: 6px;
	font-size: 17px;
	font-weight: 500;
}

.ct-amount--custom .ct-ico {
	width: 20px;
	height: 20px;
}

.ct-custom {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
	padding: 6px 12px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #fff;
}

.ct-custom[hidden] {
	display: none;
}

.ct-custom-cur {
	color: #6b7280;
	font-size: 15px;
}

.ct-custom input {
	flex: 1;
	min-width: 0;
	padding: 6px 0;
	border: 0;
	outline: none;
	background: transparent;
	color: #22252b;
	font-size: 16px;
}

.ct-custom-ok {
	flex: 0 0 auto;
	padding: 5px 12px;
	border: 0;
	border-radius: 6px;
	background: var(--ct-primary);
	color: #fff;
	font-size: 13px;
	cursor: pointer;
}

.ct-message {
	display: block;
	width: 100%;
	min-height: 110px;
	margin-top: 14px;
	padding: 12px;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	background: #fff;
	color: #333;
	font-size: 15px;
	line-height: 1.7;
	resize: vertical;
	box-sizing: border-box;
}

.ct-message::placeholder {
	color: #b3b8c2;
}

.ct-total {
	margin: 8px 0 4px;
	color: #1a9c3e;
	font-weight: 700;
	line-height: 1;
	text-align: center;
}

.ct-total-cur {
	margin-right: 2px;
	font-size: 24px;
	vertical-align: 12px;
}

.ct-total strong {
	font-size: 48px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.ct-error {
	margin: 8px 0;
	color: #e5484d;
	font-size: 13px;
	text-align: center;
}

.ct-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 16px;
}

.ct-submit {
	width: 100%;
	padding: 13px 16px;
	border: 0;
	border-radius: 10px;
	background: linear-gradient(135deg, var(--ct-primary), #ff88ab);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 8px 18px rgba(255, 93, 143, 0.24);
}

.ct-submit:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.ct-cancel {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #fff;
	color: #666b73;
	font-size: 15px;
	cursor: pointer;
}

.ct-success {
	padding: 10px 0 4px;
	text-align: center;
}

.ct-success-icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 12px;
	color: #1a9c3e;
}

.ct-success h4 {
	margin: 0 0 8px;
	color: #22252b;
	font-size: 20px;
}

.ct-success p {
	margin: 0 0 18px;
	color: #6b7280;
	font-size: 14px;
}

.ct-success .ct-cancel {
	max-width: 200px;
	margin: 0 auto;
	display: block;
}

body.dark .ct-dialog,
body.dark-theme .ct-dialog,
html[data-theme="dark"] .ct-dialog {
	background: #25262b;
}

body.dark .ct-title,
body.dark-theme .ct-title,
html[data-theme="dark"] .ct-title,
body.dark .ct-success h4,
body.dark-theme .ct-success h4,
html[data-theme="dark"] .ct-success h4 {
	color: #e8eaed;
}

body.dark .ct-amount,
body.dark-theme .ct-amount,
html[data-theme="dark"] .ct-amount,
body.dark .ct-custom,
body.dark-theme .ct-custom,
html[data-theme="dark"] .ct-custom,
body.dark .ct-cancel,
body.dark-theme .ct-cancel,
html[data-theme="dark"] .ct-cancel {
	border-color: rgba(255, 255, 255, 0.12);
	background: #2d2f35;
	color: #e8eaed;
}

body.dark .ct-message,
body.dark-theme .ct-message,
html[data-theme="dark"] .ct-message {
	border-color: rgba(255, 255, 255, 0.14);
	background: #2d2f35;
	color: #e8eaed;
}

.ct-author-tips .ct-tip-item {
	padding: 14px 0;
	border-bottom: 1px solid #f0e4e9;
}

.ct-author-tips .ct-tip-item:last-of-type {
	border-bottom: 0;
}

.ct-tip-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.ct-tip-user {
	color: #22252b;
	font-size: 14px;
	font-weight: 600;
}

.ct-tip-amount {
	color: var(--ct-primary);
	font-size: 16px;
	font-weight: 700;
}

.ct-tip-message {
	margin-top: 6px;
	color: #6b7280;
	font-size: 13px;
	line-height: 1.7;
}

.ct-tip-time {
	margin-top: 6px;
	color: #9aa1ab;
	font-size: 12px;
}

.ct-tips-empty {
	padding: 20px 0;
	color: #9aa1ab;
	font-size: 14px;
	text-align: center;
}

.ct-tips-summary {
	padding-top: 12px;
	border-top: 1px solid #f0e4e9;
	color: #6b7280;
	font-size: 13px;
	text-align: right;
}

@media (max-width: 520px) {
	.ct-dialog {
		padding: 24px 14px 20px;
	}

	.ct-amounts {
		gap: 8px;
	}

	.ct-amount {
		height: 60px;
	}

	.ct-amount-num,
	.ct-amount {
		font-size: 22px;
	}

	.ct-amount-ico {
		width: 20px;
		height: 20px;
	}

	.ct-total strong {
		font-size: 40px;
	}
}
