/*! fx67ll.com application styles */
@font-face {
	font-family: "PFR";
	src: url("../fonts/PingFang Regular.ttf") format("truetype");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

body {
	--color-primary: #2ecc71;
	--color-primary-light: #a9dfbf;
	--color-primary-dark: #1e8449;
	--color-primary-deep: #145a32;
	--color-text: #0b3d24;
	--color-bg: var(--color-primary);
	--color-bg-2: var(--color-primary-dark);
	--color-link: var(--color-primary-deep);
	--color-link-hover: #0b3d24;
	--font-sans: "PFR", "PingFang SC", "Microsoft YaHei", sans-serif;
	background: radial-gradient(
		ellipse at 100% 0,
		var(--color-primary-light) 0,
		var(--color-bg) 48%,
		var(--color-bg-2) 118%
	);
	font-family: var(--font-sans);
	font-synthesis: none;
	text-rendering: optimizeLegibility;
}

.fx67ll-identity {
	position: fixed;
	top: calc(50% + clamp(2.9rem, 8vw, 5.4rem));
	left: 50%;
	z-index: 1;
	width: min(90vw, 42rem);
	color: var(--color-text);
	text-align: center;
	transform: translateX(-50%);
}

.fx67ll-identity-title {
	position: relative;
	margin: 0;
	font-family: var(--font-sans);
	font-size: clamp(1rem, 2.1vw, 1.35rem);
	font-weight: 400;
	line-height: 1.6;
	letter-spacing: 0.24em;
	text-indent: 0.24em;
	text-shadow: 0 0.08rem 0.8rem rgba(213, 245, 227, 0.48);
	opacity: 0;
	animation: fx67llIdentityReveal 800ms 1.15s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.fx67ll-identity-title-link {
	color: inherit;
	text-decoration: none;
	cursor: pointer;
	touch-action: manipulation;
	transition: color 180ms ease, text-shadow 180ms ease;
}

.fx67ll-identity-title-link:hover,
.fx67ll-identity-title-link:focus-visible {
	color: var(--color-primary-deep);
	text-shadow: 0 0.08rem 1rem rgba(234, 255, 242, 0.9);
	transform: none;
}

.fx67ll-identity-title-link:focus-visible {
	outline: 2px solid rgba(20, 90, 50, 0.72);
	outline-offset: 0.45rem;
}

.fx67ll-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* 旧版主页传承的随机文案：安静地缀在品牌标题下方，随淡入淡出轮换（仅桌面端展示，由 JS 控制隐藏） */
.fx67ll-faith {
	display: block;
	max-width: min(84vw, 34rem);
	margin: 1.15rem auto 0;
	padding: 0.2rem 0.5rem;
	border: 0;
	background: transparent;
	color: rgba(11, 61, 36, 0.6);
	font-family: var(--font-sans);
	font-size: clamp(0.68rem, 1.5vw, 0.82rem);
	font-weight: 400;
	letter-spacing: 0.12em;
	line-height: 1.8;
	text-align: center;
	cursor: pointer;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
	opacity: 0;
	animation: fx67llFaithReveal 800ms 1.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
	transition: opacity 420ms ease, color 180ms ease;
}

.fx67ll-faith:hover,
.fx67ll-faith:focus-visible {
	color: var(--color-primary-deep);
}

.fx67ll-faith:focus-visible {
	outline: 2px solid rgba(20, 90, 50, 0.72);
	outline-offset: 0.4rem;
	border-radius: 0.4rem;
}

.fx67ll-faith[hidden] {
	display: none;
}

/* 文案切换中：先淡出，换文本后再淡入 */
.fx67ll-faith.fx67ll-faith-fading {
	opacity: 0 !important;
}

/* 长文案（书籍摘录等）：缩小字号与字距，避免占据过多画面 */
.fx67ll-faith.fx67ll-faith-long {
	font-size: clamp(0.6rem, 1.2vw, 0.7rem);
	letter-spacing: 0.05em;
	line-height: 1.7;
	max-width: min(88vw, 36rem);
}

/* 入场动画结束后由 JS 落定终态，避免后续切换时 reveal 动画被重复触发 */
.fx67ll-faith.fx67ll-faith-shown {
	animation: none;
	opacity: 1;
}

@keyframes fx67llFaithReveal {
	from {
		opacity: 0;
		transform: translateY(0.5rem);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* 品牌彩蛋：悬停「梵心临岚 凡溪聆林」时展示的随机个人作品链接气泡 */
.fx67ll-brand-bubble {
	position: absolute;
	top: calc(100% + 0.75rem);
	left: 50%;
	display: block;
	max-width: min(88vw, 30rem);
	overflow: hidden;
	padding: 0.32rem 0.85rem;
	border: 1px solid rgba(20, 90, 50, 0.26);
	border-radius: 0.6rem;
	background: rgba(234, 255, 242, 0.94);
	color: var(--color-primary-deep);
	font-size: 0.78rem;
	font-weight: 400;
	letter-spacing: 0.05em;
	line-height: 1.5;
	white-space: nowrap;
	text-overflow: ellipsis;
	box-shadow: 0 0.35rem 1rem rgba(11, 61, 36, 0.16);
	pointer-events: none;
	transform: translateX(-50%);
	animation: fx67llBrandBubbleIn 240ms ease both;
}

.fx67ll-brand-bubble[hidden] {
	display: none;
}

@keyframes fx67llBrandBubbleIn {
	from {
		opacity: 0;
		transform: translateX(-50%) translateY(0.35rem);
	}

	to {
		opacity: 1;
		transform: translateX(-50%) translateY(0);
	}
}

/* 品牌彩蛋：点击「梵心临岚 凡溪聆林」后确认跳转目标链接的弹窗 */
.fx67ll-brand-modal {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 100001;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
}

.fx67ll-brand-modal[hidden] {
	display: none;
}

.fx67ll-brand-modal-mask {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(11, 61, 36, 0.42);
	animation: fx67llBrandModalMaskIn 200ms ease both;
}

.fx67ll-brand-modal-card {
	position: relative;
	max-width: min(88vw, 24rem);
	padding: 1.35rem 1.5rem 1.25rem;
	border: 1px solid rgba(20, 90, 50, 0.26);
	border-radius: 0.9rem;
	background: rgba(234, 255, 242, 0.97);
	color: var(--color-primary-deep);
	text-align: center;
	box-shadow: 0 0.6rem 2rem rgba(11, 61, 36, 0.28);
	animation: fx67llBrandModalIn 220ms ease both;
}

.fx67ll-brand-modal-title {
	margin: 0 0 0.45rem;
	font-size: 0.95rem;
	letter-spacing: 0.1em;
}

.fx67ll-brand-modal-text {
	margin: 0 0 1.15rem;
	font-size: 0.85rem;
	line-height: 1.6;
}

.fx67ll-brand-modal-url {
	display: block;
	margin-top: 0.15rem;
	color: var(--color-primary-dark);
	font-size: 0.75rem;
	letter-spacing: 0.04em;
	word-break: break-all;
}

.fx67ll-brand-modal-actions {
	display: flex;
	justify-content: center;
}

.fx67ll-brand-modal-btn {
	min-width: 6.5rem;
	padding: 0.5rem 1.1rem;
	border: 1px solid rgba(20, 90, 50, 0.35);
	border-radius: 0.5rem;
	background: transparent;
	color: var(--color-primary-deep);
	font-size: 0.82rem;
	line-height: 1.4;
	letter-spacing: 0.1em;
	cursor: pointer;
	transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.fx67ll-brand-modal-btn + .fx67ll-brand-modal-btn {
	margin-left: 0.75rem;
}

.fx67ll-brand-modal-btn:focus-visible {
	outline: 2px solid rgba(20, 90, 50, 0.72);
	outline-offset: 2px;
}

.fx67ll-brand-modal-cancel:hover,
.fx67ll-brand-modal-cancel:focus-visible {
	background: rgba(20, 90, 50, 0.1);
}

.fx67ll-brand-modal-confirm {
	border-color: var(--color-primary-deep);
	background: var(--color-primary-deep);
	color: #eafff2;
}

.fx67ll-brand-modal-confirm:hover,
.fx67ll-brand-modal-confirm:focus-visible {
	border-color: var(--color-primary-dark);
	background: var(--color-primary-dark);
	box-shadow: 0 0.3rem 0.9rem rgba(11, 61, 36, 0.3);
}

@keyframes fx67llBrandModalMaskIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@keyframes fx67llBrandModalIn {
	from {
		opacity: 0;
		transform: scale(0.92);
	}

	to {
		opacity: 1;
		transform: scale(1);
	}
}

.fx67ll-overlay {
	background-color: var(--color-primary-deep);
	pointer-events: none;
}

.fx67ll-footer {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 100000;
	padding: 0.8rem 1rem calc(0.8rem + env(safe-area-inset-bottom));
	color: rgba(11, 61, 36, 0.76);
	font: 400 0.72rem/1.5 var(--font-sans);
	letter-spacing: 0.04em;
	text-align: center;
	user-select: text;
}

.fx67ll-footer a {
	color: inherit;
	text-decoration: none;
	transition: color 180ms ease, text-shadow 180ms ease;
}

.fx67ll-footer a:hover,
.fx67ll-footer a:focus-visible {
	color: var(--color-primary-deep);
	text-shadow: 0 0 0.8rem rgba(213, 245, 227, 0.85);
}

@keyframes fx67llIdentityReveal {
	from {
		opacity: 0;
		transform: translateY(0.8rem);
	}

	to {
		opacity: 0.82;
		transform: translateY(0);
	}
}

@media (max-width: 520px) {
	.fx67ll-identity {
		top: calc(50% + 3.4rem);
	}

	.fx67ll-identity-title {
		letter-spacing: 0.16em;
		text-indent: 0.16em;
	}

	.fx67ll-faith {
		margin-top: 0.9rem;
		letter-spacing: 0.06em;
	}

	.fx67ll-footer {
		padding-right: 0.65rem;
		padding-left: 0.65rem;
		font-size: 0.65rem;
		letter-spacing: 0.02em;
	}
}

@media (prefers-reduced-motion: reduce) {
	.fx67ll-identity-title {
		opacity: 0.82;
		animation: none;
	}

	.fx67ll-faith {
		opacity: 1;
		animation: none;
		transition: none;
	}
}
