@charset "UTF-8";
/* ==========================================================================
   Find my fit — 兼容性选购器（首页 M03）

   深绿底、白色咨询卡。它替掉了原来的促销海报块，所以配色不跟促销走：
   底色是 --brand，卡片是半透明白，只有一个暖色用在图标和「升级方案」上。

   命名一律 .fit* / .fitcard* / .chipchip，避免和促销那块留下的 .banner /
   .finder（旧的紧凑选购器样式，仍留在 main.css 里）撞车。
   ========================================================================== */

.fit {
	--fit-bg: var(--brand);
	--fit-ink: #f2f6ec;
	--fit-muted: rgba(242, 246, 236, 0.72);
	--fit-line: rgba(242, 246, 236, 0.18);
	--fit-line-strong: rgba(242, 246, 236, 0.42);
	--fit-wash: rgba(255, 255, 255, 0.055);

	background: var(--fit-bg);
	color: var(--fit-ink);
	/* 与上下两个白底模块之间要留出明显的章节距离：这一块自己承担 112px，
	   比全站 96px 的常规节奏略大一档，深色块才不会贴着上一篇。 */
	padding-block: 112px;
}

.fit__wrap {
	display: flex;
	flex-direction: column;
	gap: 34px;
}

.fit__head {
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-width: 880px;
}

.fit__title {
	font-family: var(--font-display);
	font-size: clamp(30px, 3.2vw, 46px);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.02em;
	color: var(--fit-ink);
	max-width: 22ch;
	text-wrap: balance;
}

.fit__lede {
	font-size: var(--fs-18);
	line-height: 1.55;
	color: var(--fit-muted);
	max-width: 60ch;
	text-wrap: pretty;
}

/* ---- 六个用途 ---------------------------------------------------------- */

.fit__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.fitcard {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	min-height: 148px;
	padding: 22px 44px 22px 22px;
	border: 1px solid var(--fit-line);
	border-radius: 14px;
	background: var(--fit-wash);
	color: var(--fit-ink);
	text-decoration: none;
	transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease),
		transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.fitcard:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: var(--fit-line-strong);
	transform: translateY(-2px);
	box-shadow: 0 18px 34px -26px rgba(0, 0, 0, 0.9);
}

.fitcard:active {
	transform: translateY(0);
}

.fitcard:focus-visible {
	outline: 2px solid var(--brand-soft);
	outline-offset: 3px;
}

.fitcard.is-active {
	background: var(--brand-soft);
	border-color: var(--brand-soft);
	color: var(--brand);
}

.fitcard__icon {
	display: inline-grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	color: var(--brand-soft);
	transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}

.fitcard.is-active .fitcard__icon {
	background: rgba(21, 62, 53, 0.1);
	color: var(--brand);
}

.fitcard__svg {
	width: 19px;
	height: 19px;
}

.fitcard__label {
	font-size: var(--fs-18);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.005em;
}

.fitcard__note {
	font-size: var(--fs-13, 13px);
	line-height: 1.42;
	color: var(--fit-muted);
	text-wrap: pretty;
}

.fitcard.is-active .fitcard__note {
	color: rgba(21, 62, 53, 0.74);
}

.fitcard__go {
	position: absolute;
	top: 22px;
	right: 20px;
	font-size: 16px;
	line-height: 1;
	color: var(--fit-muted);
	transition: transform 0.18s var(--ease), color 0.18s var(--ease);
}

.fitcard:hover .fitcard__go,
.fitcard.is-active .fitcard__go {
	transform: translateX(3px);
	color: currentColor;
}

/* ---- 型号搜索 + 主按钮 ------------------------------------------------- */

.fit__search {
	display: flex;
	gap: 10px;
	align-items: stretch;
	max-width: 760px;
	margin-top: 2px;
}

.fit__input {
	flex: 1 1 auto;
	min-width: 0;
	height: 54px;
	padding: 0 18px;
	border: 1px solid var(--fit-line);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.07);
	color: var(--fit-ink);
	font-size: var(--fs-16);
	line-height: 1;
	transition: border-color 0.16s var(--ease), background-color 0.16s var(--ease);
}

.fit__input::placeholder {
	color: rgba(242, 246, 236, 0.55);
}

.fit__input:hover {
	border-color: var(--fit-line-strong);
}

.fit__input:focus-visible {
	outline: none;
	border-color: var(--brand-soft);
	background: rgba(255, 255, 255, 0.12);
	box-shadow: 0 0 0 3px rgba(220, 233, 207, 0.22);
}

.fit__cta {
	height: 54px;
	padding-inline: 30px;
	background: var(--fit-ink);
	border-color: var(--fit-ink);
	color: var(--brand);
	font-size: var(--fs-16);
	font-weight: 600;
	flex: none;
}

.fit__cta:hover {
	background: var(--brand-soft);
	border-color: var(--brand-soft);
	color: var(--brand);
}

.fit__cta:focus-visible {
	outline: 2px solid var(--brand-soft);
	outline-offset: 3px;
}

.fit__trust {
	font-size: var(--fs-14, 14px);
	line-height: 1.6;
	color: var(--fit-muted);
	max-width: 74ch;
	padding-left: 14px;
	border-left: 2px solid rgba(220, 233, 207, 0.42);
	text-wrap: pretty;
}

/* ---- 三步面板 ---------------------------------------------------------- */

.fit__panel {
	margin-top: 4px;
	background: #fff;
	color: var(--ink);
	border-radius: 16px;
	box-shadow: 0 40px 80px -60px rgba(0, 0, 0, 0.85);
	overflow: hidden;
	animation: fit-in 0.22s var(--ease);
}

.fit__panel[hidden] {
	display: none;
}

/* The sheet's backdrop. Desktop never shows it — there the panel opens as a
   card under the trust line — so it is styled here and only switched on by
   finder.js when the phone rules below apply. */
.fit__veil {
	position: fixed;
	inset: 0;
	z-index: 239;
	background: rgba(9, 17, 15, 0.46);
	opacity: 0;
	transition: opacity 0.28s var(--ease);
}

.fit__veil[hidden] {
	display: none;
}

.fit__veil.is-open {
	opacity: 1;
}

/* While a sheet is up the page behind it does not move. */
.fit-sheet,
.fit-sheet body {
	overflow: hidden;
}

@keyframes fit-in {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
}

.fit__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 22px;
	background: var(--brand-wash);
	border-bottom: 1px solid var(--hairline);
}

.fit__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	font-size: var(--fs-13, 13px);
	line-height: 1.3;
	color: var(--tip-muted);
}

.fit__step {
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--brand);
	font-size: 11px;
}

.fit__dot {
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.5;
}

.fit__for strong {
	color: var(--ink);
	font-weight: 600;
}

.fit__close {
	appearance: none;
	flex: none;
	display: inline-grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border: 1px solid transparent;
	border-radius: 50%;
	background: transparent;
	color: var(--tip-muted);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.16s var(--ease), color 0.16s var(--ease);
}

.fit__close:hover {
	background: rgba(21, 62, 53, 0.08);
	color: var(--ink);
}

.fit__close:focus-visible {
	outline: 2px solid var(--brand);
	outline-offset: 2px;
}

.fit__body {
	padding: 24px 22px 4px;
}

.fitstep[hidden] {
	display: none;
}

.fitstep__q {
	font-family: var(--font-display);
	font-size: var(--fs-20, 20px);
	font-weight: 600;
	line-height: 1.3;
	color: var(--ink);
	margin: 0 0 6px;
}

.fitstep__q + .fitstep__hint {
	margin-bottom: 14px;
}

.fitstep__hint {
	font-size: var(--fs-14, 14px);
	line-height: 1.55;
	color: var(--tip-muted);
	max-width: 70ch;
	margin: 0 0 18px;
	text-wrap: pretty;
}

.fitstep__hint:empty {
	display: none;
}

.fit__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
}

.chipchip {
	appearance: none;
	padding: 10px 16px;
	border: 1px solid var(--line-6);
	border-radius: 999px;
	background: #fff;
	font-size: var(--fs-15, 15px);
	font-weight: 500;
	line-height: 1;
	color: var(--ink-2);
	cursor: pointer;
	transition: background-color 0.16s var(--ease), color 0.16s var(--ease),
		border-color 0.16s var(--ease);
}

.chipchip:hover {
	border-color: var(--ink);
	color: var(--ink);
}

.chipchip.is-active {
	background: var(--brand);
	border-color: var(--brand);
	color: #fff;
}

.chipchip:focus-visible {
	outline: 2px solid var(--brand);
	outline-offset: 2px;
}

.fit__field {
	display: flex;
	flex-direction: column;
	gap: 7px;
	margin-bottom: 18px;
}

.fit__fieldlabel {
	font-size: var(--fs-13, 13px);
	line-height: 1.3;
	color: var(--tip-muted);
}

.fit__input--wide {
	background: #fff;
	border-color: var(--line-6);
	color: var(--ink);
	height: 48px;
}

.fit__input--wide::placeholder {
	color: var(--tip-muted);
}

.fit__input--wide:focus-visible {
	border-color: var(--brand);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(21, 62, 53, 0.12);
}

.fit__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 22px 22px;
}

.fit__nav[hidden] {
	display: none;
}

/* `.btn` 是 inline-flex，会盖掉 UA 的 `[hidden]`，所以这两个退回/继续按钮
   要显式收起来。 */
.fit__nav .btn[hidden] {
	display: none;
}

.fit__backs {
	min-height: 46px;
}

.fit__next {
	/* 第一步没有「返回」，靠 auto 把继续按钮留在右边；有返回时
	   space-between 已经在做同一件事，这条不影响。 */
	margin-left: auto;
	min-height: 46px;
	background: var(--brand);
	border-color: var(--brand);
	color: #fff;
}

.fit__next:hover {
	background: var(--brand-hover);
	border-color: var(--brand-hover);
	color: #fff;
}

/* ---- 结果卡 ------------------------------------------------------------ */

.fitresult {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.fitresult__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--brand);
}

.fitresult__eyebrow::before {
	content: "";
	width: 18px;
	height: 1px;
	background: currentColor;
}

.fitresult__grid {
	display: grid;
	grid-template-columns: 152px minmax(0, 1fr);
	gap: 22px;
	align-items: start;
}

.fitresult__media {
	display: block;
	aspect-ratio: 1;
	border-radius: 12px;
	background: var(--canvas);
	overflow: hidden;
}

.fitresult__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	mix-blend-mode: multiply;
}

.fitresult__name {
	font-family: var(--font-display);
	font-size: var(--fs-22, 22px);
	font-weight: 600;
	line-height: 1.28;
	color: var(--ink);
	margin: 0 0 8px;
	max-width: 46ch;
}

.fitresult__sku {
	font-size: 12px;
	line-height: 1.4;
	color: var(--tip-muted);
	margin: 0 0 12px;
}

.fitresult__price {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin: 0 0 14px;
}

.fitresult__now {
	font-size: var(--fs-24, 24px);
	font-weight: 700;
	color: var(--ink);
	letter-spacing: -0.01em;
}

.fitresult__was {
	font-size: var(--fs-15, 15px);
	color: var(--tip-muted);
}

.fitspecs {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0 20px;
	margin: 0 0 14px;
	padding: 0;
	list-style: none;
}

.fitspecs__cell {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 10px 0;
	border-top: 1px solid var(--hairline);
}

.fitspecs__k {
	font-size: 11px;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--tip-muted);
}

.fitspecs__v {
	font-size: var(--fs-15, 15px);
	line-height: 1.35;
	color: var(--ink);
}

.fitresult__why {
	font-size: var(--fs-15, 15px);
	line-height: 1.6;
	color: var(--body);
	margin: 0;
	max-width: 66ch;
	text-wrap: pretty;
}

.fitresult__why strong {
	color: var(--ink);
	font-weight: 600;
}

.fitresult__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 4px;
}

.fitresult__add {
	min-height: 48px;
	background: var(--brand);
	border-color: var(--brand);
	color: #fff;
}

.fitresult__add:hover {
	background: var(--brand-hover);
	border-color: var(--brand-hover);
	color: #fff;
}

.fitresult__add[disabled] {
	opacity: 0.5;
	cursor: not-allowed;
}

.fitresult__again {
	background: none;
	border: 0;
	padding: 8px 2px;
	font-size: var(--fs-15, 15px);
	color: var(--tip-muted);
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.fitresult__again:hover {
	color: var(--ink);
}

/* 升级方案：低日照 / 冬季那一条。暖色边框，只出现一行，不抢主卡。 */
.fitup {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	border: 1px solid rgba(213, 139, 56, 0.34);
	border-radius: 12px;
	background: rgba(213, 139, 56, 0.07);
}

.fitup__media {
	flex: none;
	width: 54px;
	height: 54px;
	border-radius: 8px;
	background: #fff;
	overflow: hidden;
}

.fitup__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.fitup__body {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.fitup__label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent-ink);
}

.fitup__title {
	font-size: var(--fs-15, 15px);
	line-height: 1.4;
	color: var(--ink);
	text-decoration: none;
}

.fitup__title:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.fitup__meta {
	font-size: var(--fs-13, 13px);
	line-height: 1.4;
	color: var(--tip-muted);
}

.fitresult__note {
	font-size: var(--fs-13, 13px);
	line-height: 1.5;
	color: var(--tip-muted);
	margin: 0;
}

/* ---- 窄屏 -------------------------------------------------------------- */

@media (max-width: 1024px) {
	.fit {
		padding-block: 88px;
	}

	.fit__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.fitcard {
		min-height: 132px;
		padding: 18px 38px 18px 18px;
	}
}

@media (max-width: 860px) {
	.fit__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.fitresult__grid {
		grid-template-columns: 120px minmax(0, 1fr);
		gap: 18px;
	}

	.fitspecs {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 620px) {
	.fit {
		padding-block: 64px;
	}

	.fit__wrap {
		gap: 26px;
	}

	.fit__title {
		font-size: 27px;
		max-width: none;
	}

	.fit__lede {
		font-size: var(--fs-16);
	}

	.fit__grid {
		gap: 10px;
	}

	.fitcard {
		min-height: 126px;
		padding: 16px 16px 16px;
		border-radius: 12px;
	}

	.fitcard__note {
		font-size: 12px;
	}

	.fitcard__go {
		display: none;
	}

	/* 输入框与 CTA 全宽、上下排：390px 上横排会把按钮压成两个字。 */
	.fit__search {
		flex-direction: column;
		gap: 10px;
		max-width: none;
	}

	.fit__input,
	.fit__cta {
		width: 100%;
		flex: none;
	}

	/* 350px 宽里 16px 的占位文字会被切在「Search」处，掉到 14px 刚好整句。 */
	.fit__input {
		font-size: var(--fs-14);
	}

	.fit__bar {
		padding: 14px 16px;
	}

	.fit__body {
		padding: 18px 16px 2px;
	}

	.fit__nav {
		padding: 12px 16px 18px;
	}

	.fitresult__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.fitresult__media {
		width: 100%;
		max-width: 180px;
	}

	.fitspecs {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.fitresult__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.fitresult__add,
	.fitresult__specs {
		width: 100%;
	}

	.fitresult__again {
		align-self: center;
	}

	.fitup {
		align-items: flex-start;
	}
}

/* ---- 手机：三步面板改成底部弹出 -----------------------------------------

   这一节离首屏两整屏。面板如果就地在 trust 文案下面展开，读者点完卡片看到的
   还是卡片本身，而且它会把下面整节再推高一次。860 以下一律是底部弹层：贴底、
   顶部圆角、只有内容区自己滚，背景压一层 veil；由下向上滑入由 CSS transition
   完成，JS 只负责加 / 去 `.is-open`。 */
@media (max-width: 860px) {
	.fit__panel {
		position: fixed;
		inset: auto 0 0;
		z-index: 240;
		margin: 0;
		max-height: 88svh;
		display: flex;
		flex-direction: column;
		border-radius: 18px 18px 0 0;
		box-shadow: 0 -28px 64px -34px rgba(0, 0, 0, 0.72);
		transform: translate3d(0, 100%, 0);
		/* The desktop entrance is a fade; a fixed sheet is translated instead
		   and the two would fight over `transform`. */
		animation: none;
		transition: transform 0.34s cubic-bezier(0.22, 0.8, 0.28, 1);
	}

	.fit__panel.is-open {
		transform: none;
	}

	/* The bar is the handle: grabber, step counter, close button. It stays
	   put while the steps scroll underneath it. */
	.fit__bar {
		position: relative;
		flex: none;
		padding-top: 22px;
		border-radius: 18px 18px 0 0;
		/* The bar is the handle: the pull-down-to-dismiss gesture in finder.js
		   owns the vertical drag here, so the browser must not scroll with it.
		   The steps below keep their own scrolling. */
		touch-action: none;
		cursor: grab;
	}

	.fit__bar::before {
		content: "";
		position: absolute;
		top: 8px;
		left: 50%;
		width: 40px;
		height: 4px;
		margin-left: -20px;
		border-radius: 999px;
		background: rgba(21, 62, 53, 0.16);
	}

	/* Only the steps scroll — the panel itself must not, or the bar would
	   leave the screen with them. */
	.fit__body {
		flex: 1 1 auto;
		min-height: 0;
		overflow-y: auto;
		overscroll-behavior: contain;
		-webkit-overflow-scrolling: touch;
	}

	.fit__nav {
		flex: none;
		padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
	}
}

@media (prefers-reduced-motion: reduce) {
	.fit__panel {
		transition: none;
	}

	.fit__veil {
		transition: none;
	}
}
