/**
 * 轮毂规格小部件 - 样式
 */

/* 标题 ----------------------------------------------------------------- */
.hbc-wheel__title {
	margin: 0 0 24px;
	font-size: 28px;
	font-weight: 600;
	color: #111111;
}

/* 两栏布局 ------------------------------------------------------------- */
.hbc-wheel__layout {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 40px;
	align-items: start;
}

/* 规格列 --------------------------------------------------------------- */
.hbc-wheel__specs-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0 0 16px;
	padding: 0;
}

.hbc-wheel__spec {
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	font-size: 14px;
	line-height: 1.5;
}

:where(.hbc-wheel__spec-label) {
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #111111;
}

:where(.hbc-wheel__spec-value) {
	color: #1a73e8;
	margin: 0;
}

/* CTA 按钮 ------------------------------------------------------------- */
.hbc-wheel__cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: inherit;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.02em;
	margin-top: 16px;
}

:where(.hbc-wheel__cta-text) {
	color: #111111;
}

.hbc-wheel__cta-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background-color: #111111;
	color: #ffffff;
	flex-shrink: 0;
	transition: background-color 0.2s;
}

.hbc-wheel__cta-arrow svg {
	width: 14px;
	height: 14px;
}

.hbc-wheel__cta:hover .hbc-wheel__cta-arrow {
	background-color: #444444;
}

/* 主图查看器 ----------------------------------------------------------- */
.hbc-wheel__viewer {
	position: relative;
}

.hbc-wheel__main-link {
	display: block;
	position: relative;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	background-color: #f3f3f3;
	cursor: zoom-in;
}

.hbc-wheel__main-link img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity 0.3s;
}

/* 查看器内左右箭头 */
.hbc-wheel__viewer-nav {
	position: absolute;
	top: 10px;
	z-index: 2;
	width: 28px;
	height: 28px;
	background: rgba(0, 0, 0, 0.45);
	border: none;
	border-radius: 50%;
	color: #ffffff;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: background-color 0.2s;
}

.hbc-wheel__viewer-nav svg {
	width: 16px;
	height: 16px;
}

.hbc-wheel__viewer-nav:hover {
	background: rgba(0, 0, 0, 0.7);
}

.hbc-wheel__viewer-nav--prev { left: 10px; }
.hbc-wheel__viewer-nav--next { left: 46px; }

/* 饰面 ----------------------------------------------------------------- */
.hbc-wheel__finishes {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	margin-top: 36px;
}

.hbc-wheel__finish {
	display: flex;
	flex-direction: column;
	align-items: center;
	color: inherit;
	gap: 10px;
}

.hbc-wheel__finish-image {
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 50%;
	background-color: #f3f3f3;
}

.hbc-wheel__finish-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s;
}


.hbc-wheel__finish-text {
	text-align: center;
	font-size: 13px;
	line-height: 1.5;
	margin: 0;
}

:where(.hbc-wheel__finish-label) {
	font-weight: 700;
	color: #111111;
}

:where(.hbc-wheel__finish-value) {
	color: #1a73e8;
}

.hbc-wheel__empty {
	color: #888;
	text-align: center;
	padding: 32px 0;
}

/* 灯箱 ----------------------------------------------------------------- */
.hbc-wheel__lightbox {
	position: fixed;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.88);
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 60px 80px;
}

.hbc-wheel__lightbox[hidden] {
	display: none;
}

.hbc-wheel__lb-stage {
	max-width: 100%;
	max-height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hbc-wheel__lb-img {
	max-width: 100%;
	max-height: calc(100vh - 120px);
	object-fit: contain;
	display: block;
	user-select: none;
}

.hbc-wheel__lb-close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 40px;
	height: 40px;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.6);
	border-radius: 50%;
	color: #ffffff;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: background-color 0.2s, border-color 0.2s;
}

.hbc-wheel__lb-close svg {
	width: 18px;
	height: 18px;
}

.hbc-wheel__lb-close:hover,
.hbc-wheel__lb-close:focus {
	background-color: rgba(255, 255, 255, 0.15);
	border-color: #ffffff;
}

.hbc-wheel__lb-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.6);
	border-radius: 50%;
	color: #ffffff;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: background-color 0.2s, border-color 0.2s;
}

.hbc-wheel__lb-nav svg { width: 22px; height: 22px; }

.hbc-wheel__lb-nav:hover,
.hbc-wheel__lb-nav:focus {
	background-color: rgba(255, 255, 255, 0.15);
	border-color: #ffffff;
}

.hbc-wheel__lb-nav--prev { left: 18px; }
.hbc-wheel__lb-nav--next { right: 18px; }

body.hbc-wheel-locked { overflow: hidden; }

/* 响应式 --------------------------------------------------------------- */
@media (max-width: 1024px) {
	.hbc-wheel__layout {
		grid-template-columns: 1fr 1fr;
		gap: 28px;
	}
	.hbc-wheel__finishes {
		grid-template-columns: repeat(3, 1fr);
	}
	.hbc-wheel__lightbox {
		padding: 50px 60px;
	}
}

@media (max-width: 768px) {
	.hbc-wheel__layout {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	.hbc-wheel__finishes {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}
	.hbc-wheel__lightbox {
		padding: 50px 12px;
	}
	.hbc-wheel__lb-nav { width: 36px; height: 36px; }
	.hbc-wheel__lb-nav--prev { left: 8px; }
	.hbc-wheel__lb-nav--next { right: 8px; }
}
