/* 查看购买 · 统一页 */
.yr-pv-page {
	background: #f5f5f5;
	min-height: 60vh;
	padding-bottom: 40px;
}

/* 顶栏：置顶按钮区（无站点导航时仍用浅色底） */
.yr-pv-banner {
	background: linear-gradient(180deg, #fff7f2 0%, #f5f5f5 100%);
	padding: 12px 12px 8px;
	border-bottom: 1px solid #f0e6e0;
	margin: 0;
}

.yr-pv-banner-inner {
	max-width: 720px;
	margin: 0 auto;
}

.yr-pv-nav {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 8px;
}

.yr-pv-nav-item {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 6px;
	border-radius: 10px;
	background: linear-gradient(135deg, #ff6a3d 0%, #ff9a4d 100%);
	color: #fff !important;
	text-decoration: none !important;
	box-sizing: border-box;
	box-shadow: 0 2px 8px rgba(255, 106, 61, 0.22);
	-webkit-tap-highlight-color: transparent;
}

.yr-pv-nav-item:active {
	filter: brightness(0.96);
}

.yr-pv-nav-icon {
	width: 22px;
	height: 22px;
	object-fit: contain;
	display: block;
	border-radius: 4px;
}

.yr-pv-nav-text {
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}

.yr-pv-nav-item.yr-pv-back {
	background: linear-gradient(135deg, #5a5a5a 0%, #7a7a7a 100%);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.yr-pv-nav-item.yr-pv-buy {
	background: linear-gradient(135deg, #22a06b 0%, #36c284 100%);
	box-shadow: 0 2px 8px rgba(34, 160, 107, 0.25);
}

.yr-pv-main {
	max-width: 720px;
	margin: 0 auto;
	padding: 12px 12px 0;
}

.yr-pv-card {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	padding: 18px 16px 16px;
}

.yr-pv-title {
	margin: 0 0 14px;
	padding: 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.35;
	color: #222;
	word-break: break-word;
}

.yr-pv-empty {
	padding: 28px 10px;
	text-align: center;
	color: #999;
	font-size: 14px;
}

/* 多页滑动整体 */
.yr-pv-pager {
	margin: 0;
}

.yr-pv-viewport {
	overflow: hidden;
	width: 100%;
	touch-action: pan-y;
}

.yr-pv-track {
	display: flex;
	transition: transform 0.28s ease;
	will-change: transform;
}

.yr-pv-page-slide {
	flex: 0 0 100%;
	width: 100%;
	box-sizing: border-box;
	padding: 0 1px;
}

.yr-pv-orders {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.yr-pv-order {
	border: 1px solid #e8e8e8;
	border-radius: 10px;
	padding: 12px 14px;
	background: #fff;
	position: relative;
	box-sizing: border-box;
}

.yr-pv-order.on {
	border-color: #f0c4b8;
	box-shadow: 0 0 0 1px #f0c4b8 inset;
	background: #fffaf8;
}

.yr-pv-order.on::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 0 0 14px 14px;
	border-color: transparent transparent #f0c4b8 transparent;
}

.yr-pv-order-row1 {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
}

.yr-pv-sku {
	font-size: 14px;
	font-weight: 600;
	color: #333;
	line-height: 1.35;
	flex: 1 1 auto;
	min-width: 0;
}

.yr-pv-meta {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 2px;
	flex: 0 0 auto;
}

.yr-pv-price {
	font-size: 14px;
	font-weight: 700;
	color: #e89580;
	line-height: 1.3;
	white-space: nowrap;
}

.yr-pv-time {
	font-size: 11px;
	color: #999;
	white-space: nowrap;
}

.yr-pv-order-row2 {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px dashed #eee;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 13px;
}

.yr-pv-cdk-label {
	color: #888;
	flex: 0 0 auto;
}

.yr-pv-cdk {
	font-family: Menlo, Consolas, Monaco, monospace;
	font-size: 13px;
	color: #222;
	word-break: break-all;
	flex: 1 1 auto;
	min-width: 0;
	-webkit-user-select: text;
	user-select: text;
	-webkit-touch-callout: default;
}

.yr-pv-copy {
	flex: 0 0 auto;
	color: #ff6a3d !important;
	text-decoration: none !important;
	font-size: 13px;
	font-weight: 600;
	padding: 2px 6px;
}

.yr-pv-cdk-empty {
	color: #bbb;
	font-size: 13px;
}

/* 圆点 + 手动翻页 */
.yr-pv-controls {
	margin-top: 16px;
	display: none;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}
.yr-pv-controls.is-on {
	display: flex;
}

.yr-pv-dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 6px 12px;
	background: #2a2a2a;
	border-radius: 999px;
}

.yr-pv-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #666;
	border: none;
	padding: 0;
	cursor: pointer;
	transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}
.yr-pv-dot.on {
	background: #fff;
	box-shadow: 0 0 6px rgba(255, 255, 255, 0.75);
	transform: scale(1.15);
}

.yr-pv-btns {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
}

.yr-pv-pagebtn {
	appearance: none;
	border: 1px solid #e5e5e5;
	background: #fff;
	color: #555;
	font-size: 13px;
	font-weight: 600;
	padding: 6px 14px;
	border-radius: 8px;
	cursor: pointer;
	line-height: 1.2;
}
.yr-pv-pagebtn:disabled {
	opacity: 0.4;
	cursor: default;
}
.yr-pv-pagebtn:not(:disabled):active {
	background: #f7f7f7;
}

.yr-pv-pagenum {
	font-size: 13px;
	color: #888;
	min-width: 64px;
	text-align: center;
}
.yr-pv-pagenum b {
	color: #333;
	font-weight: 700;
}

@media (min-width: 768px) {
	.yr-pv-banner {
		padding: 18px 16px 10px;
	}
	.yr-pv-nav {
		gap: 12px;
	}
	.yr-pv-nav-item {
		flex-direction: row;
		gap: 8px;
		padding: 12px 14px;
		border-radius: 12px;
	}
	.yr-pv-nav-icon {
		width: 24px;
		height: 24px;
	}
	.yr-pv-nav-text {
		font-size: 14px;
	}
	.yr-pv-main {
		padding: 16px 16px 0;
	}
	.yr-pv-card {
		padding: 24px 28px 22px;
		border-radius: 14px;
	}
	.yr-pv-title {
		font-size: 22px;
		margin-bottom: 18px;
	}
	.yr-pv-order {
		padding: 14px 18px;
	}
	.yr-pv-sku {
		font-size: 15px;
	}
	.yr-pv-meta {
		flex-direction: row;
		align-items: center;
		gap: 14px;
	}
	.yr-pv-price {
		font-size: 15px;
	}
	.yr-pv-time {
		font-size: 12px;
	}
}

/* —— 个人中心购买记录（收藏样式） —— */
.yr-uo-list {
	margin: 0;
	padding: 0;
}
.yr-uo-item {
	display: block;
	padding: 12px 0;
	border-bottom: 1px solid #f0f0f0;
}
.yr-uo-item:last-child {
	border-bottom: none;
}
.yr-uo-top {
	display: flex;
	align-items: stretch;
	gap: 12px;
}
.yr-uo-thumb {
	flex: 0 0 110px;
	width: 110px;
	height: 75px;
	border-radius: 6px;
	object-fit: cover;
	display: block;
	background: #eee;
}
.yr-uo-body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 8px;
}
.yr-uo-texts {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 3px;
}
.yr-uo-title {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	color: #222;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.yr-uo-title a {
	color: inherit !important;
	text-decoration: none !important;
}
.yr-uo-sku {
	margin: 0;
	font-size: 12px;
	color: #888;
	line-height: 1.3;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.yr-uo-time {
	margin: 0;
	font-size: 12px;
	color: #bbb;
	line-height: 1.3;
}
.yr-uo-price {
	flex: 0 0 auto;
	align-self: center;
	font-size: 14px;
	font-weight: 700;
	color: #e89580;
	white-space: nowrap;
	padding-left: 4px;
}
.yr-uo-cdk {
	margin-top: 8px;
	padding: 8px 10px;
	background: #fafafa;
	border-radius: 8px;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 13px;
}
.yr-uo-cdk-label {
	color: #888;
}
.yr-uo-cdk-code {
	font-family: Menlo, Consolas, Monaco, monospace;
	color: #222;
	word-break: break-all;
	flex: 1 1 auto;
	min-width: 0;
	-webkit-user-select: text;
	user-select: text;
	-webkit-touch-callout: default;
}
.yr-uo-copy {
	color: #ff6a3d !important;
	text-decoration: none !important;
	font-weight: 600;
	flex: 0 0 auto;
}
.yr-uo-cdk-empty {
	color: #ccc;
	font-size: 12px;
}
.yr-uo-actions {
	margin-top: 6px;
	font-size: 12px;
}
.yr-uo-actions a {
	color: #999 !important;
	text-decoration: none !important;
}

/* 文章页 · 购买记录（弱化、不抢眼） */
.yr-article-history {
	margin: 10px 0 8px;
	padding: 10px 12px 12px;
	background: #f7f7f8;
	border: 1px solid #eee;
	border-radius: 10px;
	box-sizing: border-box;
}
.yr-ah-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 0 0 10px;
	padding-bottom: 8px;
	border-bottom: 1px dashed #e4e4e4;
}
.yr-ah-title {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 600;
	color: #444;
	margin: 0;
}
.yr-ah-title::before {
	content: "";
	display: inline-block;
	width: 3px;
	height: 12px;
	border-radius: 2px;
	background: #c5c9d0;
}
.yr-ah-link {
	font-size: 12px;
	font-weight: 400;
	color: #9a9a9a !important;
	text-decoration: none !important;
	white-space: nowrap;
}
.yr-ah-link:hover {
	color: #666 !important;
}
.yr-ah-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
/* ≥3 条：左右滑动翻页（每页 2 条） */
.yr-ah-viewport {
	overflow: hidden;
	width: 100%;
	touch-action: pan-y;
}
.yr-ah-track {
	display: flex;
	width: 100%;
	transition: transform 0.28s ease;
	will-change: transform;
}
.yr-ah-page {
	flex: 0 0 100%;
	width: 100%;
	box-sizing: border-box;
	padding: 0 1px;
}
.yr-ah-dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 8px 0 0;
	padding: 0;
	background: none;
}
.yr-ah-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #d0d0d0;
	border: none;
	padding: 0;
	cursor: pointer;
	transition: background 0.2s, transform 0.2s;
}
.yr-ah-dot.on {
	background: #999;
	transform: scale(1.15);
}
.yr-ah-item {
	border: 1px solid #ebebeb;
	border-radius: 8px;
	padding: 10px 11px;
	background: #fff;
}
.yr-ah-row1 {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}
.yr-ah-sku {
	font-size: 12px;
	font-weight: 400;
	color: #777;
}
.yr-ah-time {
	font-size: 11px;
	color: #aaa;
	white-space: nowrap;
}
.yr-ah-row2 {
	margin-top: 7px;
	padding-top: 7px;
	border-top: 1px dashed #efefef;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 12px;
}
.yr-ah-cdk-label {
	color: #999;
}
.yr-ah-cdk {
	font-family: Menlo, Consolas, Monaco, monospace;
	color: #555;
	word-break: break-all;
	flex: 1 1 auto;
	min-width: 0;
	-webkit-user-select: text;
	user-select: text;
	-webkit-touch-callout: default;
}
.yr-ah-copy {
	color: #8a9aab !important;
	text-decoration: none !important;
	font-weight: 500;
	flex: 0 0 auto;
}
.yr-ah-empty {
	color: #bbb;
	font-size: 12px;
}

/* 个人中心 · 搜索 & 翻页 */
.yr-uo-search {
	display: flex;
	gap: 8px;
	margin: 0 0 14px;
	align-items: center;
}
.yr-uo-search input[type="search"],
.yr-uo-search input[type="text"] {
	flex: 1 1 auto;
	min-width: 0;
	height: 36px;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	padding: 0 12px;
	font-size: 13px;
	box-sizing: border-box;
}
.yr-uo-search button {
	flex: 0 0 auto;
	height: 36px;
	padding: 0 14px;
	border: none;
	border-radius: 8px;
	background: #ff6a3d;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}
.yr-uo-pager {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 18px 0 8px;
}
.yr-uo-pager .yr-uo-pgbtn {
	appearance: none;
	border: 1px solid #e5e5e5;
	background: #fff;
	color: #555;
	font-size: 13px;
	padding: 6px 12px;
	border-radius: 8px;
	cursor: pointer;
	text-decoration: none !important;
}
.yr-uo-pager .yr-uo-pgbtn.is-disabled,
.yr-uo-pager .yr-uo-pgbtn[disabled] {
	opacity: 0.4;
	pointer-events: none;
}
.yr-uo-pager .yr-uo-pgnum {
	font-size: 13px;
	color: #888;
}
.yr-uo-pager .yr-uo-pgnum b {
	color: #333;
}
.yr-uo-pager .yr-uo-jump {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	color: #888;
}
.yr-uo-pager .yr-uo-jump input {
	width: 48px;
	height: 30px;
	border: 1px solid #e5e5e5;
	border-radius: 6px;
	text-align: center;
	font-size: 13px;
}
.yr-uo-pager .yr-uo-jump button {
	height: 30px;
	padding: 0 10px;
	border: 1px solid #e5e5e5;
	border-radius: 6px;
	background: #fff;
	font-size: 12px;
	cursor: pointer;
}
