/* ==========================================================================
   网站配套页专用样式：首屏的笔电 + 手机 + 通知
   （配套卡片、流程的样式在 4-components.css，其他页也会用到）
   ========================================================================== */

.rx-devices {
	position: relative;
	width: 100%;
	max-width: 600px;
	margin-left: auto;
	padding: 0 0 40px 0;
}

.rx-devices__laptop {
	width: 88%;
}

.rx-devices__laptop .rx-browser__view {
	aspect-ratio: 16 / 10.5;
}

/* 手机：叠在笔电右下角，轻轻上下浮动 */
.rx-devices__phone {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 30%;
	aspect-ratio: 9 / 19;
	padding: 8px;
	border: 1px solid var(--rx-line-strong);
	border-radius: 28px;
	background: #05080d;
	box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7);
	overflow: hidden;
	animation: rx-float 6s ease-in-out infinite;
}

.rx-devices__notch {
	position: absolute;
	left: 50%;
	top: 12px;
	z-index: 2;
	width: 34%;
	height: 14px;
	border-radius: 10px;
	background: #000;
	transform: translateX(-50%);
}

.rx-devices__phone img {
	width: 100%;
	height: 100%;
	border-radius: 20px;
	object-fit: cover;
}

.rx-devices__buy {
	position: absolute;
	left: 16px;
	right: 16px;
	bottom: 18px;
	padding: 8px;
	background: var(--rx-signal);
	color: #00131a;
	font-family: var(--rx-display);
	font-size: 12px;
	font-weight: 600;
	text-align: center;
	clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

/* 「新的询问」通知：每隔几秒跳出来 */
.rx-devices__toast {
	position: absolute;
	left: -12px;
	bottom: 18%;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	border: 1px solid var(--rx-line-strong);
	background: rgba(0, 0, 0, 0.85);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
	font-size: 13px;
	animation: rx-toast 5s var(--rx-ease) infinite;
}

.rx-devices__toast .rx-icon {
	width: 26px;
	height: 26px;
	color: #25d366;
}

.rx-devices__toast > span {
	display: grid;
	color: var(--rx-steel);
}

.rx-devices__toast b {
	color: var(--rx-frost);
}

@keyframes rx-toast {
	0%, 8% { opacity: 0; transform: translateX(-20px) scale(0.96); }
	16%, 78% { opacity: 1; transform: none; }
	88%, 100% { opacity: 0; transform: translateY(-10px); }
}

@media (max-width: 1020px) {
	.rx-devices {
		margin: 0 auto;
	}

	.rx-devices__toast {
		left: 0;
	}
}
