:root {
	--bg: #0F172A;
	--bg-deep: #020617;
	--accent: #22D3EE;
	--accent-purple: #A78BFA;
	--text: #F8FAFC;
	--text-muted: #94A3B8;
	--content-width: 1440px;
}

.metrics-section {
	position: relative;
	padding: 120px 0 140px;
	background: var(--bg-deep);
	overflow: hidden;
}

.metrics-section::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(34, 211, 238, 0.025) 1px, transparent 1px),
		linear-gradient(90deg, rgba(34, 211, 238, 0.025) 1px, transparent 1px);
	background-size: 80px 80px;
	pointer-events: none;
	z-index: 0;
}

.metrics-inner {
	position: relative;
	z-index: 1;
	max-width: var(--content-width);
	margin: 0 auto;
	padding: 0 40px;
}

.section-header {
	text-align: center;
	margin-bottom: 72px;
}

.section-header .accent-bar {
	width: 48px;
	height: 3px;
	background: var(--accent);
	margin: 0 auto 24px;
	border-radius: 2px;
	box-shadow: 0 0 16px rgba(34, 211, 238, 0.5);
}

.section-header h2 {
	font-size: clamp(28px, 3.5vw, 42px);
	font-weight: 800;
	letter-spacing: -0.3px;
	color: var(--text);
	margin-bottom: 16px;
	line-height: 1.3;
}

.section-header .subtitle {
	font-size: 16px;
	color: var(--text-muted);
	max-width: 600px;
	margin: 0 auto;
	line-height: 1.7;
}

.metrics-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
	gap: 40px;
	max-width: 1160px;
	margin: 0 auto;
	justify-content: center;
	align-items: stretch;
}

.metric-card {
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	background: rgba(15, 23, 42, 0.45);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.05);
	border-radius: 24px;
	padding: 40px 28px 36px;
	transition: border-color 0.35s, box-shadow 0.35s;
}

.metric-card:hover {
	border-color: rgba(34, 211, 238, 0.2);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(34, 211, 238, 0.05);
}

/* 示波器容器 */
.oscope-wrapper {
	width: 100%;
	margin-bottom: 28px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

/* 大数字 */
.oscope-value {
	font-family: 'SF Mono', 'Fira Code', 'JetBrains Mono', 'Consolas', monospace;
	font-size: 46px;
	font-weight: 700;
	color: var(--text);
	letter-spacing: -0.5px;
	line-height: 1;
}

.oscope-value .unit {
	font-size: 16px;
	color: var(--text-muted);
	margin-left: 2px;
	font-weight: 500;
}

/* Canvas 容器 */
.oscope-canvas-wrap {
	position: relative;
	width: 100%;
	max-width: 280px;
	height: 60px;
}

.oscope-canvas-wrap canvas {
	width: 100%;
	height: 100%;
	display: block;
}

.metric-title {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 3.9em;
	font-size: 18px;
	font-weight: 700;
	color: var(--text);
	margin-bottom: 10px;
	letter-spacing: 0.2px;
	line-height: 1.3;
}

.metric-desc {
	display: block;
	width: 100%;
	font-size: 14px;
	line-height: 1.65;
	color: var(--text-muted);
	white-space: normal;
	word-break: break-word;
	overflow-wrap: anywhere;
}

@media (max-width: 900px) {
	.metrics-cards {
		gap: 24px;
	}

	.metric-card {
		max-width: 100%;
	}

	.section-header h2 {
		font-size: 28px;
	}

	.oscope-value {
		font-size: 36px;
	}
}
