/* =========================================================================
 * Nicemu 首页 v0.15.0 — 2026-10-11 首页改版设计稿 v2.0
 *
 * 只改外观与版式：数据、文字、链接与 v0.14 相同。只在首页加载（inc/home-v2.php），
 * 并排在所有主题样式之后加载。
 *
 * 设计规范：
 *   主色 #96603a（按钮/链接/徽章/强调，全站只用这一个）
 *   正文黑 #1a1a1a · 次要 #666 · 弱 #999 · 边框 #e8e8e8
 *   页面底色 #f7f5f0 · 交替底色 #f4ead3 · 页脚 #1a1a1a
 *   容器 1280px（左右 24px）· 版块上下 56px · 卡片间距 24px
 *   H1 48/800 · 版块标题 34/800 · 卡片标题 15–18
 *   圆角：卡片 12 · 按钮 8 · 搜索框/胶囊/徽章 999
 *   图片：商品 4:3 · 品牌 logo 1:1 · 合集封面 16:10 · 笔记缩略图 16:10
 * ====================================================================== */

.nicemu-site.home {
	--nmh-accent: #96603a;
	--nmh-accent-dark: #7c4e2f;
	--nmh-ink: #1a1a1a;
	--nmh-muted: #666;
	--nmh-weak: #999;
	--nmh-line: #e8e8e8;
	--nmh-base: #f7f5f0;
	--nmh-tint: #f4ead3;
	--nmh-logo-bg: #d9cfba;
	--nmh-logo-ink: #8a7c64;
	--nmh-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	--nmh-shell: min(1232px, calc(100% - 48px));
	--nmh-gap: 24px;
	background: var(--nmh-base);
	color: var(--nmh-ink);
	font-family: var(--nmh-font);
}
.nicemu-site.home #page,
.nicemu-site.home .site-content { background: var(--nmh-base); }

/* ---------------------------------------------------------------- 页头（样式在 site-chrome.css，首页只加吸顶） */
.nicemu-site.home .site-header { position: sticky; top: 0; inset: auto; z-index: 50; }
.nicemu-site.home.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .nicemu-site.home.admin-bar .site-header { top: 0; } }

/* ---------------------------------------------------------------- 基础 */
.nicemu-site.home .nmh { font-family: var(--nmh-font); color: var(--nmh-ink); background: var(--nmh-base); line-height: 1.5; -webkit-font-smoothing: antialiased; }
.nicemu-site.home .nmh h1,
.nicemu-site.home .nmh h2,
.nicemu-site.home .nmh h3 { font-family: var(--nmh-font); color: var(--nmh-ink); font-weight: 800; letter-spacing: -.5px; }
.nicemu-site.home .nmh .nicemu-shell { width: var(--nmh-shell); max-width: none; margin-inline: auto; }
.nicemu-site.home .nmh a { text-decoration: none; }
.nicemu-site.home .nmh :focus-visible { outline: 2px solid var(--nmh-accent); outline-offset: 3px; }

/* 版块：底色交替，上下 56px */
.nicemu-site.home .nmh-block { padding: 56px 0; background: var(--nmh-base); scroll-margin-top: 64px; }
.nicemu-site.home .nmh-block.is-tint { background: var(--nmh-tint); }
.nicemu-site.home .nmh-block + .nmh-block { border-top: 1px solid #f0f0f0; }
.nicemu-site.home .nmh-block.is-tint + .nmh-block,
.nicemu-site.home .nmh-block + .nmh-block.is-tint { border-top: 0; }

/* 版头：眉题 + 大标题 + 右上「查看全部」 */
.nicemu-site.home .nmh .nicemu-section-heading { margin: 0 0 28px; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.nicemu-site.home .nmh .nicemu-kicker { margin: 0 0 12px; color: var(--nmh-weak); font: 400 12px/1.4 var(--nmh-font); letter-spacing: 3px; text-transform: uppercase; }
.nicemu-site.home .nmh .nicemu-section-heading h2 { margin: 0; font-size: 34px; font-weight: 800; line-height: 1.2; letter-spacing: -.5px; }
.nicemu-site.home .nmh .nicemu-text-link { flex: 0 0 auto; padding: 6px 0 0; border: 0; color: var(--nmh-accent); font: 400 14px/1.4 var(--nmh-font); letter-spacing: 0; white-space: nowrap; }
.nicemu-site.home .nmh .nicemu-text-link span { margin-left: 2px; }
.nicemu-site.home .nmh .nicemu-text-link:hover { color: var(--nmh-accent-dark); text-decoration: underline; text-underline-offset: 3px; }

/* 分组胶囊（EDITOR'S PICK / NEW & TRENDING） */
.nicemu-site.home .nmh-group-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 24px; }
.nicemu-site.home .nmh .nicemu-section-heading .nmh-group-head { margin: 0; }
.nicemu-site.home .nmh-group-head b { display: inline-block; padding: 6px 16px; border-radius: 999px; background: var(--nmh-accent); color: #fff; font: 700 11px/1.3 var(--nmh-font); letter-spacing: 1.5px; }
.nicemu-site.home .nmh-group-head span { color: #777; font-size: 15px; }
.nicemu-site.home .nmh .nmh-head-compact { align-items: center; }
.nicemu-site.home .nmh .nmh-head-compact .nicemu-text-link { padding-top: 0; }

/* ---------------------------------------------------------------- HERO */
.nicemu-site.home .nmh-hero { position: relative; height: clamp(400px, 52vw, 800px); /* v0.15.2 客户要求再加高：电脑最高 800px（原 678px） */ overflow: hidden; background: #1a1a1a; color: #fff; }
.nicemu-site.home .nmh-hero-slides { position: absolute; inset: 0; }
.nicemu-site.home .nmh-hero-slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity 1.2s ease, visibility 1.2s ease; }
.nicemu-site.home .nmh-hero-slide.is-active { opacity: 1; visibility: visible; }
.nicemu-site.home .nmh-hero-slide img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.nicemu-site.home .nmh-hero-scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to right, rgba(24, 18, 12, .72) 0%, rgba(24, 18, 12, .45) 45%, rgba(24, 18, 12, .15) 100%); pointer-events: none; }
.nicemu-site.home .nmh-hero-overlay { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; pointer-events: none; }
.nicemu-site.home .nmh-hero-overlay .nicemu-shell { pointer-events: auto; }
.nicemu-site.home .nmh .nmh-eyebrow { margin: 0 0 16px; color: #d8c9a8; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; }
.nicemu-site.home .nmh .nmh-hero h1 { max-width: 900px; margin: 0 0 16px; color: #fff; font-size: 48px; font-weight: 800; line-height: 1.15; letter-spacing: -1px; }
.nicemu-site.home .nmh .nmh-hero h1 em { color: #e8a34c; font-style: italic; font-weight: 800; }
.nicemu-site.home .nmh .nmh-hero-sub { max-width: 640px; margin: 0; color: #e8e0d0; font-size: 18px; line-height: 1.5; }
.nicemu-site.home .nmh-hero-dots { position: absolute; left: 50%; bottom: 24px; z-index: 3; display: flex; gap: 0; transform: translateX(-50%); }
.nicemu-site.home .nmh-hero-dots button { width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.nicemu-site.home .nmh-hero-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .4); transition: background .2s; }
.nicemu-site.home .nmh-hero-dots button[aria-current="true"]::before,
.nicemu-site.home .nmh-hero-dots button:hover::before { background: #fff; }

/* ---------------------------------------------------------------- 搜索条 + 三条说明 */
.nicemu-site.home .nmh-search-strip { padding: 40px 0 12px; background: var(--nmh-base); }
.nicemu-site.home .nmh-search-flex { display: flex; align-items: center; justify-content: flex-start; gap: 64px; }
.nicemu-site.home .nmh-search-card { flex: 0 1 620px; min-width: 0; }
.nicemu-site.home .nmh-searchbar { display: flex; max-width: 560px; overflow: hidden; border: 1px solid #ddd; border-radius: 999px; background: #fff; }
.nicemu-site.home .nmh-searchbar:focus-within { border-color: var(--nmh-ink); }
.nicemu-site.home .nmh .nmh-searchbar input[type="search"] { flex: 1; min-width: 0; height: auto; margin: 0; padding: 14px 22px; border: 0; border-radius: 0; background: transparent; color: var(--nmh-ink); font: 400 15px/1.4 var(--nmh-font); box-shadow: none; outline: none; -webkit-appearance: none; appearance: none; }
.nicemu-site.home .nmh .nmh-searchbar input::placeholder { color: #999; }
.nicemu-site.home .nmh .nmh-searchbar button { flex: 0 0 auto; min-height: 0; margin: 0; padding: 0 28px; border: 0; border-radius: 0; background: var(--nmh-ink); color: #fff; font: 400 15px/1 var(--nmh-font); cursor: pointer; transition: background .2s; }
.nicemu-site.home .nmh .nmh-searchbar button:hover { background: var(--nmh-accent); }
.nicemu-site.home .nmh-pills { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.nicemu-site.home .nmh-pills a { display: inline-block; padding: 6px 16px; border: 1px solid #ddd; border-radius: 999px; background: #fff; color: #555; font-size: 13px; transition: border-color .2s, color .2s; }
.nicemu-site.home .nmh-pills a:hover { border-color: var(--nmh-accent); color: var(--nmh-accent); }
.nicemu-site.home .nmh-trust { flex: 0 0 500px; display: flex; flex-direction: column; gap: 20px; }
.nicemu-site.home .nmh-trust-item { display: flex; align-items: baseline; gap: 24px; white-space: nowrap; }
.nicemu-site.home .nmh-trust-item span { color: var(--nmh-accent); font-size: 14px; font-weight: 700; }
.nicemu-site.home .nmh-trust-item b { color: var(--nmh-ink); font-size: 14px; font-weight: 700; }
.nicemu-site.home .nmh .nmh-trust-item p { margin: 0; color: var(--nmh-muted); font-size: 13px; }
.nicemu-site.home .nmh-share-wrap { padding-top: 24px; background: var(--nmh-base); }

/* ---------------------------------------------------------------- 网格 / 横滑 */
.nicemu-site.home .nmh-rail { position: relative; }
.nicemu-site.home .nmh .nmh-track,
.nicemu-site.home .nmh .nmh-grid-4 {
	display: grid;
	grid-auto-flow: row;
	grid-template-columns: repeat(var(--nmh-cols, 4), minmax(0, 1fr));
	grid-template-rows: none;
	gap: var(--nmh-gap);
	margin: 0;
	padding: 0;
	overflow: visible;
	border: 0;
}
.nicemu-site.home .nmh .nmh-track > * { min-width: 0; }
/* 放不下一屏 → 横滑（N = 列 × 行 + 1） */
.nicemu-site.home .nmh-products .nmh-track:has(> :nth-child(5)),
.nicemu-site.home .nmh-china .nmh-track:has(> :nth-child(5)),
.nicemu-site.home .nmh-collections .nmh-track:has(> :nth-child(5)),
.nicemu-site.home .nmh-brands .nmh-track:has(> :nth-child(9)),
.nicemu-site.home .nmh-notes .nmh-track:has(> :nth-child(9)) {
	grid-auto-flow: column;
	grid-template-columns: none;
	grid-template-rows: repeat(var(--nmh-rows, 1), auto);
	grid-auto-columns: calc((100% - (var(--nmh-cols, 4) - 1) * var(--nmh-gap)) / var(--nmh-cols, 4));
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	padding-bottom: 2px;
	cursor: grab;
}
.nicemu-site.home .nmh .nmh-track::-webkit-scrollbar { display: none; }
.nicemu-site.home .nmh .nmh-track > * { scroll-snap-align: start; }
.nicemu-site.home .nmh .nmh-track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.nicemu-site.home .nmh .nmh-track.is-dragging > * { pointer-events: none; }
.nicemu-site.home .nmh-brands .nmh-track,
.nicemu-site.home .nmh-notes .nmh-track { --nmh-rows: 2; }

/* 两侧箭头：能滑的时候才有，鼠标移上去浮现 */
.nicemu-site.home .nmh .nmh-rail-btn {
	position: absolute;
	top: 50%;
	z-index: 4;
	width: 44px;
	height: 44px;
	min-height: 0;
	padding: 0;
	display: none;
	place-items: center;
	border: 1px solid var(--nmh-line);
	border-radius: 50%;
	background: #fff;
	color: var(--nmh-ink);
	font: 600 17px/1 var(--nmh-font);
	box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
	opacity: 0;
	transform: translateY(-50%);
	transition: opacity .2s ease, border-color .2s ease, color .2s ease;
	cursor: pointer;
}
.nicemu-site.home .nmh .nmh-rail-btn.is-prev { left: -22px; }
.nicemu-site.home .nmh .nmh-rail-btn.is-next { right: -22px; }
.nicemu-site.home .nmh .nmh-rail.can-scroll .nmh-rail-btn { display: grid; }
.nicemu-site.home .nmh .nmh-rail.can-scroll:hover .nmh-rail-btn,
.nicemu-site.home .nmh .nmh-rail.can-scroll:focus-within .nmh-rail-btn { opacity: 1; }
.nicemu-site.home .nmh .nmh-rail-btn:hover:not(:disabled) { border-color: var(--nmh-accent); color: var(--nmh-accent); }
.nicemu-site.home .nmh .nmh-rail-btn:disabled { opacity: 0 !important; pointer-events: none; }

/* ---------------------------------------------------------------- 商品卡 */
.nicemu-site.home .nmh .nicemu-product-card {
	position: relative;
	min-width: 0;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--nmh-line);
	border-radius: 12px;
	background: #fff;
	box-shadow: none;
	transition: box-shadow .2s;
}
.nicemu-site.home .nmh .nicemu-product-card:hover { box-shadow: 0 6px 24px rgba(0, 0, 0, .08); transform: none; }
.nicemu-site.home .nmh .nicemu-card-media { position: relative; display: block; height: auto; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border: 0; border-radius: 0; background: #ede6d6; }
.nicemu-site.home .nmh .nicemu-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: none; transition: transform .45s ease; }
.nicemu-site.home .nmh .nicemu-product-card:hover .nicemu-card-media img { transform: scale(1.03); }
.nicemu-site.home .nmh .nicemu-image-fallback { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(135deg, #d9c9a4, #bb9c68); }
.nicemu-site.home .nmh .nicemu-image-fallback::after,
.nicemu-site.home .nmh .nicemu-image-fallback i { display: none; }
.nicemu-site.home .nmh .nicemu-image-fallback b { color: rgba(255, 255, 255, .9); font: 800 40px var(--nmh-font); }
.nicemu-site.home .nmh .nicemu-card-badges { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; }
.nicemu-site.home .nmh .nicemu-card-badge { position: static; max-width: 100%; padding: 5px 12px; border: 0; border-radius: 999px; background: var(--nmh-accent); color: #fff; font: 700 10px/1.2 var(--nmh-font); letter-spacing: 1.2px; text-transform: uppercase; white-space: nowrap; box-shadow: none; }
.nicemu-site.home .nmh .nicemu-card-badge.is-sponsored { background: #fff; color: var(--nmh-muted); }
.nicemu-site.home .nmh .nicemu-product-card > .nicemu-cn-badge { display: none; } /* 设计稿：卡片上不标国家 */
.nicemu-site.home .nmh .nicemu-card-meta { margin: 16px 18px 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--nmh-weak); font: 400 12px/1.4 var(--nmh-font); letter-spacing: 0; text-transform: none; }
.nicemu-site.home .nmh .nicemu-card-meta > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nicemu-site.home .nmh .nicemu-rating { flex: 0 0 auto; color: var(--nmh-ink); font-size: 14px; font-weight: 700; letter-spacing: 0; }
.nicemu-site.home .nmh .nicemu-product-card h3 { min-height: 42px; margin: 6px 18px 0; font-size: 15px; font-weight: 700; line-height: 1.4; letter-spacing: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nicemu-site.home .nmh .nicemu-product-card h3 a { color: var(--nmh-ink); }
.nicemu-site.home .nmh .nicemu-product-card h3 a:hover { color: var(--nmh-accent); }
.nicemu-site.home .nmh .nicemu-product-card > p { margin: 6px 18px 0; color: var(--nmh-muted); font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nicemu-site.home .nmh .nicemu-card-bottom { margin: auto 0 0; padding: 12px 18px 18px; display: flex; flex-direction: column; align-items: stretch; gap: 12px; border: 0; }
.nicemu-site.home .nmh .nicemu-card-price { display: flex; align-items: baseline; gap: 8px; }
.nicemu-site.home .nmh .nicemu-card-bottom strong { color: var(--nmh-ink); font: 700 17px var(--nmh-font); }
.nicemu-site.home .nmh .nicemu-card-bottom del { color: var(--nmh-weak); font-size: 13px; }
.nicemu-site.home .nmh .nicemu-card-bottom > a {
	display: block;
	width: 100%;
	min-height: 0;
	padding: 10px;
	border: 1px solid #ebe6dc;
	border-radius: 8px;
	background: var(--nmh-base); /* 浅灰米色，同版块底色 #f7f5f0 */
	color: var(--nmh-accent); /* 文字同「Discover All Products」 */
	font: 600 14px/1.4 var(--nmh-font);
	letter-spacing: 0;
	text-align: center;
	text-transform: none;
	transition: background .2s;
}
.nicemu-site.home .nmh .nicemu-card-bottom > a:hover { border-color: var(--nmh-accent); background: var(--nmh-accent); color: #fff; }
/* 演示卡（商品库为空时） */
.nicemu-site.home .nmh .nicemu-preview-card .nicemu-card-media { background: linear-gradient(135deg, #d9c9a4, #bb9c68); }
.nicemu-site.home .nmh .nicemu-preview-card .nicemu-card-badge { position: absolute; top: 12px; left: 12px; }
.nicemu-site.home .nmh .nicemu-preview-card .nicemu-card-bottom { flex-direction: row; justify-content: space-between; color: var(--nmh-weak); font-size: 12px; }

/* ---------------------------------------------------------------- 品牌卡（China Edit + 品牌墙） */
.nicemu-site.home .nmh-brand-card { min-width: 0; padding: 28px 24px; display: flex; flex-direction: column; align-items: flex-start; border: 1px solid var(--nmh-line); border-radius: 12px; background: #fff; transition: box-shadow .2s; }
.nicemu-site.home .nmh-brand-card:hover { box-shadow: 0 6px 24px rgba(0, 0, 0, .08); }
.nicemu-site.home .nmh .nmh-brand-logo { width: 120px; height: 120px; margin: 0 0 20px; display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; border-radius: 14px; background: var(--nmh-logo-bg); color: var(--nmh-logo-ink); font: 800 42px/1 var(--nmh-font); }
.nicemu-site.home .nmh .nmh-brand-logo.has-image { background: #fff; border: 1px solid var(--nmh-line); }
.nicemu-site.home .nmh .nmh-brand-logo img,
.nicemu-site.home .nmh .nmh-brand-logo picture { display: block; width: 100%; height: 100%; object-fit: cover; }
.nicemu-site.home .nmh .nmh-brand-card h3 { margin: 0 0 6px; font-size: 18px; font-weight: 700; line-height: 1.3; letter-spacing: 0; text-transform: none; }
.nicemu-site.home .nmh .nmh-brand-card h3 a { color: var(--nmh-ink); }
.nicemu-site.home .nmh .nmh-brand-card h3 a:hover { color: var(--nmh-accent); }
.nicemu-site.home .nmh .nmh-brand-card p { margin: 0 0 14px; color: var(--nmh-muted); font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nicemu-site.home .nmh .nmh-brand-link { margin-top: auto; color: var(--nmh-accent); font-size: 14px; font-weight: 600; }
.nicemu-site.home .nmh .nmh-brand-link:hover { color: var(--nmh-accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.nicemu-site.home .nmh .nmh-brand-card small { margin-top: auto; color: var(--nmh-weak); font-size: 11px; letter-spacing: 1px; }
.nicemu-site.home .nmh .nicemu-empty { grid-column: 1 / -1; min-height: 160px; border: 1px dashed #d9cfba; border-radius: 12px; background: #fff; }

/* ---------------------------------------------------------------- 合集卡（封面 16:10，标题压在封面底部） */
.nicemu-site.home .nmh-col-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--nmh-line); border-radius: 12px; background: #fff; color: var(--nmh-ink); transition: box-shadow .2s; }
.nicemu-site.home .nmh-col-card:hover { box-shadow: 0 6px 24px rgba(0, 0, 0, .08); }
.nicemu-site.home .nmh-col-cover { position: relative; aspect-ratio: 16 / 10; padding: 16px; display: flex; flex-direction: column; justify-content: flex-end; background-size: cover; background-position: center; color: #fff; }
.nicemu-site.home .nmh-col-cover.is-tone-0 { background-color: #b18f5e; background-image: linear-gradient(135deg, #d5c096, #b18f5e); }
.nicemu-site.home .nmh-col-cover.is-tone-1 { background-color: #c9ab72; background-image: linear-gradient(135deg, #e3d3ae, #c9ab72); }
.nicemu-site.home .nmh-col-cover.is-tone-2 { background-color: #bfa06e; background-image: linear-gradient(135deg, #dcc9a8, #bfa06e); }
.nicemu-site.home .nmh-col-cover.is-tone-3 { background-color: #bfa170; background-image: linear-gradient(135deg, #dccbaa, #bfa170); }
.nicemu-site.home .nmh-col-cover.has-cover::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(24, 18, 12, .62), rgba(24, 18, 12, 0) 60%); }
.nicemu-site.home .nmh-col-cover > * { position: relative; }
.nicemu-site.home .nmh-col-cover small { position: absolute; top: 14px; left: 14px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .9); color: var(--nmh-ink); font-size: 10px; font-weight: 700; letter-spacing: 1px; }
.nicemu-site.home .nmh .nmh-col-cover h3 { margin: 0; color: #fff; font-size: 17px; font-weight: 700; line-height: 1.3; letter-spacing: 0; }
.nicemu-site.home .nmh-col-body { flex: 1; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.nicemu-site.home .nmh-col-desc { color: #888; font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nicemu-site.home .nmh-col-body b { margin-top: auto; color: var(--nmh-accent); font-size: 14px; font-weight: 600; }

/* ---------------------------------------------------------------- 笔记卡（缩略图 16:10） */
.nicemu-site.home .nmh .nicemu-note-card,
.nicemu-site.home .nmh .nicemu-preview-note { min-width: 0; margin: 0; padding: 0 0 18px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--nmh-line); border-radius: 12px; background: #fff; box-shadow: none; transition: box-shadow .2s; }
.nicemu-site.home .nmh .nicemu-note-card:hover { box-shadow: 0 6px 24px rgba(0, 0, 0, .08); }
.nicemu-site.home .nmh .nicemu-note-media { position: relative; display: grid; place-items: center; height: auto; margin: 0; aspect-ratio: 16 / 10; overflow: hidden; border: 0; border-radius: 0; background: linear-gradient(135deg, #d9c9a4, #bb9c68); }
.nicemu-site.home .nmh .nicemu-note-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.nicemu-site.home .nmh .nicemu-note-card:hover .nicemu-note-media img { transform: scale(1.03); }
.nicemu-site.home .nmh .nicemu-note-media > span { color: rgba(255, 255, 255, .9); font-size: 11px; font-weight: 700; letter-spacing: 1.5px; }
.nicemu-site.home .nmh .nicemu-note-count { position: absolute; left: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--nmh-ink); font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.nicemu-site.home .nmh .nicemu-note-card > small,
.nicemu-site.home .nmh .nicemu-preview-note > small { align-self: flex-start; margin: 16px 18px 0; padding: 3px 10px; border: 1px solid #e0e0e0; border-radius: 999px; color: #888; font-size: 11px; font-weight: 400; letter-spacing: 1px; text-transform: uppercase; }
.nicemu-site.home .nmh .nicemu-note-card h3,
.nicemu-site.home .nmh .nicemu-preview-note h3 { min-height: 0; margin: 10px 18px 0; font-size: 16px; font-weight: 700; line-height: 1.4; letter-spacing: 0; }
.nicemu-site.home .nmh .nicemu-note-card h3 a { color: var(--nmh-ink); }
.nicemu-site.home .nmh .nicemu-note-card h3 a:hover { color: var(--nmh-accent); }
.nicemu-site.home .nmh .nicemu-note-card > p,
.nicemu-site.home .nmh .nicemu-preview-note > p { margin: 8px 18px 0; color: #777; font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nicemu-site.home .nmh .nicemu-note-actions { margin: auto 18px 0; padding-top: 14px; display: flex; gap: 16px; }
.nicemu-site.home .nmh .nicemu-note-actions a { padding: 0; border: 0; color: var(--nmh-accent); font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.nicemu-site.home .nmh .nicemu-note-actions a:hover { color: var(--nmh-accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.nicemu-site.home .nmh .nicemu-preview-status { margin: auto 18px 0; padding-top: 14px; color: var(--nmh-weak); font-size: 12px; }

/* ---------------------------------------------------------------- 优惠（后台有内容才出现） */
.nicemu-site.home .nmh-deals-inner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; align-items: center; }
.nicemu-site.home .nmh-deals h2 { margin: 0; font-size: 28px; line-height: 1.2; }
.nicemu-site.home .nmh .nicemu-deal-list { display: grid; gap: 12px; }
.nicemu-site.home .nmh .nicemu-deal-list article { padding: 18px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; border: 1px solid var(--nmh-line); border-radius: 12px; background: #fff; }
.nicemu-site.home .nmh .nicemu-deal-list article b { flex: 1 1 200px; }
.nicemu-site.home .nmh .nicemu-deal-list button,
.nicemu-site.home .nmh .nicemu-deal-list a { padding: 8px 16px; border: 0; border-radius: 8px; background: var(--nmh-ink); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; }
.nicemu-site.home .nmh .nicemu-deal-list button:hover,
.nicemu-site.home .nmh .nicemu-deal-list a:hover { background: var(--nmh-accent); }

/* ---------------------------------------------------------------- 达人 / 品牌：两张卡 */
.nicemu-site.home .nmh-cta-duo { display: grid; grid-template-columns: 1fr 1fr; gap: var(--nmh-gap); align-items: stretch; }
.nicemu-site.home .nmh-cta-card:only-child { grid-column: 1 / -1; }
.nicemu-site.home .nmh-cta-card { padding: 28px; border-radius: 12px; color: #fff; }
.nicemu-site.home .nmh-cta-card.is-accent { background: var(--nmh-accent); }
.nicemu-site.home .nmh-cta-card.is-dark { background: #3a322b; }
.nicemu-site.home .nmh .nmh-cta-card h3 { margin: 0 0 8px; color: #fff; font-size: 20px; font-weight: 700; line-height: 1.3; letter-spacing: 0; }
.nicemu-site.home .nmh .nmh-cta-card p { max-width: 420px; margin: 0 0 16px; color: #fff; font-size: 14px; line-height: 1.5; opacity: .85; }
.nicemu-site.home .nmh-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.nicemu-site.home .nmh .nmh-cta-btn { display: inline-block; padding: 10px 22px; border: 1px solid #fff; border-radius: 8px; background: #fff; color: var(--nmh-ink); font-size: 13px; font-weight: 700; line-height: 1.4; transition: background .2s, color .2s; }
.nicemu-site.home .nmh .nmh-cta-btn:hover { background: var(--nmh-base); color: var(--nmh-ink); }
.nicemu-site.home .nmh .nmh-cta-btn.is-ghost { border-color: rgba(255, 255, 255, .6); background: transparent; color: #fff; }
.nicemu-site.home .nmh .nmh-cta-btn.is-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .12); color: #fff; }

/* ---------------------------------------------------------------- 订阅（金底，左文右框） */
.nicemu-site.home .nicemu-subscribe-band { padding: 56px 0; border: 0; background: var(--nmh-tint); font-family: var(--nmh-font); }
.nicemu-site.home .nicemu-subscribe-band > .nicemu-shell { width: var(--nmh-shell); max-width: none; margin-inline: auto; padding: 0; }
.nicemu-site.home .nicemu-subscribe-band .nicemu-subscribe.is-band { padding: 8px 0; display: flex; align-items: center; justify-content: space-between; gap: 48px; overflow: visible; border-radius: 0; background: transparent; color: var(--nmh-ink); }
.nicemu-site.home .nicemu-subscribe-band .nicemu-subscribe.is-band::before,
.nicemu-site.home .nicemu-subscribe-band .nicemu-subscribe.is-band::after,
.nicemu-site.home .nicemu-subscribe-band .nicemu-subscribe.is-band .nicemu-kicker::before { display: none; }
.nicemu-site.home .nicemu-subscribe-band .nicemu-subscribe-copy { flex: 1; }
.nicemu-site.home .nicemu-subscribe-band .nicemu-subscribe.is-band .nicemu-kicker { display: block; margin: 0 0 12px; color: var(--nmh-weak) !important; font: 400 12px/1.4 var(--nmh-font); letter-spacing: 3px; }
.nicemu-site.home .nicemu-subscribe-band .nicemu-subscribe.is-band h2 { margin: 0 0 10px; color: var(--nmh-ink); font: 800 28px/1.2 var(--nmh-font); letter-spacing: -.5px; }
.nicemu-site.home .nicemu-subscribe-band .nicemu-subscribe.is-band .nicemu-subscribe-copy p { max-width: none; margin: 0; color: var(--nmh-muted); font-size: 15px; }
.nicemu-site.home .nicemu-subscribe-band .nicemu-subscribe-form { flex: 1; max-width: 440px; }
.nicemu-site.home .nicemu-subscribe-band .nicemu-subscribe.is-band .nicemu-subscribe-row { padding: 0; gap: 0; overflow: hidden; border: 1px solid #ddd; border-radius: 999px; background: #fff; box-shadow: none; }
.nicemu-site.home .nicemu-subscribe-band .nicemu-subscribe.is-band .nicemu-subscribe-row:focus-within { border-color: var(--nmh-ink); box-shadow: none; }
body.nicemu-site.home .nicemu-subscribe-band .nicemu-subscribe-row input[type=email] { height: 50px; padding: 0 22px; font: 400 15px var(--nmh-font); color: var(--nmh-ink); }
body.nicemu-site.home .nicemu-subscribe-band .nicemu-subscribe.is-band .nicemu-subscribe-row button { height: 50px; padding: 0 32px; border-radius: 0; background: var(--nmh-accent); color: #fff; font: 600 15px var(--nmh-font); transform: none; }
body.nicemu-site.home .nicemu-subscribe-band .nicemu-subscribe.is-band .nicemu-subscribe-row button:hover { background: var(--nmh-accent-dark); }
body.nicemu-site.home .nicemu-subscribe-band .nicemu-subscribe-row button::after { content: ""; }
.nicemu-site.home .nicemu-subscribe-band .nicemu-subscribe.is-band small { padding-left: 22px; color: var(--nmh-weak); font-size: 12px; }
.nicemu-site.home .nicemu-subscribe-band .nicemu-subscribe-msg { padding-left: 22px; }
.nicemu-site.home .nicemu-subscribe-band .nicemu-subscribe.is-band .nicemu-subscribe-msg.is-ok { color: #2f7a46; }
.nicemu-site.home .nicemu-subscribe-band .nicemu-subscribe.is-band .nicemu-subscribe-msg.is-err { color: #b3261e; }

/* 页脚样式在 site-chrome.css（全站统一） */

/* ---------------------------------------------------------------- 响应式 */
@media (max-width: 1240px) {
	.nicemu-site.home .nmh-search-flex { gap: 40px; }
	.nicemu-site.home .nmh-trust { flex-basis: auto; }
	.nicemu-site.home .nmh-trust-item { white-space: normal; gap: 14px; }
	.nicemu-site.home .nmh .nmh-rail-btn.is-prev { left: -12px; }
	.nicemu-site.home .nmh .nmh-rail-btn.is-next { right: -12px; }
}
@media (max-width: 980px) {
	.nicemu-site.home .nmh .nmh-hero h1 { font-size: 40px; }
	.nicemu-site.home .nmh-search-flex { flex-direction: column; align-items: stretch; gap: 28px; }
	.nicemu-site.home .nmh-search-card { flex: none; }
	.nicemu-site.home .nmh-searchbar { max-width: none; }
	.nicemu-site.home .nmh .nmh-track,
	.nicemu-site.home .nmh .nmh-grid-4 { --nmh-cols: 3; }
	.nicemu-site.home .nmh-products .nmh-track:has(> :nth-child(4)),
	.nicemu-site.home .nmh-china .nmh-track:has(> :nth-child(4)),
	.nicemu-site.home .nmh-collections .nmh-track:has(> :nth-child(4)),
	.nicemu-site.home .nmh-brands .nmh-track:has(> :nth-child(7)),
	.nicemu-site.home .nmh-notes .nmh-track:has(> :nth-child(7)) {
		grid-auto-flow: column; grid-template-columns: none; grid-template-rows: repeat(var(--nmh-rows, 1), auto);
		grid-auto-columns: calc((100% - 2 * var(--nmh-gap)) / 3); overflow-x: auto; scroll-snap-type: x mandatory; cursor: grab;
	}
	.nicemu-site.home .nmh-deals-inner { grid-template-columns: 1fr; gap: 20px; }
	.nicemu-site.home .nicemu-subscribe-band .nicemu-subscribe.is-band { flex-direction: column; align-items: stretch; gap: 20px; }
	.nicemu-site.home .nicemu-subscribe-band .nicemu-subscribe-form { max-width: none; }
}
@media (max-width: 680px) {
	.nicemu-site.home { --nmh-shell: calc(100% - 32px); --nmh-gap: 12px; }
	.nicemu-site.home .nmh-block { padding: 40px 0; }
	.nicemu-site.home .nmh-hero { height: 420px; }
	.nicemu-site.home .nmh .nmh-hero h1 { font-size: 32px; letter-spacing: -.5px; }
	.nicemu-site.home .nmh .nmh-hero-sub { font-size: 16px; }
	.nicemu-site.home .nmh-hero-scrim { background: linear-gradient(to right, rgba(24, 18, 12, .75), rgba(24, 18, 12, .45)); }
	.nicemu-site.home .nmh-search-strip { padding-top: 28px; }
	.nicemu-site.home .nmh .nmh-searchbar button { padding: 0 18px; }
	.nicemu-site.home .nmh .nicemu-section-heading { align-items: flex-end; gap: 12px; margin-bottom: 20px; }
	.nicemu-site.home .nmh .nicemu-section-heading h2 { font-size: 24px; }
	.nicemu-site.home .nmh .nmh-head-compact { flex-direction: column; align-items: flex-start; }
	.nicemu-site.home .nmh-group-head span { font-size: 13px; }
	/* 手机：一律横滑，露出下一张的一角 */
	.nicemu-site.home .nmh .nmh-track[class] {
		grid-auto-flow: column; grid-template-columns: none; grid-template-rows: repeat(var(--nmh-rows, 1), auto);
		overflow-x: auto; scroll-snap-type: x mandatory; margin-right: -16px; padding-right: 16px; cursor: auto;
	}
	.nicemu-site.home .nmh-products .nmh-track[class] { grid-auto-columns: 62%; }
	.nicemu-site.home .nmh-china .nmh-track[class] { grid-auto-columns: 74%; }
	.nicemu-site.home .nmh-brands .nmh-track[class] { grid-auto-columns: 62%; }
	.nicemu-site.home .nmh-collections .nmh-track[class] { grid-auto-columns: 80%; }
	.nicemu-site.home .nmh-notes .nmh-track[class] { --nmh-rows: 1; grid-auto-columns: 80%; }
	.nicemu-site.home .nmh .nmh-grid-4 { --nmh-cols: 2; }
	.nicemu-site.home .nmh .nmh-rail-btn { display: none !important; }
	.nicemu-site.home .nmh .nicemu-product-card h3 { margin-inline: 14px; font-size: 14px; }
	.nicemu-site.home .nmh .nicemu-card-meta,
	.nicemu-site.home .nmh .nicemu-product-card > p { margin-inline: 14px; }
	.nicemu-site.home .nmh .nicemu-card-bottom { padding: 10px 14px 14px; }
	.nicemu-site.home .nmh-brand-card { padding: 22px 18px; }
	.nicemu-site.home .nmh-cta-duo { grid-template-columns: 1fr; }
	.nicemu-site.home .nmh-cta-card { padding: 24px 20px; }
	.nicemu-site.home .nicemu-subscribe-band { padding: 40px 0; }
	.nicemu-site.home .nicemu-subscribe-band .nicemu-subscribe.is-band h2 { font-size: 24px; }
	body.nicemu-site.home .nicemu-subscribe-band .nicemu-subscribe.is-band .nicemu-subscribe-row button { padding: 0 20px; }
}
@media (hover: none) {
	.nicemu-site.home .nmh .nmh-track { cursor: auto; }
}
@media (prefers-reduced-motion: reduce) {
	.nicemu-site.home .nmh-hero-slide,
	.nicemu-site.home .nmh .nicemu-card-media img,
	.nicemu-site.home .nmh .nicemu-note-media img { transition: none; }
}

/* =========================================================================
 * 手机端：商品、China Edit、品牌墙一屏 2 列（多出来的左右滑）
 * ====================================================================== */
@media (max-width: 680px) {
	.nicemu-site.home .nmh-products .nmh-track[class],
	.nicemu-site.home .nmh-china .nmh-track[class],
	.nicemu-site.home .nmh-brands .nmh-track[class] {
		grid-auto-columns: calc((100% - var(--nmh-gap)) / 2);
		margin-right: 0;
		padding-right: 0;
	}
	.nicemu-site.home .nmh-brands .nmh-track[class] { --nmh-rows: 2; }
	.nicemu-site.home .nmh .nmh-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	/* 版头：左对齐，标题在上、「查看全部」在下 */
	.nicemu-site.home .nmh .nicemu-section-heading { flex-direction: column; align-items: flex-start; text-align: left; gap: 8px; }
	.nicemu-site.home .nmh .nicemu-section-heading > div { width: 100%; text-align: left; }
	.nicemu-site.home .nmh .nicemu-text-link { padding-top: 0; }

	/* 商品卡：窄卡片排版 */
	.nicemu-site.home .nmh .nicemu-card-meta { margin: 10px 10px 0; flex-direction: row; align-items: center; justify-content: space-between; text-align: left; font-size: 11px; }
	.nicemu-site.home .nmh .nicemu-rating { font-size: 12px; }
	.nicemu-site.home .nmh .nicemu-product-card h3 { min-height: 0; margin: 4px 10px 0; font-size: 13px; line-height: 1.35; text-align: left; }
	.nicemu-site.home .nmh .nicemu-product-card > p { margin: 4px 10px 0; font-size: 12px; text-align: left; }
	.nicemu-site.home .nmh .nicemu-card-bottom { padding: 8px 10px 12px; gap: 8px; }
	.nicemu-site.home .nmh .nicemu-card-bottom strong { font-size: 15px; }
	.nicemu-site.home .nmh .nicemu-card-bottom > a { padding: 8px 6px; font-size: 12px; }
	.nicemu-site.home .nmh .nicemu-card-badges { top: 8px; left: 8px; right: 8px; }
	.nicemu-site.home .nmh .nicemu-card-badge { padding: 4px 8px; font-size: 9px; letter-spacing: .6px; }

	/* 品牌卡：窄卡片排版 */
	.nicemu-site.home .nmh-brand-card { padding: 16px 14px; }
	.nicemu-site.home .nmh .nmh-brand-logo { width: 72px; height: 72px; margin-bottom: 12px; font-size: 28px; }
	.nicemu-site.home .nmh .nmh-brand-card h3 { font-size: 15px; }
	.nicemu-site.home .nmh .nmh-brand-card p { margin-bottom: 10px; font-size: 12px; }
	.nicemu-site.home .nmh .nmh-brand-link { font-size: 12px; }
}

/* 首页大图：通栏全幅，上下左右不留白；图上文字跟下面版块同一条左边线 */
.nicemu-site.home .nmh-hero { width: 100%; margin: 0; }
