/* ============================================================
   Advantage Widget – 1:1 源码还原
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

.adv-section {
	font-family: 'Inter', -apple-system, sans-serif;
	background-color: #F3F4F8;
	padding: 80px 20px;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.adv-container {
	width: 100%;
}

/* ---------- Section Header ---------- */
.adv-header {
	text-align: center;
	margin-bottom: 60px;
}

.adv-subtitle {
	display: block;
	color: #5A67D8;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 3px;
	margin-bottom: 12px;
}

.adv-title {
	font-size: 40px;
	font-weight: 800;
	color: #111827;
	letter-spacing: -1px;
	line-height: 1.2;
	margin: 0;
}

/* ---------- Grid ---------- */
.adv-grid {
	display: grid;
	gap: 24px;
}

.adv-cols-2 { grid-template-columns: repeat(2, 1fr); }
.adv-cols-3 { grid-template-columns: repeat(3, 1fr); }
.adv-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Card ---------- */
.adv-card {
	--mouse-x: 50%;
	--mouse-y: 50%;
	--glow: rgba(90, 103, 216, 0.10);

	position: relative;
	background: #FFFFFF;
	border-radius: 20px;
	padding: 36px 32px;
	border: 1px solid rgba(0, 0, 0, 0.06);
	overflow: hidden;
	text-align: center;
	transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
	            box-shadow 0.3s ease;
	cursor: default;
}

.adv-card::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(
		600px circle at var(--mouse-x) var(--mouse-y),
		var(--glow),
		transparent 60%
	);
	opacity: 0;
	transition: opacity 400ms ease;
	pointer-events: none;
}

.adv-card:hover::before {
	opacity: 1;
}

.adv-card::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 0;
	height: 3px;
	background: var(--accent, #5A67D8);
	transition: width 350ms ease;
	z-index: 2;
}

.adv-card:hover::after {
	width: 100%;
}

.adv-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 20px 48px rgba(0, 0, 0, 0.10);
}

/* ---------- Card Image (左上角图标图片) ---------- */
.adv-card-image {
	margin-bottom: 24px;
	position: relative;
	z-index: 1;
}

.adv-card-image img {
	width: 56px;
	height: 56px;
	object-fit: contain;
	display: inline-block;
}

/* ---------- Card Text ---------- */
.adv-card-title {
	font-size: 18px;
	font-weight: 700;
	color: #111827;
	letter-spacing: -0.3px;
	margin: 0 0 12px;
	line-height: 1.3;
	position: relative;
	z-index: 1;
}

.adv-card-desc {
	font-size: 14px;
	font-weight: 400;
	color: #6B7280;
	line-height: 1.7;
	margin: 0;
	position: relative;
	z-index: 1;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.adv-cols-4 { grid-template-columns: repeat(2, 1fr); }
	.adv-cols-3 { grid-template-columns: repeat(2, 1fr); }
	.adv-title  { font-size: 32px; }
}

@media (max-width: 600px) {
	.adv-cols-4,
	.adv-cols-3,
	.adv-cols-2 { grid-template-columns: 1fr; }
	.adv-title  { font-size: 26px; }
	.adv-card   { padding: 28px 24px; }
}
