/* =========================================================================
 * YULIN PAVILION · Bangle Studio 手镯定制页
 * 作用域全部在 .ysb 下，不影响站点其它页面。
 * 颜色沿用站点 token：#0a0b0a / #c2ad7f / #f2f0eb
 * ====================================================================== */

.ysb {
	--ysb-ink: #0a0b0a;
	--ysb-ink-2: #0e100d;
	--ysb-panel: #101210;
	--ysb-gold: #c2ad7f;
	--ysb-gold-2: #e4cb86;
	--ysb-cream: #f2f0eb;
	--ysb-muted: #a5a79c;
	--ysb-line: rgba(194, 173, 127, 0.26);
	--ysb-line-soft: rgba(242, 240, 235, 0.09);
	--ysb-serif: "Cinzel", "Times New Roman", Georgia, serif;
	--ysb-sans: "Montserrat", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
	--ysb-zh: "Songti SC", "SimSun", "STSong", serif;

	position: relative;
	margin: 0;
	padding: 0 0 150px;
	background:
		radial-gradient(1200px 620px at 78% -6%, rgba(194, 173, 127, 0.10), transparent 62%),
		radial-gradient(900px 560px at 6% 12%, rgba(126, 152, 118, 0.07), transparent 60%),
		linear-gradient(180deg, #0a0b0a 0%, #0a0b0a 55%, #080908 100%);
	color: var(--ysb-cream);
	font-family: var(--ysb-sans);
	font-size: 15px;
	line-height: 1.65;
	letter-spacing: 0.01em;
	overflow: hidden;
	-webkit-font-smoothing: antialiased;
}

.ysb *,
.ysb *::before,
.ysb *::after {
	box-sizing: border-box;
}

.ysb [hidden] {
	display: none !important;
}

.ysb img {
	max-width: 100%;
	height: auto;
}

.ysb a {
	color: var(--ysb-gold-2);
	text-decoration: none;
}

/* 主题兜底：定制页不要主题的内容边距，且必须独占一行（Astra 的 .site-content 是 flex，
   不重置的话 .ysb 会被 shrink-to-fit 靠左，整页看起来「歪」） */
body.ysb-page #content {
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.ysb-page #content > .ast-container,
body.ysb-page .site-content > .ast-container,
body.ysb-page #content > .container {
	width: 100% !important;
	max-width: none !important;
	padding: 0 !important;
}

body.ysb-page .ysb {
	width: 100%;
}

/* 压掉主题/Elementor 塞给标题的全局排版（大写、字距、加粗），
   只作用于定制页自有的标题类，避免影响组件里本来就该大写的 eyebrow 等。 */
.ysb-title,
.ysb-panel__head h2,
.ysb-results__title,
.ysb-close__title,
.ysb-nomatch__title,
.ysb-modal__title,
.ysb-card__name,
.ysb-option__title {
	text-transform: none;
	font-weight: 400;
	letter-spacing: 0.01em;
}

.ysb-title {
	letter-spacing: -0.005em;
}

/* 细颗粒噪点（整体氛围） */
.ysb-grain {
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 0.5;
	background-image: radial-gradient(rgba(255, 255, 255, 0.035) 0.5px, transparent 0.5px);
	background-size: 3px 3px;
	mix-blend-mode: screen;
	z-index: 0;
}

.ysb-wrap {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 44px;
}

/* ------------------------------------------------------------------ 抬头 */

.ysb-hero {
	position: relative;
	z-index: 1;
	padding: clamp(88px, 12vh, 150px) 0 46px;
}

.ysb-eyebrow {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 22px;
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--ysb-gold);
}

.ysb-eyebrow i {
	display: inline-block;
	width: 46px;
	height: 1px;
	background: linear-gradient(90deg, var(--ysb-gold), transparent);
}

.ysb-title {
	margin: 0 0 20px;
	max-width: 14ch;
	font-family: var(--ysb-serif);
	font-size: clamp(38px, 5.2vw, 68px);
	font-weight: 400;
	line-height: 1.06;
	letter-spacing: 0.005em;
	color: var(--ysb-cream);
}

.ysb-title em {
	font-style: normal;
	color: var(--ysb-gold-2);
}

.ysb-lede {
	max-width: 56ch;
	margin: 0;
	font-size: 14px;
	line-height: 1.8;
	color: var(--ysb-muted);
}

/* ------------------------------------------------------------------ 主体 */

.ysb-stage {
	margin-top: 10px;
}

.ysb-stage__grid {
	display: grid;
	grid-template-columns: minmax(360px, 456px) minmax(0, 1fr);
	gap: clamp(28px, 3.4vw, 56px);
	align-items: start;
}

/* ------------------------------------------------------------------ 参数面板 */

.ysb-panel {
	position: relative;
	padding: 30px 30px 26px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.008));
	border: 1px solid var(--ysb-line-soft);
}

.ysb-panel::before {
	content: "";
	position: absolute;
	top: -1px;
	left: 30px;
	right: 30px;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--ysb-gold), transparent);
	opacity: 0.55;
}

.ysb-panel__head {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-bottom: 22px;
	border-bottom: 1px solid var(--ysb-line-soft);
}

.ysb-step {
	font-size: 9px;
	font-weight: 600;
	letter-spacing: 0.3em;
	color: var(--ysb-gold);
}

.ysb-panel__head h2 {
	margin: 0;
	font-family: var(--ysb-serif);
	font-size: 23px;
	font-weight: 400;
	color: var(--ysb-cream);
}

.ysb-panel__head h2 span {
	margin-left: 8px;
	font-family: var(--ysb-zh);
	font-size: 12px;
	letter-spacing: 0.28em;
	color: var(--ysb-gold);
	vertical-align: middle;
}

.ysb-field {
	padding: 24px 0;
	border-bottom: 1px solid var(--ysb-line-soft);
}

.ysb-field:last-of-type {
	border-bottom: 0;
	padding-bottom: 8px;
}

.ysb-field__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}

.ysb-field__titles h3 {
	margin: 0 0 4px;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--ysb-cream);
}

.ysb-field__titles h3 span {
	margin-left: 6px;
	font-family: var(--ysb-zh);
	font-size: 10px;
	font-weight: 400;
	letter-spacing: 0.24em;
	text-transform: none;
	color: var(--ysb-gold);
}

.ysb-field__titles p {
	margin: 0;
	font-size: 11.5px;
	line-height: 1.5;
	color: rgba(165, 167, 156, 0.78);
}

.ysb-value {
	flex: 0 0 auto;
	font-family: var(--ysb-serif);
	font-size: 26px;
	line-height: 1;
	color: var(--ysb-gold-2);
	white-space: nowrap;
}

.ysb-value small {
	margin-left: 4px;
	font-family: var(--ysb-sans);
	font-size: 10px;
	letter-spacing: 0.14em;
	color: rgba(194, 173, 127, 0.72);
}

/* 滑杆 */

.ysb-range {
	padding-top: 4px;
}

.ysb-range__input {
	-webkit-appearance: none;
	appearance: none;
	display: block;
	width: 100%;
	height: 26px;
	margin: 0;
	background: transparent;
	cursor: pointer;
}

.ysb-range__input:focus {
	outline: none;
}

.ysb-range__input::-webkit-slider-runnable-track {
	height: 2px;
	border-radius: 2px;
	background:
		linear-gradient(90deg, var(--ysb-gold) 0%, var(--ysb-gold) var(--ysb-p, 50%), rgba(242, 240, 235, 0.14) var(--ysb-p, 50%), rgba(242, 240, 235, 0.14) 100%);
}

.ysb-range__input::-moz-range-track {
	height: 2px;
	border-radius: 2px;
	background: rgba(242, 240, 235, 0.14);
}

.ysb-range__input::-moz-range-progress {
	height: 2px;
	border-radius: 2px;
	background: var(--ysb-gold);
}

.ysb-range__input::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 20px;
	height: 20px;
	margin-top: -9px;
	border-radius: 50%;
	background: radial-gradient(circle at 32% 28%, #f6ead0, var(--ysb-gold) 62%, #8f7d55);
	border: 1px solid rgba(10, 11, 10, 0.6);
	box-shadow: 0 0 0 5px rgba(194, 173, 127, 0.12), 0 6px 16px rgba(0, 0, 0, 0.55);
	transition: box-shadow 0.18s ease;
}

.ysb-range__input:hover::-webkit-slider-thumb {
	box-shadow: 0 0 0 7px rgba(194, 173, 127, 0.16), 0 6px 18px rgba(0, 0, 0, 0.6);
}

.ysb-range__input:focus-visible::-webkit-slider-thumb {
	box-shadow: 0 0 0 8px rgba(194, 173, 127, 0.24);
}

.ysb-range__input::-moz-range-thumb {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: radial-gradient(circle at 32% 28%, #f6ead0, var(--ysb-gold) 62%, #8f7d55);
	border: 1px solid rgba(10, 11, 10, 0.6);
	box-shadow: 0 0 0 5px rgba(194, 173, 127, 0.12);
}

.ysb-range__scale {
	display: flex;
	justify-content: space-between;
	margin-top: 8px;
	font-size: 9px;
	letter-spacing: 0.16em;
	color: rgba(165, 167, 156, 0.6);
}

/* 色卡 */

.ysb-swatches {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.ysb-swatch {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 9px 11px;
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid transparent;
	color: var(--ysb-cream);
	font-family: inherit;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.18s ease, background 0.18s ease;
}

.ysb-swatch:hover {
	background: rgba(255, 255, 255, 0.045);
	border-color: var(--ysb-line-soft);
}

.ysb-swatch.is-active {
	border-color: var(--ysb-line);
	background: rgba(194, 173, 127, 0.08);
}

.ysb-swatch__dot {
	position: relative;
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background:
		radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.9), transparent 34%),
		radial-gradient(circle at 68% 78%, var(--c3), transparent 62%),
		linear-gradient(140deg, var(--c1), var(--c2));
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 3px 10px rgba(0, 0, 0, 0.45);
}

.ysb-swatch.is-active .ysb-swatch__dot::after {
	content: "";
	position: absolute;
	inset: -5px;
	border-radius: 50%;
	border: 1px solid rgba(194, 173, 127, 0.6);
}

.ysb-swatch__text {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
	min-width: 0;
}

.ysb-swatch__text strong {
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.06em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ysb-swatch__text small {
	font-family: var(--ysb-zh);
	font-size: 10px;
	letter-spacing: 0.18em;
	color: rgba(194, 173, 127, 0.75);
}

/* 形状 */

.ysb-shapes {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
}

.ysb-shape {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 14px 6px 12px;
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid transparent;
	color: var(--ysb-cream);
	font-family: inherit;
	cursor: pointer;
	text-align: center;
	transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.ysb-shape:hover {
	background: rgba(255, 255, 255, 0.045);
	border-color: var(--ysb-line-soft);
}

.ysb-shape.is-active {
	border-color: var(--ysb-line);
	background: rgba(194, 173, 127, 0.08);
	color: var(--ysb-gold-2);
}

.ysb-shape__icon {
	color: inherit;
	line-height: 0;
	opacity: 0.85;
}

.ysb-shape__icon svg {
	width: 38px;
	height: 38px;
}

.ysb-shape__text {
	display: flex;
	flex-direction: column;
	gap: 1px;
	line-height: 1.25;
}

.ysb-shape__text strong {
	font-size: 10.5px;
	font-weight: 500;
	letter-spacing: 0.08em;
	white-space: nowrap;
}

.ysb-shape__text small {
	font-family: var(--ysb-zh);
	font-size: 10px;
	letter-spacing: 0.2em;
	color: rgba(194, 173, 127, 0.75);
}

.ysb-shape__hint {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.ysb-panel__note {
	display: flex;
	gap: 10px;
	margin: 16px 0 0;
	padding-top: 16px;
	border-top: 1px solid var(--ysb-line-soft);
	font-size: 11px;
	line-height: 1.7;
	color: rgba(165, 167, 156, 0.8);
}

.ysb-panel__note span {
	color: var(--ysb-gold);
}

/* ------------------------------------------------------------------ 预览 */

.ysb-preview {
	position: sticky;
	top: 96px;
}

.ysb-preview__frame {
	position: relative;
	overflow: hidden;
	aspect-ratio: 960 / 760;
	background:
		radial-gradient(80% 70% at 50% 38%, #1b201a 0%, #111410 54%, #060706 100%);
	border: 1px solid var(--ysb-line-soft);
}

.ysb-preview__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transform: scale(1.012);
	transition: opacity 0.55s ease, transform 0.55s ease;
	will-change: transform, opacity;
}

.ysb-preview__img.is-ready {
	opacity: 1;
	transform: none;
}

.ysb-preview__shimmer {
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 0;
	background: linear-gradient(105deg, transparent 38%, rgba(194, 173, 127, 0.13) 50%, transparent 62%);
	background-size: 220% 100%;
	transition: opacity 0.25s ease;
}

.ysb-preview.is-busy .ysb-preview__shimmer {
	opacity: 1;
	animation: ysb-sheen 1.5s linear infinite;
}

@keyframes ysb-sheen {
	0% { background-position: 140% 0; }
	100% { background-position: -60% 0; }
}

.ysb-preview__badges {
	position: absolute;
	top: 16px;
	left: 16px;
	display: flex;
	gap: 8px;
	pointer-events: none;
}

.ysb-badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 6px 10px;
	background: rgba(8, 9, 8, 0.72);
	border: 1px solid rgba(194, 173, 127, 0.28);
	backdrop-filter: blur(6px);
	font-size: 9px;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--ysb-cream);
}

.ysb-badge i {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--ysb-gold);
	box-shadow: 0 0 8px var(--ysb-gold);
}

.ysb-preview.is-busy .ysb-badge i {
	animation: ysb-pulse 1s ease infinite;
}

@keyframes ysb-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.25; }
}

.ysb-preview__params {
	position: absolute;
	left: 16px;
	bottom: 16px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	max-width: calc(100% - 220px);
	margin: 0;
	padding: 0;
	list-style: none;
	pointer-events: none;
}

.ysb-preview__params li {
	padding: 5px 9px;
	background: rgba(8, 9, 8, 0.66);
	border: 1px solid rgba(242, 240, 235, 0.12);
	backdrop-filter: blur(4px);
	font-size: 9.5px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(242, 240, 235, 0.86);
	white-space: nowrap;
}

/* 查找类似商品按钮（右侧下方） */
.ysb-findbtn {
	position: absolute;
	right: 16px;
	bottom: 16px;
	display: inline-flex;
	align-items: center;
	gap: 14px;
	padding: 14px 18px;
	background: linear-gradient(135deg, #e6c98d, #c9a75f);
	border: 0;
	color: #241d0e;
	font-family: inherit;
	text-align: left;
	cursor: pointer;
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
	transition: transform 0.18s ease, filter 0.18s ease;
}

.ysb-findbtn:hover {
	transform: translateY(-2px);
	filter: brightness(1.05);
}

.ysb-findbtn:focus-visible {
	outline: 2px solid var(--ysb-gold-2);
	outline-offset: 3px;
}

.ysb-findbtn__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	line-height: 1.2;
}

.ysb-findbtn__text strong {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.ysb-findbtn__text small {
	font-family: var(--ysb-zh);
	font-size: 10px;
	letter-spacing: 0.2em;
	opacity: 0.72;
}

.ysb-findbtn__arrow {
	font-size: 16px;
	line-height: 1;
}

.ysb-findbtn.is-loading {
	pointer-events: none;
	opacity: 0.7;
}

.ysb-preview__caption {
	margin: 12px 0 0;
	text-align: right;
	font-size: 9.5px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(165, 167, 156, 0.55);
}

/* ------------------------------------------------------------------ 结果 */

.ysb-results {
	position: relative;
	z-index: 1;
	margin-top: clamp(64px, 9vw, 110px);
	padding-top: clamp(44px, 6vw, 70px);
	border-top: 1px solid var(--ysb-line-soft);
}

.ysb-results__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 30px;
}

.ysb-results__head .ysb-eyebrow {
	margin-bottom: 12px;
	gap: 10px;
}

.ysb-results__title {
	margin: 0 0 8px;
	font-family: var(--ysb-serif);
	font-size: clamp(26px, 3vw, 38px);
	font-weight: 400;
	line-height: 1.15;
	color: var(--ysb-cream);
}

.ysb-results__sub {
	margin: 0;
	max-width: 62ch;
	font-size: 12.5px;
	line-height: 1.7;
	color: var(--ysb-muted);
}

.ysb-results__count {
	flex: 0 0 auto;
	font-family: var(--ysb-serif);
	font-size: 34px;
	line-height: 1;
	color: var(--ysb-gold);
	opacity: 0.85;
}

.ysb-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
	gap: 18px;
}

.ysb-grid:empty {
	display: none;
}

/* 商品卡 */

.ysb-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.006));
	border: 1px solid var(--ysb-line-soft);
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.ysb-card:hover {
	border-color: var(--ysb-line);
	transform: translateY(-3px);
}

.ysb-card.is-locked {
	border-color: var(--ysb-gold);
	box-shadow: 0 0 0 1px rgba(194, 173, 127, 0.28) inset;
}

.ysb-card__media {
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #0d0f0c;
}

.ysb-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.ysb-card:hover .ysb-card__media img {
	transform: scale(1.035);
}

.ysb-card__level {
	position: absolute;
	top: 10px;
	left: 10px;
	padding: 4px 8px;
	background: rgba(8, 9, 8, 0.8);
	border: 1px solid rgba(194, 173, 127, 0.4);
	font-size: 8px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--ysb-gold-2);
}

.ysb-card--close .ysb-card__level {
	border-color: rgba(242, 240, 235, 0.2);
	color: rgba(242, 240, 235, 0.66);
}

.ysb-card__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 16px 16px 18px;
}

.ysb-card__name {
	margin: 0;
	font-family: var(--ysb-serif);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.35;
	letter-spacing: 0.01em;
}

.ysb-card__name a {
	color: var(--ysb-cream);
}

.ysb-card__name a:hover {
	color: var(--ysb-gold-2);
}

.ysb-card__price {
	margin: 0;
	font-size: 12px;
	letter-spacing: 0.12em;
	color: var(--ysb-gold-2);
}

.ysb-card__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ysb-card__chips li {
	padding: 3px 7px;
	border: 1px solid rgba(242, 240, 235, 0.1);
	font-size: 9px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(242, 240, 235, 0.64);
}

.ysb-card__chips li.is-unknown {
	border-style: dashed;
	color: rgba(194, 173, 127, 0.72);
}

.ysb-card__actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 4px;
	padding-top: 12px;
	border-top: 1px solid var(--ysb-line-soft);
}

.ysb-lock {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 12px;
	background: transparent;
	border: 1px solid var(--ysb-line);
	color: var(--ysb-gold-2);
	font-family: inherit;
	font-size: 9px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.ysb-lock:hover {
	background: rgba(194, 173, 127, 0.12);
}

.ysb-lock.is-locked {
	background: var(--ysb-gold);
	border-color: var(--ysb-gold);
	color: #241d0e;
}

.ysb-lock__check {
	display: inline-block;
	width: 9px;
	height: 9px;
	border: 1px solid currentColor;
	position: relative;
}

.ysb-lock.is-locked .ysb-lock__check::after {
	content: "";
	position: absolute;
	inset: 1px;
	background: currentColor;
}

.ysb-card__view {
	font-size: 9px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(165, 167, 156, 0.8);
}

.ysb-card__view:hover {
	color: var(--ysb-gold-2);
}

/* 相近 */

.ysb-close {
	margin-top: 46px;
}

.ysb-close__title,
.ysb-nomatch__title {
	margin: 0 0 6px;
	font-family: var(--ysb-serif);
	font-size: clamp(20px, 2.2vw, 27px);
	font-weight: 400;
	color: var(--ysb-cream);
}

.ysb-close__title span,
.ysb-nomatch__title span {
	margin-left: 8px;
	font-family: var(--ysb-zh);
	font-size: 11px;
	letter-spacing: 0.2em;
	color: var(--ysb-gold);
}

.ysb-close__sub {
	margin: 0 0 18px;
	font-size: 12px;
	color: var(--ysb-muted);
}

/* 无匹配 */

.ysb-nomatch {
	margin-top: 40px;
	padding: clamp(28px, 4vw, 46px);
	background:
		radial-gradient(600px 300px at 12% 0%, rgba(194, 173, 127, 0.09), transparent 65%),
		rgba(255, 255, 255, 0.018);
	border: 1px solid var(--ysb-line);
}

.ysb-nomatch__eyebrow {
	margin: 0 0 14px;
	font-size: 9px;
	font-weight: 600;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--ysb-gold);
}

.ysb-nomatch__title {
	font-size: clamp(24px, 3vw, 36px);
}

.ysb-nomatch__lede {
	max-width: 60ch;
	margin: 10px 0 26px;
	font-size: 13px;
	line-height: 1.75;
	color: var(--ysb-muted);
}

.ysb-options {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 14px;
}

.ysb-option {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	padding: 20px 20px 18px;
	background: rgba(8, 9, 8, 0.45);
	border: 1px solid rgba(242, 240, 235, 0.12);
	color: var(--ysb-cream);
	font-family: inherit;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.ysb-option:hover {
	border-color: var(--ysb-gold);
	background: rgba(194, 173, 127, 0.07);
	transform: translateY(-2px);
}

.ysb-option__icon {
	font-size: 17px;
	color: var(--ysb-gold);
	line-height: 1;
}

.ysb-option__title {
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.04em;
}

.ysb-option__desc {
	font-size: 11.5px;
	line-height: 1.65;
	color: var(--ysb-muted);
}

.ysb-option__badge {
	margin-top: 2px;
	font-size: 9px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ysb-gold);
}

/* ------------------------------------------------------------------ 锁定托盘 */

.ysb-tray {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 90;
	background: rgba(9, 10, 8, 0.94);
	border-top: 1px solid var(--ysb-line);
	backdrop-filter: blur(14px);
	box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.5);
}

.ysb-tray__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	width: 100%;
	max-width: 1320px;
	margin: 0 auto;
	padding: 12px 44px;
}

.ysb-tray__list {
	display: flex;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
}

.ysb-tray__list::-webkit-scrollbar {
	display: none;
}

.ysb-tray__item {
	position: relative;
	flex: 0 0 auto;
	width: 52px;
	height: 52px;
	border: 1px solid var(--ysb-line);
	background: #0d0f0c;
	overflow: hidden;
}

.ysb-tray__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ysb-tray__remove {
	position: absolute;
	top: 0;
	right: 0;
	width: 15px;
	height: 15px;
	padding: 0;
	background: rgba(8, 9, 8, 0.9);
	border: 0;
	color: var(--ysb-cream);
	font-size: 11px;
	line-height: 15px;
	cursor: pointer;
}

.ysb-tray__actions {
	display: flex;
	align-items: center;
	gap: 16px;
	flex: 0 0 auto;
}

.ysb-tray__count {
	font-size: 9.5px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--ysb-gold);
	white-space: nowrap;
}

/* 通用按钮 */

.ysb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 15px 26px;
	border: 1px solid var(--ysb-line);
	background: transparent;
	color: var(--ysb-cream);
	font-family: inherit;
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.ysb-btn--gold {
	background: linear-gradient(135deg, #e6c98d, #c9a75f);
	border-color: transparent;
	color: #241d0e;
}

.ysb-btn--gold:hover {
	filter: brightness(1.06);
}

.ysb-btn--ghost:hover {
	border-color: var(--ysb-gold);
	color: var(--ysb-gold-2);
}

.ysb-btn--sm {
	padding: 11px 18px;
	font-size: 9.5px;
}

.ysb-btn.is-loading {
	pointer-events: none;
	opacity: 0.65;
}

/* ------------------------------------------------------------------ 弹层 */

.ysb-modal {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: grid;
	place-items: center;
	padding: 24px;
}

.ysb-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(4, 5, 4, 0.78);
	backdrop-filter: blur(6px);
}

.ysb-modal__panel {
	position: relative;
	width: min(560px, 100%);
	max-height: min(86vh, 780px);
	overflow-y: auto;
	padding: 38px 38px 32px;
	background: linear-gradient(180deg, #121410, #0b0c0a);
	border: 1px solid var(--ysb-line);
	box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
}

.ysb-modal__x {
	position: absolute;
	top: 12px;
	right: 14px;
	width: 34px;
	height: 34px;
	background: transparent;
	border: 0;
	color: var(--ysb-muted);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.ysb-modal__x:hover {
	color: var(--ysb-cream);
}

.ysb-modal__eyebrow {
	margin: 0 0 10px;
	font-size: 9px;
	font-weight: 600;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--ysb-gold);
}

.ysb-modal__title {
	margin: 0 0 12px;
	font-family: var(--ysb-serif);
	font-size: 26px;
	font-weight: 400;
	line-height: 1.2;
}

.ysb-modal__lede {
	margin: 0 0 20px;
	font-size: 12.5px;
	line-height: 1.75;
	color: var(--ysb-muted);
}

.ysb-modal__summary {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
}

.ysb-modal__summary li {
	padding: 4px 8px;
	border: 1px solid rgba(194, 173, 127, 0.3);
	font-size: 9px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ysb-gold-2);
}

.ysb-modal__locked {
	display: flex;
	gap: 8px;
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
	flex-wrap: wrap;
}

.ysb-modal__locked img {
	width: 46px;
	height: 46px;
	object-fit: cover;
	border: 1px solid var(--ysb-line);
}

.ysb-fieldlabel {
	display: block;
	margin: 0 0 7px;
	font-size: 9px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: rgba(242, 240, 235, 0.72);
}

.ysb-input,
.ysb-textarea {
	display: block;
	width: 100%;
	margin: 0 0 16px;
	padding: 12px 14px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(242, 240, 235, 0.14);
	color: var(--ysb-cream);
	font-family: inherit;
	font-size: 13px;
	line-height: 1.6;
	border-radius: 0;
	-webkit-appearance: none;
	appearance: none;
}

.ysb-textarea {
	min-height: 92px;
	resize: vertical;
}

.ysb-input:focus,
.ysb-textarea:focus {
	outline: none;
	border-color: var(--ysb-gold);
	box-shadow: 0 0 0 1px rgba(194, 173, 127, 0.35);
}

.ysb-modal__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-top: 6px;
}

.ysb-modal__hint {
	font-size: 10.5px;
	line-height: 1.6;
	color: rgba(165, 167, 156, 0.7);
}

.ysb-modal__success {
	text-align: center;
	padding: 10px 0 4px;
}

.ysb-modal__success .ysb-modal__title {
	color: var(--ysb-gold-2);
}

.ysb-modal__ref {
	margin: 18px 0 0;
	font-size: 10px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: rgba(165, 167, 156, 0.6);
}

/* ------------------------------------------------------------------ toast */

.ysb-toast {
	position: fixed;
	left: 50%;
	bottom: 104px;
	z-index: 300;
	transform: translateX(-50%) translateY(12px);
	padding: 12px 20px;
	background: var(--ysb-gold);
	color: #241d0e;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	opacity: 0;
	transition: opacity 0.22s ease, transform 0.22s ease;
	pointer-events: none;
}

.ysb-toast.is-on {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

.ysb-noscript {
	padding: 30px 0;
	font-size: 13px;
	color: var(--ysb-muted);
}

/* ------------------------------------------------------------------ 空状态 */

.ysb-empty {
	padding: 34px 0;
	font-size: 12.5px;
	color: var(--ysb-muted);
}

/* ------------------------------------------------------------------ 响应式 */

@media (max-width: 1080px) {
	.ysb-stage__grid {
		grid-template-columns: 1fr;
	}

	.ysb-preview {
		position: static;
		order: -1;
	}

	.ysb-preview__frame {
		aspect-ratio: 4 / 3;
	}

	.ysb-hero {
		padding-top: clamp(64px, 9vh, 110px);
	}
}

@media (max-width: 640px) {
	.ysb {
		padding-bottom: 130px;
		font-size: 14px;
	}

	.ysb-wrap {
		padding: 0 18px;
	}

	.ysb-eyebrow {
		flex-wrap: wrap;
		gap: 8px 10px;
		font-size: 8.5px;
		letter-spacing: 0.22em;
	}

	.ysb-eyebrow i {
		width: 26px;
	}

	.ysb-title {
		max-width: none;
		font-size: clamp(32px, 10vw, 42px);
	}

	.ysb-lede {
		font-size: 13px;
	}

	.ysb-panel {
		padding: 22px 18px 18px;
	}

	.ysb-field {
		padding: 20px 0;
	}

	.ysb-value {
		font-size: 22px;
	}

	.ysb-swatches {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ysb-swatch {
		padding: 8px 9px;
		gap: 9px;
	}

	/* 手机端：颜色名允许换行，别被 ellipsis 截断 */
	.ysb-swatch__text strong {
		white-space: normal;
		overflow: visible;
		text-overflow: clip;
		font-size: 9.5px;
		letter-spacing: 0.02em;
		line-height: 1.2;
	}

	.ysb-swatch__text small {
		font-size: 9px;
		letter-spacing: 0.1em;
	}

	.ysb-swatch__dot {
		width: 24px;
		height: 24px;
	}

	.ysb-shapes {
		gap: 6px;
	}

	.ysb-shape {
		padding: 11px 4px 10px;
	}

	.ysb-shape__icon svg {
		width: 32px;
		height: 32px;
	}

	.ysb-preview__frame {
		aspect-ratio: 5 / 4;
	}

	.ysb-preview__params {
		max-width: calc(100% - 32px);
		bottom: auto;
		top: 54px;
	}

	.ysb-findbtn {
		right: 12px;
		bottom: 12px;
		padding: 12px 14px;
		gap: 10px;
	}

	.ysb-findbtn__text strong {
		font-size: 10px;
	}

	.ysb-preview__caption {
		text-align: left;
		font-size: 8.5px;
	}

	.ysb-results__head {
		flex-direction: column;
		align-items: flex-start;
	}

	.ysb-results__count {
		display: none;
	}

	.ysb-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.ysb-card__body {
		padding: 12px 12px 14px;
		gap: 8px;
	}

	.ysb-card__name {
		font-size: 13px;
	}

	.ysb-card__chips {
		display: none;
	}

	.ysb-card__actions {
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
	}

	.ysb-lock,
	.ysb-card__view {
		justify-content: center;
		text-align: center;
	}

	.ysb-tray__inner {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
		padding: 10px 18px 14px;
	}

	.ysb-tray__actions {
		justify-content: space-between;
	}

	.ysb-modal {
		padding: 0;
		align-items: end;
	}

	.ysb-modal__panel {
		width: 100%;
		max-height: 92vh;
		padding: 28px 20px calc(24px + env(safe-area-inset-bottom));
		border-left: 0;
		border-right: 0;
		border-bottom: 0;
	}

	.ysb-toast {
		bottom: 154px;
		left: 18px;
		right: 18px;
		transform: none;
		text-align: center;
	}

	.ysb-toast.is-on {
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ysb *,
	.ysb *::before,
	.ysb *::after {
		animation-duration: 0.001ms !important;
		transition-duration: 0.001ms !important;
	}
}
