/* ---------- 电梯 ---------- */
.elv {
	position: fixed;
	right: 20px;
	bottom: 28px;
	z-index: 50;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
}
.elv-it {
	position: relative;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border: 1px solid var(--k200);
	border-radius: 16px;
	background: #fff;
	color: var(--k700);
	box-shadow: 0 8px 24px rgba(18, 23, 31, 0.1);
	transition:
		color 0.2s,
		border-color 0.2s,
		transform 0.2s,
		box-shadow 0.2s;
}
.elv-it[hidden] {
	display: none;
}
.elv-it:hover {
	border-color: var(--k600);
	color: var(--ink);
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(18, 23, 31, 0.14);
}
/* 按钮名称给读屏用，视觉上靠图标和悬停提示 */
.elv-lb {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* 免费领 20 积分：与其它按钮同尺寸的正方形主色块，图标 + 一行短字（「免费领」只给读屏，悬停提示里有完整说明） */
.elv-credits {
	align-content: center;
	gap: 3px;
	border-color: var(--o500);
	background: var(--o500);
	color: var(--ink);
	box-shadow: 0 6px 16px rgba(240, 146, 43, 0.28);
}
.elv-credits:hover {
	border-color: #f3a140;
	background: #f3a140;
	color: var(--ink);
	box-shadow: 0 10px 22px rgba(240, 146, 43, 0.32);
}
/* 已登录：变成「充值」入口，和其它按钮同一分量（白底），只有图标和字是品牌色 */
.elv-credits.is-member {
	border-color: var(--o100);
	background: #fff;
	color: var(--o700);
	box-shadow: 0 8px 24px rgba(18, 23, 31, 0.1);
}
.elv-credits.is-member:hover {
	border-color: var(--o500);
	background: var(--o50);
	color: var(--o700);
	box-shadow: 0 12px 28px rgba(18, 23, 31, 0.14);
}
.elv-credits.is-member svg {
	animation: none;
}
.elv-credits svg {
	animation: elv-nudge 2.8s ease-in-out infinite;
}
.elv-credits svg {
	width: 18px;
	height: 18px;
}
.elv-credits-tx {
	font-size: 11px;
	font-weight: 500;
	line-height: 1.1;
	white-space: nowrap;
}
.elv-credits-tx > span {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}
@keyframes elv-nudge {
	0%,
	70%,
	100% {
		transform: none;
	}
	78% {
		transform: translateY(-3px) rotate(-8deg);
	}
	86% {
		transform: translateY(0) rotate(6deg);
	}
	92% {
		transform: rotate(-3deg);
	}
}

/* 悬停提示：出现在按钮左侧 */
.elv-tip {
	position: absolute;
	right: calc(100% + 12px);
	top: 50%;
	padding: 8px 12px;
	border-radius: 8px;
	background: var(--ink);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	color: #fff;
	white-space: nowrap;
	pointer-events: none;
	opacity: 0;
	transform: translate(6px, -50%);
	transition:
		opacity 0.15s,
		transform 0.15s;
}
.elv-tip::after {
	content: '';
	position: absolute;
	left: 100%;
	top: 50%;
	border: 5px solid transparent;
	border-left-color: var(--ink);
	transform: translateY(-50%);
}
.elv-it:hover .elv-tip,
.elv-it:focus-visible .elv-tip {
	opacity: 1;
	transform: translate(0, -50%);
}

/* 手机：缩小并贴边，积分按钮只留图标和数字，不显示悬停提示 */
@media (max-width: 767px) {
	.elv {
		right: 12px;
		bottom: 16px;
		gap: 8px;
	}
	.elv-it {
		width: 44px;
		height: 44px;
		border-radius: 14px;
	}
	.elv-credits {
		gap: 1px;
	}
	.elv-credits svg {
		width: 16px;
		height: 16px;
	}
	.elv-credits-tx {
		font-size: 10px;
	}
	.elv-tip {
		display: none;
	}
}
@media (prefers-reduced-motion: reduce) {
	.elv-credits svg {
		animation: none;
	}
	.elv-it,
	.elv-tip {
		transition: none;
	}
}

/* ---------- 留言反馈弹窗 ---------- */
.fb-dialog {
	max-width: 480px;
}
.fb-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 28px;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 24px 64px rgba(18, 23, 31, 0.24);
}
.fb-head {
	display: flex;
	align-items: center;
	gap: 14px;
	padding-right: 36px;
}
.fb-ic {
	flex: none;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 14px;
	background: var(--o50);
	color: var(--o700);
}
.fb-card .fb-title {
	margin: 0;
	font-size: 20px;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.3;
}
.fb-sub {
	margin: 2px 0 0;
	font-size: 13px;
	color: var(--k500);
}

/* 留言类型：胶囊单选 */
.fb-types {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}
.fb-types legend {
	margin-bottom: 8px;
	padding: 0;
	font-size: 14px;
	color: #85878a;
}
.fb-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.fb-chip {
	position: relative;
	cursor: pointer;
}
.fb-chip input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.fb-chip span {
	display: inline-flex;
	align-items: center;
	height: 34px;
	padding: 0 14px;
	border: 1.5px solid var(--k200);
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	color: var(--k700);
	transition:
		border-color 0.2s,
		background 0.2s,
		color 0.2s;
}
.fb-chip:hover span {
	border-color: var(--k600);
}
.fb-chip input:checked + span {
	border-color: var(--ink);
	background: var(--ink);
	color: #fff;
}
.fb-chip input:focus-visible + span {
	outline: 2px solid var(--i600);
	outline-offset: 2px;
}

/* 留言内容：与登录输入框同一套外观，右下角字数 */
.fb-textarea {
	position: relative;
}
.fb-textarea textarea {
	display: block;
	width: 100%;
	min-height: 128px;
	padding: 12px 16px 28px;
	border: 1px solid #dce0e5;
	border-radius: 6px;
	font: inherit;
	font-size: 15px;
	line-height: 1.6;
	color: #202124;
	resize: vertical;
	transition:
		border-color 0.15s ease-in-out,
		box-shadow 0.15s ease-in-out;
}
.fb-textarea textarea::placeholder {
	color: #96969a;
}
.fb-textarea textarea:focus {
	outline: 0;
	border-color: rgba(32, 33, 36, 0.1);
	box-shadow: 0 4px 10px 3px rgba(32, 33, 36, 0.1);
}
.fb-textarea textarea[aria-invalid='true'] {
	border-color: #dc3545;
}
.fb-count {
	position: absolute;
	right: 12px;
	bottom: 8px;
	font-size: 12px;
	color: #96969a;
	font-variant-numeric: tabular-nums;
	pointer-events: none;
}
.fb-card .sg-field input {
	min-height: 44px;
	padding: 10px 16px;
	font-size: 15px;
}
.fb-card .ui-check a {
	color: var(--o700);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.fb-note {
	margin: -4px 0 0;
	font-size: 12px;
	line-height: 1.6;
	text-align: center;
	color: var(--k500);
}
@media (max-width: 480px) {
	.fb-card {
		padding: 24px 20px;
	}
}
