/* 摇小树商品详情模板 · 前台 default 模板 */
.yxs-pdt {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 4px 0 8px;
	color: #222;
	font-size: 14px;
	line-height: 1.7;
}

.yxs-pdt,
.yxs-pdt *,
.yxs-pdt *::before,
.yxs-pdt *::after {
	box-sizing: border-box;
}

.yxs-pdt .yxs-pdt-sec {
	padding: 44px 0;
	border-bottom: 1px solid #f0f0f0;
}

.yxs-pdt .yxs-pdt-sec:first-child {
	padding-top: 12px;
}

.yxs-pdt .yxs-pdt-sec:last-child {
	border-bottom: 0;
	padding-bottom: 20px;
}

.yxs-pdt .yxs-pdt-h2 {
	margin: 0 0 14px;
	padding: 0;
	font-size: 32px;
	line-height: 1.3;
	font-weight: 700;
	color: #222;
	text-align: left;
}

/* 与「相关产品」标题一致，统一左对齐 */
.yxs-pdt .yxs-pdt-h2--center {
	text-align: left;
}

.yxs-pdt .yxs-pdt-lead {
	margin-bottom: 16px;
	font-size: 14px;
	line-height: 1.85;
	color: #333;
}

.yxs-pdt .yxs-pdt-points {
	margin-bottom: 18px;
	font-size: 14px;
	line-height: 1.9;
	color: #333;
}

/* 封面 */
.yxs-pdt .yxs-pdt-cover {
	padding-top: 0;
}

.yxs-pdt .yxs-pdt-cover__frame {
	position: relative;
	overflow: hidden;
	width: 100%;
	aspect-ratio: 3 / 4;
	background: #eee;
	border-radius: 10px;
}

.yxs-pdt .yxs-pdt-cover__img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.yxs-pdt .yxs-pdt-cover__overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 28px;
	background: linear-gradient(to top, rgba(0, 0, 0, .48), rgba(0, 0, 0, 0));
}

.yxs-pdt .yxs-pdt-cover__title {
	margin: 0 0 8px;
	padding: 0;
	font-size: 34px;
	line-height: 1.25;
	font-weight: 700;
	color: #fff;
}

.yxs-pdt .yxs-pdt-cover__sub {
	margin: 0;
	padding: 0;
	font-size: 14px;
	line-height: 1.6;
	color: rgba(255, 255, 255, .92);
}

/* 材质工艺 */
.yxs-pdt .yxs-pdt-mat {
	display: grid;
	gap: 10px;
}

.yxs-pdt .yxs-pdt-mat[data-count="1"] {
	grid-template-columns: 1fr;
}

.yxs-pdt .yxs-pdt-mat[data-count="2"] {
	grid-template-columns: 1fr 1fr;
}

.yxs-pdt .yxs-pdt-mat[data-count="3"] {
	grid-template-columns: repeat(3, 1fr);
}

.yxs-pdt .yxs-pdt-mat[data-count="4"] {
	grid-template-columns: 1fr 1fr;
}

.yxs-pdt .yxs-pdt-mat img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	background: #eee;
	border-radius: 10px;
}

.yxs-pdt .yxs-pdt-mat[data-count="4"] img {
	aspect-ratio: 4 / 5;
}

/* 一段话 */
.yxs-pdt .yxs-pdt-story-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 10px;
	margin: 16px 0;
}

.yxs-pdt .yxs-pdt-story-grid img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	background: #eee;
	border-radius: 8px;
}

.yxs-pdt .yxs-pdt-story-img {
	margin-top: 16px;
}

.yxs-pdt .yxs-pdt-story-img img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 10px;
}

/* 开发过程 */
.yxs-pdt .yxs-pdt-timeline__head {
	margin-bottom: 26px;
	text-align: left;
}

.yxs-pdt .yxs-pdt-timeline__head .yxs-pdt-h2 {
	margin-bottom: 6px;
}

.yxs-pdt .yxs-pdt-timeline__note {
	margin: 0;
	padding: 0;
	font-size: 12px;
	color: #888;
}

.yxs-pdt .yxs-pdt-tl {
	position: relative;
	margin: 0;
	padding: 6px 0;
	list-style: none;
}

.yxs-pdt .yxs-pdt-tl::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 0;
	bottom: 0;
	width: 3px;
	background: #000;
	opacity: .35;
	transform: translateX(-50%);
}

.yxs-pdt .yxs-pdt-tl__item {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 20px 1fr;
	gap: 18px;
	align-items: start;
	margin: 0 0 34px;
	padding: 0;
	list-style: none;
}

.yxs-pdt .yxs-pdt-tl__time {
	padding-top: 6px;
	font-size: 15px;
	font-weight: 500;
	color: #333;
	text-align: right;
}

.yxs-pdt .yxs-pdt-tl__badge {
	display: inline-block;
	margin-left: 4px;
	padding: 1px 4px;
	font-size: 10px;
	font-weight: 400;
	color: #888;
	border: 1px solid #ddd;
	border-radius: 3px;
	vertical-align: 2px;
}

.yxs-pdt .yxs-pdt-tl__marker {
	display: block;
	width: 14px;
	height: 14px;
	margin: 10px auto 0;
	background: #000;
	border-radius: 50%;
	position: relative;
	z-index: 2;
}

.yxs-pdt .yxs-pdt-tl__item.is-doing .yxs-pdt-tl__marker {
	box-shadow: 0 0 0 5px rgba(0, 0, 0, .12);
}

.yxs-pdt .yxs-pdt-tl__item.is-todo .yxs-pdt-tl__marker {
	background: #fff;
	border: 2px solid #000;
}

.yxs-pdt .yxs-pdt-tl__card {
	padding: 16px;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

.yxs-pdt .yxs-pdt-tl__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	margin-bottom: 10px;
	border-radius: 6px;
}

.yxs-pdt .yxs-pdt-tl__stage {
	margin: 0 0 4px;
	padding: 0;
	font-size: 14px;
	line-height: 1.5;
	font-weight: 600;
	color: #222;
}

.yxs-pdt .yxs-pdt-tl__desc {
	margin: 0;
	padding: 0;
	font-size: 13px;
	line-height: 1.6;
	color: #555;
}

.yxs-pdt .yxs-pdt-tl__item.is-right .yxs-pdt-tl__time {
	order: 3;
	text-align: left;
}

.yxs-pdt .yxs-pdt-tl__item.is-right .yxs-pdt-tl__marker {
	order: 2;
}

.yxs-pdt .yxs-pdt-tl__item.is-right .yxs-pdt-tl__card {
	order: 1;
}

/* 包装 */
.yxs-pdt .yxs-pdt-pkg {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.yxs-pdt .yxs-pdt-pkg.is-one {
	grid-template-columns: 1fr;
}

.yxs-pdt .yxs-pdt-pkg img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	background: #eee;
	border-radius: 10px;
}

@media (max-width: 921px) {
	.yxs-pdt .yxs-pdt-h2 {
		font-size: 25px;
		font-weight: 700;
	}
}

@media (max-width: 768px) {

	.yxs-pdt .yxs-pdt-sec {
		padding: 32px 0;
	}

	.yxs-pdt .yxs-pdt-cover__overlay {
		padding: 18px;
	}

	.yxs-pdt .yxs-pdt-cover__title {
		font-size: 24px;
	}

	.yxs-pdt .yxs-pdt-cover__sub {
		font-size: 13px;
	}

	.yxs-pdt .yxs-pdt-story-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 6px;
	}

	.yxs-pdt .yxs-pdt-tl::before {
		left: 6px;
		transform: none;
	}

	.yxs-pdt .yxs-pdt-tl__item {
		grid-template-columns: 20px minmax(0, 1fr);
		gap: 12px;
	}

	.yxs-pdt .yxs-pdt-tl__time {
		grid-column: 2;
		grid-row: 1;
		padding-top: 0;
		font-size: 13px;
		text-align: left;
	}

	.yxs-pdt .yxs-pdt-tl__marker {
		grid-column: 1;
		grid-row: 1;
		margin: 3px 0 0;
	}

	.yxs-pdt .yxs-pdt-tl__card {
		grid-column: 2;
		grid-row: 2;
	}

	.yxs-pdt .yxs-pdt-tl__item.is-right .yxs-pdt-tl__time,
	.yxs-pdt .yxs-pdt-tl__item.is-right .yxs-pdt-tl__marker,
	.yxs-pdt .yxs-pdt-tl__item.is-right .yxs-pdt-tl__card {
		order: 0;
	}
}

/* 产品画报：瀑布流，按原图比例显示，不裁剪 */
.yxs-pdt .yxs-pdt-hb__grid {
	column-count: 4;
	column-gap: 16px;
}

.yxs-pdt .yxs-pdt-hb__item {
	position: relative;
	display: inline-block;
	width: 100%;
	vertical-align: top;
	margin: 0 0 16px;
	color: inherit;
	text-decoration: none;
	break-inside: avoid;
	-webkit-column-break-inside: avoid;
	page-break-inside: avoid;
}

.yxs-pdt .yxs-pdt-hb__thumb {
	position: relative;
	overflow: hidden;
	border-radius: 10px;
	background: #f5f5f5;
}

.yxs-pdt .yxs-pdt-hb__thumb img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
}

/* 默认只显示封面，标题和作者叠在图片底部，悬停或点开时出现 */
.yxs-pdt .yxs-pdt-hb__info {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 30px 12px 10px;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.68));
	border-radius: 0 0 10px 10px;
	opacity: 0;
	transform: translateY(4px);
	transition: opacity 0.2s ease, transform 0.2s ease;
	pointer-events: none;
}

.yxs-pdt .yxs-pdt-hb__item:hover .yxs-pdt-hb__info,
.yxs-pdt .yxs-pdt-hb__item.is-open .yxs-pdt-hb__info {
	opacity: 1;
	transform: translateY(0);
}

.yxs-pdt .yxs-pdt-hb__name {
	margin: 0 0 4px;
	font-size: 14px;
	font-weight: 500;
	color: #fff;
	line-height: 1.4;
}

.yxs-pdt .yxs-pdt-hb__author {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.88);
}

.yxs-pdt .yxs-pdt-hb__author img {
	display: block;
	border-radius: 50%;
}

@media (max-width: 768px) {
	.yxs-pdt .yxs-pdt-hb__grid {
		column-count: 2;
		column-gap: 12px;
	}

	.yxs-pdt .yxs-pdt-hb__item {
		margin-bottom: 12px;
	}
}
