:root {
	--cyan: #22D3EE;
	--bg: #020617;
	--text: #e2e8f0;
	--text-secondary: #94a3b8;
	--text-muted: #475569;
	--card-bg: rgba(15, 23, 42, 0.45);
	--border: rgba(255, 255, 255, 0.06);
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	background-color: var(--bg);
	font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
	color: var(--text);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
	position: relative;
}

/* 淡淡网格背景 */
body::before {
	content: '';
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
	background-size: 60px 60px;
	opacity: 0.6;
}

.home-two-section {
	position: relative;
	z-index: 1;
	max-width: 1440px;
	margin: 0 auto;
	padding: 6rem 2rem 5rem;
}

/* 顶部宣言 */
.header-group {
	text-align: center;
	margin-bottom: 2rem;
}

.main-heading {
	font-size: clamp(1.8rem, 3.5vw, 2.5rem);
	font-weight: 900;
	letter-spacing: -0.02em;
	color: #fff;
}

.sub-heading {
	font-size: 0.95rem;
	color: var(--text-secondary);
	line-height: 1.7;
	max-width: 700px;
	margin: 1rem auto 0;
}

/* 状态药丸横向集群 */
.capsules-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem;
	margin-bottom: 4rem;
}

.capsule {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.45rem 1.1rem;
	border-radius: 9999px;
	border: 1px solid rgba(255, 255, 255, 0.06);
	background: rgba(15, 23, 42, 0.55);
	font-family: 'JetBrains Mono', 'Fira Code', monospace;
	font-size: 0.75rem;
	color: #94a3b8;
	white-space: nowrap;
	transition: border-color 0.3s;
}

.capsule:hover {
	border-color: rgba(34, 211, 238, 0.35);
}

.radar-dot {
	position: relative;
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--cyan);
	flex-shrink: 0;
}

.radar-dot::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 100%;
	height: 100%;
	border-radius: 50%;
	border: 1px solid var(--cyan);
	animation: radarPulse 3s ease-out infinite;
	pointer-events: none;
}

@keyframes radarPulse {
	0% {
		transform: translate(-50%, -50%) scale(1);
		opacity: 0.8;
	}

	100% {
		transform: translate(-50%, -50%) scale(3.2);
		opacity: 0;
	}
}

/* 四列产品矩阵 */
.products-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
	max-width: 100%;
	margin: 0 auto 4rem;
}

@media (max-width: 1024px) {
	.products-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.products-grid {
		grid-template-columns: 1fr;
	}

	.home-two-section {
		padding: 4rem 1rem 3rem;
	}

	.capsules-row {
		gap: 0.6rem;
	}
}

/* 产品卡片 (恢复静态边框) */
.product-card {
	position: relative;
	background: rgba(15, 23, 42, 0.45);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1px solid var(--border);
	border-radius: 1.5rem;
	padding: 2.5rem 2rem;
	display: flex;
	flex-direction: column;
	transition: border-color 0.3s, box-shadow 0.3s;
	overflow: hidden;
}

.product-card:hover {
	border-color: var(--cyan);
	box-shadow: 0 0 35px rgba(34, 211, 238, 0.15);
}

/* 底部流光进度条 */
.product-card::before {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0%;
	height: 2px;
	background: var(--cyan);
	transition: width 0.4s ease;
	z-index: 2;
	pointer-events: none;
}

.product-card:hover::before {
	width: 100%;
}

/* 动效图标区 */
.card-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin-bottom: 1.2rem;
	position: relative;
	z-index: 3;
}

.card-icon svg {
	width: 40px;
	height: 40px;
	stroke: var(--cyan);
}

/* 图标动画 */
.icon-spin {
	animation: spinSlow 6s linear infinite;
}

.icon-blink {
	animation: blinkPulse 2s ease-in-out infinite;
}

.icon-flow {
	stroke-dasharray: 20;
	stroke-dashoffset: 40;
	animation: dashFlow 2s linear infinite;
}

.icon-pulse-ring {
	animation: pulseRing 2s ease-in-out infinite;
}

@keyframes spinSlow {
	to {
		transform: rotate(360deg);
	}
}

@keyframes blinkPulse {

	0%,
	100% {
		opacity: 1;
		filter: drop-shadow(0 0 4px var(--cyan));
	}

	50% {
		opacity: 0.4;
		filter: drop-shadow(0 0 12px var(--cyan));
	}
}

@keyframes dashFlow {
	to {
		stroke-dashoffset: -40;
	}
}

@keyframes pulseRing {

	0%,
	100% {
		transform: scale(1);
		opacity: 1;
	}

	50% {
		transform: scale(1.1);
		opacity: 0.7;
	}
}

.card-header {
	margin-bottom: 1.5rem;
	position: relative;
	z-index: 3;
}

.card-title {
	font-size: 1.4rem;
	font-weight: 700;
	color: #fff;
	margin-bottom: 0.8rem;
}

.mini-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.mini-tag {
	font-size: 0.7rem;
	font-family: 'JetBrains Mono', 'Fira Code', monospace;
	padding: 0.25rem 0.7rem;
	border-radius: 9999px;
	background: rgba(255, 255, 255, 0.04);
	border: 0.5px solid rgba(255, 255, 255, 0.08);
	color: #94a3b8;
	white-space: nowrap;
}

.card-desc {
	font-size: 0.88rem;
	color: var(--text-secondary);
	line-height: 1.65;
	flex: 1;
	margin-bottom: 1.8rem;
	position: relative;
	z-index: 3;
}

.card-footer {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	position: relative;
	z-index: 3;
}

.card-price {
	font-family: 'JetBrains Mono', 'Fira Code', monospace;
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--cyan);
	line-height: 1.2;
}

.card-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.6rem 1.4rem;
	border-radius: 0.6rem;
	border: 1px solid rgba(255, 255, 255, 0.15);
	background: transparent;
	color: #fff;
	font-weight: 600;
	font-size: 0.85rem;
	cursor: pointer;
	transition: all 0.25s ease;
	white-space: nowrap;
	letter-spacing: 0.3px;
	text-decoration: none;
}

.card-btn:hover {
	background: var(--cyan);
	color: #020617;
	border-color: var(--cyan);
	box-shadow: 0 0 20px rgba(34, 211, 238, 0.35);
}

/* 底部CTA按钮 */
.bottom-cta-wrap {
	display: flex;
	justify-content: center;
}

.bottom-cta {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.8rem 2.2rem;
	border-radius: 0.8rem;
	border: 0;
	background: rgba(34, 211, 238, 0.04);
	color: var(--cyan);
	font-weight: 600;
	font-size: 0.9rem;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
	letter-spacing: 0.3px;
	box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.3), 0 0 20px rgba(34, 211, 238, 0.05);
}

.bottom-cta:hover {
	background: var(--cyan);
	color: #020617;
	box-shadow: 0 0 40px rgba(34, 211, 238, 0.35);
	border: 0;
	border-left: 0;
	border-right: 0;
	outline: none;
}

.bottom-cta::before,
.bottom-cta::after {
	display: none;
	content: none;
}

.bottom-cta:focus,
.bottom-cta:focus-visible {
	border: 0;
	outline: none;
	box-shadow: 0 0 40px rgba(34, 211, 238, 0.35);
}

.bottom-cta *,
.bottom-cta:hover * {
	border: 0;
	outline: none;
}

.bottom-cta svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.bottom-cta .google-icon {
	color: initial;
	fill: none;
}

.home-two-toast-container {
	position: fixed;
	top: 96px;
	right: 24px;
	z-index: 1200;
	display: flex;
	flex-direction: column;
	gap: 12px;
	pointer-events: none;
}

.home-two-toast {
	min-width: 180px;
	max-width: min(320px, calc(100vw - 32px));
	padding: 0.85rem 1rem;
	border-radius: 0.9rem;
	border: 1px solid rgba(34, 211, 238, 0.28);
	background: rgba(15, 23, 42, 0.92);
	color: #e2e8f0;
	font-size: 0.9rem;
	line-height: 1.5;
	box-shadow: 0 18px 42px rgba(2, 6, 23, 0.42);
	opacity: 0;
	transform: translateX(24px);
	transition: opacity 0.26s ease, transform 0.26s ease;
}

.home-two-toast.is-visible {
	opacity: 1;
	transform: translateX(0);
}

@media (max-width: 640px) {
	.home-two-toast-container {
		top: 78px;
		right: 12px;
		left: 12px;
	}

	.home-two-toast {
		max-width: 100%;
	}
}
