/* ============================================================
 * Login Guard —— 子比风登录落地页 + 头像下拉菜单
 * 配色：深紫夜底 #16102E / 玫瑰 #F4A9C0 / 金 #FFCB52
 * ============================================================ */

/* ---------- 头像下拉菜单 ---------- */
.site-user {
	position: relative;
}

.site-user__toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 4px 10px;
	border: none;
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
	border-radius: 999px;
	transition: background .2s ease;
}
.site-user__toggle:hover {
	background: rgba(255, 255, 255, .08);
}

.site-user__avatar {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	object-fit: cover;
}
.site-user__name {
	max-width: 90px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.site-user__caret {
	font-size: 10px;
	opacity: .7;
	line-height: 1;
}

.site-user__menu {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	min-width: 168px;
	padding: 6px;
	background: #1f1638;
	border: 1px solid rgba(244, 169, 192, .25);
	border-radius: 12px;
	box-shadow: 0 12px 30px rgba(0, 0, 0, .4);
	z-index: 60;
}
.site-user__menu[hidden] {
	display: none;
}

.site-user__item {
	display: block;
	width: 100%;
	padding: 10px 12px;
	border: none;
	border-radius: 8px;
	background: transparent;
	color: #f4f0ff;
	font: inherit;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
	transition: background .15s ease;
}
.site-user__item:hover {
	background: rgba(244, 169, 192, .16);
}

/* ---------- 登录落地页（左品牌 + 右卡片） ---------- */
.destined-login-split {
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	gap: 40px;
	align-items: center;
	min-height: 68vh;
	padding: 40px 0;
}

.destined-login-split__brand {
	padding: 48px;
	border-radius: 22px;
	color: #fff;
	background: linear-gradient(135deg, #16102E 0%, #2a1846 100%);
	box-shadow: 0 18px 50px rgba(22, 16, 46, .35);
}
.destined-login-split__logo {
	width: 58px;
	height: 58px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 18px;
	border-radius: 16px;
	font-size: 30px;
	font-weight: 700;
	color: #16102E;
	background: linear-gradient(135deg, #F4A9C0 0%, #FFCB52 100%);
}
.destined-login-split__title {
	margin: 0 0 8px;
	font-size: 34px;
	letter-spacing: .5px;
}
.destined-login-split__slogan {
	margin: 0 0 26px;
	color: #F4A9C0;
	font-size: 16px;
}
.destined-login-split__features {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 12px;
}
.destined-login-split__features li {
	padding: 12px 16px;
	border-radius: 12px;
	background: rgba(255, 255, 255, .06);
	font-size: 15px;
}

.destined-login-split__panel {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
}

.destined-login-card {
	width: 100%;
	max-width: 372px;
	padding: 38px 30px;
	border-radius: 20px;
	background: #fff;
	color: #18191c;
	box-shadow: 0 22px 60px rgba(0, 0, 0, .18);
}
.destined-login-card__title {
	margin: 0 0 6px;
	font-size: 26px;
}
.destined-login-card__hint {
	margin: 0 0 22px;
	color: #6b6b76;
	font-size: 14px;
	line-height: 1.6;
}
.destined-login-card__cta {
	width: 100%;
	padding: 13px;
	font-size: 16px;
}
.destined-login-card__alt {
	margin-top: 18px;
	display: flex;
	gap: 10px;
	justify-content: center;
	align-items: center;
	font-size: 14px;
	color: #9a9aa3;
}
.destined-link {
	padding: 0;
	border: none;
	background: transparent;
	color: #b14a78;
	font: inherit;
	cursor: pointer;
}
.destined-link:hover {
	text-decoration: underline;
}

/* 登录卡片内嵌表单（独立登录页直接输入） */
.destined-login-form {
	display: grid;
	gap: 16px;
}
.destined-login-form__field {
	display: grid;
	gap: 6px;
}
.destined-login-form__label {
	font-size: 13px;
	color: #6b6b76;
}
.destined-login-form input[type="text"],
.destined-login-form input[type="password"] {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	border: 1px solid #e6e2ee;
	border-radius: 10px;
	font-size: 15px;
	color: #18191c;
	background: #faf8ff;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.destined-login-form input[type="text"]:focus,
.destined-login-form input[type="password"]:focus {
	outline: none;
	border-color: #b14a78;
	box-shadow: 0 0 0 3px rgba(177, 74, 120, .15);
}
.destined-login-form__remember {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #6b6b76;
}
.destined-login-form__submit {
	width: 100%;
	padding: 13px;
	font-size: 16px;
}
.destined-login-form__msg {
	margin: 0;
	font-size: 13px;
	min-height: 18px;
	color: #b14a78;
}
.destined-login-form__msg.is-error {
	color: #d33;
}
.destined-login-form__alt {
	margin-top: 2px;
	display: flex;
	gap: 10px;
	justify-content: center;
	align-items: center;
	font-size: 14px;
	color: #9a9aa3;
}

.destined-login-split__foot {
	margin: 0;
	color: #9a9aa3;
	font-size: 13px;
}
.destined-login-split__foot a {
	color: #b14a78;
	text-decoration: none;
}

/* 已登录提示页 */
.destined-login-page--ok {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	padding: 80px 0;
	text-align: center;
}

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
	.destined-login-split {
		grid-template-columns: 1fr;
		gap: 24px;
		min-height: auto;
		padding: 28px 0;
	}
	.destined-login-split__brand {
		padding: 32px;
	}
	.destined-login-split__title {
		font-size: 28px;
	}
}

/* ---------- 第三方登录（仿子比：圆形品牌按钮） ---------- */
.destined-social {
	margin-top: 22px;
}
.destined-social__divider {
	display: flex;
	align-items: center;
	gap: 12px;
	color: #b9b4c7;
	font-size: 13px;
	margin-bottom: 14px;
}
.destined-social__divider::before,
.destined-social__divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: rgba(177, 74, 120, .2);
}
.destined-social__list {
	display: flex;
	gap: 14px;
	justify-content: center;
	flex-wrap: wrap;
}
.destined-social__btn {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	text-decoration: none;
	color: #6b6b76;
	font-size: 12px;
}
.destined-social__icon {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--c, #7c5cff);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
	transition: transform .15s ease, box-shadow .15s ease;
}
.destined-social__icon svg {
	width: 24px;
	height: 24px;
}
/* v2.6.14：自定义图标（<img> 铺满圆形容器）
   v2.6.16：提高特异性（.destined-social .destined-social__icon img），
   确保能稳定覆盖 style.css 的全局 img / img[loading="lazy"] 规则
   （后者 opacity:0 会让图标永久透明 → 紫色空圆）。 */
.destined-social .destined-social__icon img {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	border-radius: 50%;
	display: block;
	opacity: 1;
	transform: none;
	transition: none;
}
.destined-social__btn:hover .destined-social__icon {
	transform: translateY(-2px);
	box-shadow: 0 10px 22px rgba(0, 0, 0, .18);
}
.destined-social__label {
	line-height: 1;
}

/* ---------- 第三方账号绑定面板（用户中心） ---------- */
.destined-social-bind {
	margin-top: 8px;
}
.destined-social-bind__title {
	font-size: 16px;
	margin: 0 0 12px;
}
.destined-social-bind__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.destined-social-bind__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border: 1px solid rgba(0, 0, 0, .08);
	border-radius: 12px;
	background: #fff;
}
.destined-social-bind__name {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	color: #2b2730;
}
.destined-social-bind__name::before {
	content: "";
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--c, #7c5cff);
}
.destined-social-bind__state {
	margin-left: auto;
	font-size: 13px;
	color: #8b8494;
}
.destined-social-bind__state.is-bound {
	color: #2e9e5b;
}
.destined-social-bind__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 72px;
	padding: 6px 14px;
	border-radius: 999px;
	border: 1px solid var(--c, #7c5cff);
	color: var(--c, #7c5cff);
	background: #fff;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}
.destined-social-bind__btn:hover {
	background: var(--c, #7c5cff);
	color: #fff;
}
