/* Luxegrrrl 首页样式 —— 全部限定在 .luxe-home 内，不影响商品页 */

.luxe-home {
	--lx-bg: #F7F3EC;
	--lx-card: #FFFFFF;
	--lx-ink: #27231F;
	--lx-ink-2: #625A52;
	--lx-btn: #6A402F;
	--lx-btn-hover: #513024;
	--lx-line: #DDD4C8;
	--lx-tint: #EDE6DC;

	--lx-max: 1200px;
	--lx-pad: 20px;
	--lx-gap-y: 40px;

	background: var(--lx-bg);
	color: var(--lx-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

.luxe-home * { box-sizing: border-box; }
.luxe-home img { max-width: 100%; height: auto; display: block; }
.luxe-home p { margin: 0 0 1em; }

/* ---------- 版心与标题 ---------- */

.lx-wrap { max-width: var(--lx-max); margin: 0 auto; padding: 0 var(--lx-pad); }
.lx-wrap-narrow { max-width: 780px; }

.lx-h1 {
	font-size: 36px;
	line-height: 1.08;
	font-weight: 600;
	letter-spacing: -0.02em;
	margin: 0 0 16px;
}
.lx-h2 {
	font-size: 28px;
	line-height: 1.2;
	font-weight: 600;
	letter-spacing: -0.015em;
	margin: 0 0 12px;
}
.lx-lede { font-size: 17px; color: var(--lx-ink-2); max-width: 30em; margin: 0 0 24px; }
.lx-sub { font-size: 16px; color: var(--lx-ink-2); max-width: 42em; margin: 0 0 28px; }
.lx-note { font-size: 14px; color: var(--lx-ink-2); margin: 14px 0 0; line-height: 1.5; }
.lx-price-line {
	font-size: 15px;
	font-weight: 600;
	margin: 20px 0 14px;
	padding-top: 16px;
	border-top: 1px solid var(--lx-line);
}

/* ---------- 按钮 ---------- */

.lx-btn {
	display: inline-block;
	min-height: 48px;
	padding: 13px 24px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.lx-btn-primary { background: var(--lx-btn); color: #fff; border: 1px solid var(--lx-btn); }
.lx-btn-primary:hover, .lx-btn-primary:focus { background: var(--lx-btn-hover); border-color: var(--lx-btn-hover); color: #fff; }
.lx-btn-ghost { background: transparent; color: var(--lx-ink); border: 1px solid var(--lx-line); }
.lx-btn-ghost:hover, .lx-btn-ghost:focus { border-color: var(--lx-ink); color: var(--lx-ink); }
.lx-btn-lg { min-height: 54px; padding: 16px 34px; font-size: 16px; }
.lx-btn-hero { width: 100%; }

/* ---------- Hero ---------- */

.lx-hero { padding: 32px 0 44px; }
.lx-hero-inner {
	max-width: var(--lx-max);
	margin: 0 auto;
	padding: 0 var(--lx-pad);
	display: grid;
	grid-template-columns: 44% 56%;
	gap: 32px;
	align-items: center;
}
.lx-hero-pic img { width: 100%; max-height: 620px; object-fit: cover; border-radius: 12px; }
.lx-hero-pic-desktop { display: block; }
.lx-hero-pic-mobile { display: none; }

/* ---------- 区块 ---------- */

.lx-section { padding: var(--lx-gap-y) 0; }
.lx-steps, .lx-faq { background: var(--lx-tint); }
.lx-closer { background: var(--lx-btn); color: #fff; }
.lx-closer .lx-sub { color: rgba(255,255,255,.82); }
.lx-closer .lx-note { color: rgba(255,255,255,.75); }
.lx-closer .lx-btn-primary { background: #fff; color: var(--lx-btn); border-color: #fff; }
.lx-closer .lx-btn-primary:hover { background: #F1EAE0; border-color: #F1EAE0; color: var(--lx-btn-hover); }
.lx-closer-inner { text-align: center; }
.lx-closer-inner .lx-sub { margin-left: auto; margin-right: auto; }

/* ---------- 示例区（两态切换） ---------- */

.lx-sample-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; }
.lx-sample-figures { position: relative; }
.lx-fig { margin: 0; }
.lx-fig img { width: 100%; border-radius: 12px; border: 1px solid var(--lx-line); }
.lx-fig-b { display: none; }
.lx-toggle { display: inline-flex; gap: 6px; padding: 4px; background: var(--lx-card); border: 1px solid var(--lx-line); border-radius: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.lx-toggle-btn {
	appearance: none;
	border: 0;
	background: transparent;
	color: var(--lx-ink-2);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	padding: 9px 16px;
	border-radius: 7px;
	cursor: pointer;
	min-height: 44px;
}
.lx-toggle-btn.is-on { background: var(--lx-btn); color: #fff; }
.lx-toggle-btn:focus-visible { outline: 2px solid var(--lx-btn); outline-offset: 2px; }

/* ---------- 三步 ---------- */

.lx-step-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.lx-step { background: var(--lx-card); border: 1px solid var(--lx-line); border-radius: 12px; padding: 22px 20px; }
.lx-step-n {
	display: inline-flex; align-items: center; justify-content: center;
	width: 30px; height: 30px; border-radius: 50%;
	background: var(--lx-btn); color: #fff; font-size: 14px; font-weight: 700;
	margin-bottom: 12px;
}
.lx-step-t { font-size: 18px; line-height: 1.25; font-weight: 600; margin: 0 0 6px; }
.lx-step-d { font-size: 15px; color: var(--lx-ink-2); margin: 0; }

/* ---------- 商品卡 ---------- */

.lx-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.lx-grid-2 { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin-left: auto; margin-right: auto; }
.lx-card {
	display: flex; flex-direction: column;
	background: var(--lx-card);
	border: 1px solid var(--lx-line);
	border-radius: 12px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: transform .18s ease, box-shadow .18s ease;
}
.lx-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(39,35,31,.08); color: inherit; }
.lx-card:focus-visible { outline: 2px solid var(--lx-btn); outline-offset: 2px; }
.lx-card-media { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--lx-tint); }
.lx-card-media img { width: 100%; height: 100%; object-fit: cover; }
.lx-tag {
	position: absolute; top: 10px; left: 10px;
	background: var(--lx-btn); color: #fff;
	font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
	padding: 4px 8px; border-radius: 4px;
}
.lx-card-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 16px 18px; flex: 1; }
.lx-card-title { font-size: 16px; line-height: 1.35; font-weight: 600; }
.lx-card-blurb { font-size: 14px; color: var(--lx-ink-2); }
.lx-card-price { font-size: 14px; font-weight: 600; }
.lx-card-price del { color: var(--lx-ink-2); font-weight: 400; }
.lx-card-price ins { text-decoration: none; }
.lx-card-cta { font-size: 14px; font-weight: 600; color: var(--lx-btn); margin-top: auto; }

/* ---------- 材质区 ---------- */

.lx-craft-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.lx-craft-media img { width: 100%; border-radius: 12px; aspect-ratio: 4 / 3; object-fit: cover; }
.lx-list { list-style: none; margin: 0 0 20px; padding: 0; }
.lx-list li { position: relative; padding-left: 26px; margin-bottom: 10px; }
.lx-list li::before {
	content: ""; position: absolute; left: 0; top: .62em;
	width: 10px; height: 10px; border-radius: 50%; background: var(--lx-btn);
}

/* ---------- FAQ ---------- */

.lx-faq-item { border-bottom: 1px solid var(--lx-line); }
.lx-faq-q {
	list-style: none; cursor: pointer;
	padding: 16px 32px 16px 0; position: relative;
	font-size: 16px; font-weight: 600; min-height: 44px;
}
.lx-faq-q::-webkit-details-marker { display: none; }
.lx-faq-q::after {
	content: ""; position: absolute; right: 6px; top: 50%;
	width: 9px; height: 9px; margin-top: -6px;
	border-right: 2px solid var(--lx-ink); border-bottom: 2px solid var(--lx-ink);
	transform: rotate(45deg);
}
.lx-faq-item[open] .lx-faq-q::after { transform: rotate(-135deg); margin-top: -2px; }
.lx-faq-a { padding-bottom: 16px; color: var(--lx-ink-2); font-size: 15px; }

/* ---------- 移动端固定 CTA ---------- */

.lx-sticky {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
	display: none;
	background: var(--lx-btn); color: #fff;
	text-align: center; text-decoration: none;
	font-size: 16px; font-weight: 600;
	padding: 18px 20px calc(18px + env(safe-area-inset-bottom));
	box-shadow: 0 -2px 14px rgba(39,35,31,.14);
}
.lx-sticky[hidden] { display: none; }

/* ---------- 响应式 ---------- */

@media (max-width: 1023px) {
	.lx-hero-inner { grid-template-columns: 1fr; gap: 24px; }
	.lx-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.lx-step-list { grid-template-columns: 1fr; gap: 12px; }
	.lx-sample-grid { grid-template-columns: 1fr; }
	.lx-craft-inner { grid-template-columns: 1fr; }
	.lx-grid-2 { max-width: none; }
}

@media (max-width: 767px) {
	.luxe-home { --lx-gap-y: 40px; }
	.lx-h1 { font-size: 36px; }
	.lx-h2 { font-size: 28px; }
	.lx-hero { padding: 20px 0 32px; }
	.lx-hero-copy { order: 1; }
	.lx-hero-visual { order: 2; }
	.lx-hero-pic-desktop { display: none; }
	.lx-hero-pic-mobile { display: block; }
	.lx-btn-hero { width: 100%; }
	.lx-sticky { display: block; }
	.luxe-home { padding-bottom: 76px; }
}

@media (prefers-reduced-motion: reduce) {
	.luxe-home *, .luxe-home *::before, .luxe-home *::after {
		animation-duration: .01ms !important;
		transition-duration: .01ms !important;
	}
}

/* ---------- 页面外壳（接管模板后由本插件输出） ---------- */

.luxe-home-body {
	margin: 0;
	background: #F7F3EC;
	color: #27231F;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}

.lx-skip {
	position: absolute; left: -9999px; top: 0;
	background: #27231F; color: #fff; padding: 10px 16px; z-index: 999;
	border-radius: 0 0 8px 0;
}
.lx-skip:focus { left: 0; }

.lx-header {
	position: sticky; top: 0; z-index: 80;
	background: rgba(247,243,236,.96);
	backdrop-filter: saturate(160%) blur(8px);
	border-bottom: 1px solid #DDD4C8;
}
.lx-header-inner {
	max-width: 1200px; margin: 0 auto; padding: 0 20px;
	height: 56px; display: flex; align-items: center; gap: 20px;
}
.lx-wordmark {
	font-size: 17px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
	color: #27231F; text-decoration: none; white-space: nowrap;
}
.lx-wordmark-sm { font-size: 15px; }
.lx-nav { display: flex; gap: 20px; margin-left: auto; }
.lx-nav a, .lx-tool {
	color: #625A52; text-decoration: none; font-size: 14px; font-weight: 600;
	padding: 8px 0; display: inline-flex; align-items: center; gap: 6px;
	min-height: 44px;
}
.lx-nav a:hover, .lx-tool:hover { color: #27231F; }
.lx-header-tools { display: flex; gap: 16px; align-items: center; margin-left: auto; }
.lx-nav + .lx-header-tools { margin-left: 16px; }
.lx-cart-count {
	background: #6A402F; color: #fff; font-size: 11px; font-weight: 700;
	min-width: 18px; height: 18px; border-radius: 9px;
	display: inline-flex; align-items: center; justify-content: center; padding: 0 5px;
}

.lx-main { display: block; }

.lx-footer { background: #EDE6DC; border-top: 1px solid #DDD4C8; padding: 40px 0; margin-top: 0; }
.lx-footer-inner {
	max-width: 1200px; margin: 0 auto; padding: 0 20px;
	display: flex; gap: 32px; flex-wrap: wrap; align-items: flex-start;
}
.lx-footer-brand p { font-size: 14px; color: #625A52; margin: 8px 0 0; max-width: 26em; }
.lx-footer-links { display: flex; gap: 18px; flex-wrap: wrap; margin-left: auto; }
.lx-footer-links a { color: #625A52; text-decoration: none; font-size: 14px; padding: 8px 0; min-height: 44px; display: inline-flex; align-items: center; }
.lx-footer-links a:hover { color: #27231F; }

@media (max-width: 767px) {
	.lx-header-inner { height: 54px; gap: 12px; }
	.lx-nav { display: none; }
	.lx-header-tools { margin-left: auto; }
	.lx-footer-inner { flex-direction: column; gap: 20px; }
	.lx-footer-links { margin-left: 0; gap: 14px; }
}
