/**
 * 产品参数表 — 样式
 */

.b2b-spec__table {
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--lg, 18px);
	overflow: hidden;
	background: var(--wp--preset--color--white);
}

.b2b-spec__row {
	display: grid;
	grid-template-columns: minmax(140px, 220px) 1fr;
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.b2b-spec__row:last-child {
	border-bottom: 0;
}

.b2b-spec__row:nth-child(odd) {
	background: rgba(15, 23, 42, 0.015);
}

/* split 模式：两行并排 */
.b2b-spec__table--split {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
}

.b2b-spec__table--split .b2b-spec__row {
	border-right: 1px solid var(--wp--preset--color--border);
}

@media (max-width: 767px) {
	.b2b-spec__row {
		grid-template-columns: 1fr;
	}

	.b2b-spec__label {
		border-bottom: 1px dashed var(--wp--preset--color--border);
	}
}

.b2b-spec__label {
	padding: 1rem clamp(1rem, 0.85rem + 0.6vw, 1.5rem);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	line-height: 1.5;
	color: var(--wp--preset--color--text);
	background: rgba(15, 23, 42, 0.02);
}

.b2b-spec__value {
	padding: 1rem clamp(1rem, 0.85rem + 0.6vw, 1.5rem);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.65;
	color: var(--wp--preset--color--text-muted);
}

/* --- CTA --- */

.b2b-spec__cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.5rem;
	margin-top: clamp(1.75rem, 1.5rem + 1vw, 2.5rem);
}

.b2b-spec__cta .b2b-btn {
	border: 0;
	font-family: inherit;
	cursor: pointer;
}

.b2b-spec__hint {
	margin: 0;
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--text-muted);
	max-width: 40ch;
}

/* --- 深色背景 --- */

.b2b-section--bg-dark .b2b-spec__table {
	background: rgba(255, 255, 255, 0.03);
	border-color: rgba(255, 255, 255, 0.12);
}

.b2b-section--bg-dark .b2b-spec__row {
	border-color: rgba(255, 255, 255, 0.12);
}

.b2b-section--bg-dark .b2b-spec__row:nth-child(odd) {
	background: rgba(255, 255, 255, 0.02);
}

.b2b-section--bg-dark .b2b-spec__label {
	background: rgba(255, 255, 255, 0.04);
	color: #fff;
}

.b2b-section--bg-dark .b2b-spec__value {
	color: rgba(255, 255, 255, 0.68);
}

.b2b-section--bg-dark .b2b-spec__hint {
	color: rgba(255, 255, 255, 0.55);
}
