/**
 * About section — layout matches yundayule.xyz (main.css)
 * Light theme colors aligned with xk-sport.com palette.
 * Uses px (not rem) because Milan theme sets html font-size to 80px.
 */

.yunda-about {
	--yunda-about-primary: var(--primary-color);
	--yunda-about-cyan: #3bb5c6;
	--yunda-about-intro-bg: var(--body-bg-color);
	--yunda-about-stage-bg: var(--body-bg-color);
	--yunda-about-panel: #fff;
	--yunda-about-panel-border: var(--border-theme-color);
	--yunda-about-btn-gradient: var(--button-bg);
	--yunda-about-text: var(--title-color);
	--yunda-about-text-muted: var(--desc-color);
}

.yunda-container {
	width: 100%;
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: 24px;
	box-sizing: border-box;
}

.yunda-about {
	padding: 0 0 80px;
	background: var(--yunda-about-stage-bg);
	overflow: hidden;
	font-size: 14px;
	line-height: 1.65;
	color: var(--yunda-about-text-muted);
}

.yunda-about__intro {
	max-width: none;
	width: 100%;
	padding: 80px 24px 32px;
	background: var(--yunda-about-intro-bg);
	box-sizing: border-box;
}

.yunda-about h2,
.yunda-about h3 {
	margin: 0;
	font-weight: 700;
	line-height: 1.2;
}

.yunda-about__header {
	text-align: center;
	margin-bottom: 40px;
}

.yunda-about__title-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
}

.yunda-about__title-deco {
	flex: 1;
	max-width: 140px;
	height: 10px;
	background-size: contain;
	background-repeat: no-repeat;
	filter: brightness(1.55) saturate(1.25) hue-rotate(-12deg);
	opacity: 0.9;
}

.yunda-about__title-deco--left {
	background-image: url("../images/faq-title-left.png");
	background-position: right center;
}

.yunda-about__title-deco--right {
	background-image: url("../images/faq-title-right.png");
	background-position: left center;
}

.yunda-about__title {
	font-size: clamp(24px, 3vw, 32px);
	font-weight: 700;
	line-height: 1.3;
	color: var(--section-title-color);
	background: none;
	-webkit-text-fill-color: currentColor;
}

.yunda-about__subtitle {
	margin: 12px 0 0;
	font-size: 14px;
	color: var(--desc-color);
}

.yunda-about__stage {
	position: relative;
	isolation: isolate;
	margin-top: 0;
	padding: 80px 0;
	background-color: transparent;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.yunda-about__stage::before {
	display: none;
}

.yunda-about__stage-inner {
	position: relative;
	z-index: 1;
	max-width: 1200px;
}

.yunda-about__panel {
	position: relative;
	min-height: 552px;
	margin: 0 auto;
	padding: 34px 22px 34px;
	border: 1px solid var(--yunda-about-panel-border);
	border-radius: 60px;
	background: var(--module-bg);
	box-shadow: var(--module-shadow);
	border: 3px solid #fff;
	box-sizing: border-box;
}

/* Desktop — nav column + content column (matches yundayule.xyz) */
@media (min-width: 1201px) {
	.yunda-about__panel {
		display: grid;
		grid-template-columns: 106px minmax(0, 465px) minmax(0, 1fr);
		align-items: start;
		column-gap: 24px;
	}

	.yunda-about__nav-wrap {
		position: relative;
		width: 106px;
		min-height: 300px;
		margin-left: -24px;
	}

	.yunda-about__nav {
		position: absolute;
		left: 0;
		top: 76px;
	}

	.yunda-about__content {
		max-width: none;
		width: 100%;
	}
}

.yunda-about__nav-wrap {
	position: relative;
	z-index: 2;
}

.yunda-about__nav {
	position: absolute;
	left: -24px;
	top: 110px;
	z-index: 2;
	list-style: none;
	margin: 0;
	padding: 0;
	background: transparent;
}

.yunda-about__nav li + li {
	margin-top: 36px;
}

.yunda-about__nav-btn {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	position: relative;
	width: 130px;
	height: 38px;
	padding: 8px 16px 8px 52px;
	border: none;
	border-radius: 40px;
	background: #fff;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
	color: #3f5075;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
	text-align: right;
}

.yunda-about__nav-btn:hover:not(.is-active) {
	color: var(--yunda-about-primary);
	box-shadow: 0 4px 14px rgba(43, 68, 176, 0.22);
}

.yunda-about__nav-btn.is-active {
	color: #fff;
	background: var(--yunda-about-btn-gradient);
	box-shadow: 0 4px 12px rgba(43, 68, 176, 0.32);
}

.yunda-about__nav-icon {
	position: absolute;
	top: -5px;
	left: 0;
	width: 48px;
	height: 48px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.yunda-about__content {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr;
	max-width: 465px;
	margin-top: 10px;
}

.yunda-about__pane {
	grid-area: 1 / 1;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(18px);
	transition:
		opacity 0.58s cubic-bezier(0.4, 0, 0.2, 1),
		transform 0.58s cubic-bezier(0.4, 0, 0.2, 1),
		visibility 0.58s;
	z-index: 0;
}

.yunda-about__pane.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
	z-index: 1;
}

.yunda-about__pane .yunda-about__pane-head {
	transform: translateX(-16px);
	transition: transform 0.62s cubic-bezier(0.4, 0, 0.2, 1) 0.08s;
}

.yunda-about__pane.is-active .yunda-about__pane-head {
	transform: translateX(0);
}

.yunda-about__pane .yunda-about__pane-body {
	transform: translateX(16px);
	transition: transform 0.62s cubic-bezier(0.4, 0, 0.2, 1) 0.14s;
}

.yunda-about__pane.is-active .yunda-about__pane-body {
	transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
	.yunda-about__pane,
	.yunda-about__pane .yunda-about__pane-head,
	.yunda-about__pane .yunda-about__pane-body,
	.yunda-about__figure {
		transition: none;
		animation: none;
	}

	.yunda-about__pane.is-active,
	.yunda-about__pane.is-active .yunda-about__pane-head,
	.yunda-about__pane.is-active .yunda-about__pane-body {
		opacity: 1;
		visibility: visible;
		transform: none;
	}
}

.yunda-about__pane-head {
	display: flex;
	align-items: flex-end;
	gap: 6px;
}

.yunda-about__pane-title {
	font-size: clamp(28px, 3vw, 40px);
	font-weight: 700;
	line-height: 1.1;
	color: var(--yunda-about-primary);
	background: linear-gradient(180deg, var(--yunda-about-cyan) 0%, var(--yunda-about-primary) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	transform: matrix(1, 0, -0.18, 0.98, 0, 0);
}

.yunda-about__pane-subtitle {
	margin: 0 0 2px;
	align-self: flex-end;
	font-size: 18px;
	font-weight: 400;
	font-style: italic;
	line-height: 1.2;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--primary-color);
	text-shadow: none;
	transform: matrix(1, 0, -0.22, 0.98, 0, 0);
}

.yunda-about__pane-body {
	max-height: 450px;
	margin-top: 8px;
	padding-right: 8px;
	overflow-y: auto;
}

.yunda-about__pane-body::-webkit-scrollbar {
	width: 4px;
}

.yunda-about__pane-body::-webkit-scrollbar-thumb {
	background: var(--yunda-about-primary);
	border-radius: 20px;
}

.yunda-about__pane-body p {
	margin: 17px 0 0;
	font-size: 14px;
	line-height: 1.65;
	color: var(--yunda-about-text-muted);
	text-align: justify;
}

.yunda-about__pane-body p:first-child {
	margin-top: 32px;
}

.yunda-about__figure {
	position: absolute;
	top: -5px;
	right: -120px;
	z-index: 0;
	width: min(610px, 52vw);
	height: auto;
	max-height: 595px;
	object-fit: contain;
	pointer-events: none;
	user-select: none;
	transform: translateX(0) scale(1);
}

.yunda-about__figure.is-animating {
	animation: yunda-about-figure-in 0.62s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes yunda-about-figure-in {
	from {
		opacity: 0.35;
		transform: translateX(24px) scale(0.96);
	}

	to {
		opacity: 1;
		transform: translateX(0) scale(1);
	}
}

@media (max-width: 1200px) {
	.yunda-about {
		padding: 0 0 64px;
		background: var(--yunda-about-stage-bg);
	}

	.yunda-about__intro {
		padding: 64px 16px 24px;
		background: var(--yunda-about-intro-bg);
	}

	.yunda-about__stage {
		position: relative;
		padding: 0 0 24px;
		margin-inline: 10px;
		background-image: none !important;
		background: transparent;
	}

	.yunda-about__stage::before {
		background: linear-gradient(180deg, rgba(43, 68, 176, 0.06) 0%, transparent 100%);
	}

	.yunda-about__header {
		margin-bottom: 0;
	}

	.yunda-about__title-deco {
		display: block;
		flex: initial;
		max-width: none;
		width: min(100px, 26.67vw);
		height: min(6px, 1.6vw);
	}

	.yunda-about__title-wrap {
		gap: min(6px, 1.6vw);
	}

	.yunda-about__title {
		font-size: clamp(18px, 5.33vw, 30px);
		line-height: 1.5;
	}

	.yunda-about__subtitle {
		font-size: clamp(12px, 3.2vw, 16px);
		line-height: 1.5;
		margin-top: min(6px, 1.07vw);
	}

	.yunda-about__stage-inner {
		max-width: none;
		width: 100%;
	}

	.yunda-about__panel {
		display: flex;
		flex-direction: column;
		min-height: 0;
		width: 100%;
		margin-top: 90px;
		padding: 270px 18px 18px;
		border-width: 1px;
		border-radius: 24px;
	}

	.yunda-about__figure {
		display: block;
		position: absolute;
		z-index: 1;
		top: -90px;
		left: 0;
		right: 0;
		width: 100%;
		max-width: none;
		height: 360px;
		transform: none;
		object-fit: contain;
	}

	.yunda-about__figure.is-animating {
		animation: yunda-about-figure-in-mobile 0.62s cubic-bezier(0.4, 0, 0.2, 1);
	}

	@keyframes yunda-about-figure-in-mobile {
		from {
			opacity: 0.35;
			transform: scale(0.96);
		}

		to {
			opacity: 1;
			transform: scale(1);
		}
	}

	.yunda-about__nav-wrap {
		position: relative;
		z-index: 2;
		width: 100%;
		flex-shrink: 0;
		margin-bottom: 8px;
	}

	.yunda-about__nav {
		position: relative;
		left: auto;
		right: auto;
		top: auto;
		z-index: 2;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 16px;
		padding: 0;
	}

	.yunda-about__nav li + li {
		margin-top: 0;
	}

	.yunda-about__nav-btn {
		width: 102px;
		min-width: 102px;
		height: 28px;
		padding: 0 12px 0 0;
		font-size: 12px;
		font-weight: 500;
	}

	.yunda-about__nav-icon {
		width: 32px;
		height: 32px;
		top: -2px;
		left: -2px;
	}

	.yunda-about__content {
		max-width: none;
		width: 100%;
		margin-top: 0;
		padding-top: 0;
	}

	.yunda-about__pane-title {
		font-size: 18px;
		transform: none;
	}

	.yunda-about__pane-subtitle {
		font-size: 12px;
		transform: none;
	}

	.yunda-about__pane-body {
		max-height: none;
		overflow: visible;
		padding-right: 0;
	}

	.yunda-about__pane-body p {
		font-size: 13px;
		line-height: 1.7;
		margin-top: 6px;
	}

	.yunda-about__pane-body p:first-child {
		margin-top: 16px;
	}
}

@media (max-width: 768px) {
	.yunda-about.yunda-section {
		padding: 64px 0;
	}

	.yunda-about__intro.yunda-container,
	.yunda-about__stage-inner.yunda-container {
		padding-inline: 16px;
	}

	.yunda-about__stage {
		margin-inline: 0;
	}

	.yunda-about__panel {
		margin-top: 72px;
		padding: 210px 14px 16px;
		border-radius: 20px;
	}

	.yunda-about__figure {
		top: -72px;
		height: 260px;
	}

	.yunda-about__nav-wrap {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		margin: 0 -6px;
		padding: 0 6px 4px;
	}

	.yunda-about__nav-wrap::-webkit-scrollbar {
		display: none;
	}

	.yunda-about__nav {
		justify-content: flex-start;
		width: max-content;
		min-width: 100%;
		gap: 10px;
	}

	.yunda-about__nav-btn {
		width: 96px;
		min-width: 96px;
	}
}
