/* YOJASO Links / Shop tabs */

.yjs-ls {
	--yjs-ls-max: 1280px;
	--yjs-ls-tab-track: #e5e5e5;
	--yjs-ls-tab-slider: #000;
	--yjs-ls-tab-color: #666;
	--yjs-ls-tab-active: #fff;
	--yjs-ls-title: #1f1f1f;
	--yjs-ls-text: #666;
	--yjs-ls-muted: #777;
	--yjs-ls-shop-bg: #f7f4ef;
	--yjs-ls-shop-fit: cover;
	--yjs-ls-btn-bg: #000;
	--yjs-ls-btn-color: #fff;
	--yjs-ls-row-gap: 100px;
	--yjs-ls-col-gap: 80px;
	width: 100%;
	max-width: var(--yjs-ls-max);
	margin: 0 auto;
	box-sizing: border-box;
}

.yjs-ls *,
.yjs-ls *::before,
.yjs-ls *::after {
	box-sizing: border-box;
}

.yjs-ls__tabs-wrap {
	display: flex;
	justify-content: center;
	margin-bottom: 34px;
}

.yjs-ls__tabs {
	position: relative;
	display: flex;
	align-items: center;
	width: 260px;
	height: 64px;
	background: var(--yjs-ls-tab-track);
	border-radius: 999px;
	padding: 4px;
}

.yjs-ls__marker {
	position: absolute;
	top: 4px;
	left: 4px;
	width: calc(50% - 4px);
	height: calc(100% - 8px);
	background: var(--yjs-ls-tab-slider);
	border-radius: 999px;
	transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
	z-index: 1;
	pointer-events: none;
}

.yjs-ls__tab {
	position: relative;
	z-index: 2;
	flex: 1;
	height: 100%;
	border: none;
	background: transparent;
	color: var(--yjs-ls-tab-color);
	font-size: 16px;
	font-weight: 700;
	text-align: center;
	cursor: pointer;
	padding: 0;
	margin: 0;
	outline: none;
	transition: color 0.3s ease;
	font-family: inherit;
}

.yjs-ls__tab.is-active {
	color: var(--yjs-ls-tab-active);
}

.yjs-ls__desc {
	text-align: center;
	margin: 0 0 24px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--yjs-ls-muted);
}

.yjs-ls__desc:empty {
	display: none;
}

.yjs-ls__panel {
	display: none;
	animation: yjs-ls-fade 0.35s ease;
}

.yjs-ls__panel.is-active {
	display: block;
}

@keyframes yjs-ls-fade {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Zigzag links */
.yjs-ls__zigzag {
	display: flex;
	flex-direction: column;
	gap: var(--yjs-ls-row-gap);
	padding: 20px 0 60px;
}

.yjs-ls__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-areas: "image text";
	gap: var(--yjs-ls-col-gap);
	align-items: center;
}

.yjs-ls__row--reverse {
	grid-template-areas: "text image";
}

.yjs-ls__col-image {
	grid-area: image;
}

.yjs-ls__col-text {
	grid-area: text;
	padding: 10px 0;
}

.yjs-ls__img-link {
	display: block;
	width: 100%;
	text-decoration: none;
	overflow: hidden;
	background: #f5f5f5;
}

.yjs-ls__img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease;
}

.yjs-ls__col-image:hover .yjs-ls__img {
	transform: scale(1.03);
}

.yjs-ls__title {
	margin: 0 0 20px;
	font-size: 28px;
	line-height: 1.3;
	font-weight: 700;
	color: var(--yjs-ls-title);
}

.yjs-ls__text {
	margin: 0 0 24px;
	font-size: 15px;
	line-height: 1.7;
	color: var(--yjs-ls-text);
}

.yjs-ls__label {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	color: var(--yjs-ls-title);
	text-transform: uppercase;
	letter-spacing: 1.5px;
	margin-right: 8px;
}

.yjs-ls__contact {
	margin: 12px 0 0;
	font-size: 15px;
	line-height: 1.7;
	color: var(--yjs-ls-text);
}

.yjs-ls__contact p {
	margin: 0 0 8px;
}

/* Shop */
.yjs-ls__shop-heading {
	text-align: center;
	margin-bottom: 32px;
}

.yjs-ls__shop-heading h2 {
	margin: 0 0 10px;
	font-size: 34px;
	line-height: 1.2;
	font-weight: 600;
	color: var(--yjs-ls-title);
}

.yjs-ls__shop-heading p {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: var(--yjs-ls-muted);
}

.yjs-ls__shop-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 34px 36px;
	align-items: start;
}

.yjs-ls__card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	background: var(--yjs-ls-shop-bg);
	border-radius: 28px;
	overflow: hidden;
	transition: transform 0.35s ease, box-shadow 0.35s ease;
	color: inherit;
}

.yjs-ls__card:hover {
	transform: translateY(-6px);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.yjs-ls__card-media {
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: var(--yjs-ls-shop-bg);
	display: flex;
	align-items: center;
	justify-content: center;
}

.yjs-ls__card-media img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: var(--yjs-ls-shop-fit, cover);
	object-position: center;
	max-width: none;
	transition: transform 0.45s ease;
}

.yjs-ls__card:hover .yjs-ls__card-media img {
	transform: scale(1.04);
}

/* 完整显示：按图片真实比例自适应，不强制固定容器 */
.yjs-ls--shop-fit-contain .yjs-ls__card-media {
	aspect-ratio: auto;
	height: auto;
	overflow: visible;
	display: block;
	background: transparent;
}

.yjs-ls--shop-fit-contain .yjs-ls__card-media img {
	width: 100%;
	height: auto;
	max-width: 100%;
	object-fit: contain;
	object-position: center;
}

.yjs-ls--shop-fit-contain .yjs-ls__card:hover .yjs-ls__card-media img {
	transform: none;
}

.yjs-ls__card-info {
	padding: 18px 20px 22px;
}

.yjs-ls__card-info h3 {
	margin: 0 0 8px;
	font-size: 20px;
	line-height: 1.35;
	font-weight: 600;
	color: var(--yjs-ls-title);
}

.yjs-ls__card-info p {
	margin: 0 0 16px;
	font-size: 14px;
	line-height: 1.6;
	color: #7a7a7a;
}

.yjs-ls__card-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 118px;
	height: 38px;
	padding: 0 18px;
	border-radius: 999px;
	background: var(--yjs-ls-btn-bg);
	color: var(--yjs-ls-btn-color);
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	transition: background 0.3s ease;
}

.yjs-ls__card:hover .yjs-ls__card-btn {
	background: #2b2b2b;
}

@media (max-width: 1024px) {
	.yjs-ls {
		--yjs-ls-row-gap: 70px;
		--yjs-ls-col-gap: 50px;
	}

	.yjs-ls__title {
		font-size: 24px;
		margin-bottom: 14px;
	}

	.yjs-ls__text {
		font-size: 14px;
		margin-bottom: 18px;
	}

	.yjs-ls__shop-heading {
		margin-bottom: 26px;
	}

	.yjs-ls__shop-heading h2 {
		font-size: 30px;
	}

	.yjs-ls__shop-heading p {
		font-size: 14px;
	}

	.yjs-ls__shop-grid {
		gap: 24px;
	}

	.yjs-ls__card-info {
		padding: 16px 16px 20px;
	}

	.yjs-ls__card-info h3 {
		font-size: 18px;
	}

	.yjs-ls__card-info p {
		font-size: 13px;
		margin-bottom: 14px;
	}

	.yjs-ls__card-btn {
		min-width: 108px;
		height: 36px;
		font-size: 12px;
	}
}

@media (max-width: 767px) {
	.yjs-ls {
		--yjs-ls-row-gap: 50px;
	}

	.yjs-ls__tabs {
		width: 220px;
		height: 56px;
	}

	.yjs-ls__tab {
		font-size: 14px;
	}

	.yjs-ls__row,
	.yjs-ls__row--reverse {
		grid-template-columns: 1fr;
		grid-template-areas: "image" "text";
		gap: 20px;
	}

	.yjs-ls__img {
		aspect-ratio: 4 / 3;
	}

	.yjs-ls__col-text {
		padding: 5px 0;
		text-align: center;
	}

	.yjs-ls__title {
		font-size: 20px;
		margin-bottom: 12px;
	}

	.yjs-ls__text,
	.yjs-ls__contact {
		font-size: 13px;
		margin-bottom: 14px;
	}

	.yjs-ls__shop-heading {
		margin-bottom: 22px;
	}

	.yjs-ls__shop-heading h2 {
		font-size: 24px;
	}

	.yjs-ls__shop-heading p {
		font-size: 13px;
		padding: 0 10px;
	}

	.yjs-ls__shop-grid {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
		align-items: start;
	}

	.yjs-ls__card {
		height: 300px;
		border-radius: 16px;
	}

	.yjs-ls__card-media {
		height: 170px;
		aspect-ratio: auto;
	}

	/* 完整显示：取消手机固定高度，跟图片比例走 */
	.yjs-ls--shop-fit-contain .yjs-ls__card {
		height: auto;
	}

	.yjs-ls--shop-fit-contain .yjs-ls__card-media {
		height: auto;
	}

	.yjs-ls--shop-fit-contain .yjs-ls__card-info {
		height: auto;
	}

	.yjs-ls__card-info {
		height: 136px;
		padding: 10px 10px 12px;
		display: flex;
		flex-direction: column;
	}

	.yjs-ls__card-info h3 {
		font-size: 13px;
		line-height: 1.25;
		margin: 0 0 5px;
		min-height: 32px;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}

	.yjs-ls__card-info p {
		font-size: 11px;
		line-height: 1.4;
		margin: 0 0 8px;
		min-height: 16px;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.yjs-ls__card-btn {
		width: 120px;
		height: 36px;
		min-width: 0;
		padding: 0 18px;
		font-size: 12px;
	}
}
