/*
Theme Name: Kiosko Child (NovaPure Style)
Theme URI: https://novapureshop.com
Description: Kiosko 子主题，前台风格按 NovaPure 商店首页重构：粘性顶栏、蓝白渐变 Hero、分类卡片、精选商品网格、质量与文档带、评价轮播、支持条。
Author: Custom
Template: kiosko
Version: 1.0.0
Text Domain: kiosko-child
*/

/* ============================================================
   1. 设计令牌（取自 NovaPure）
   ============================================================ */
:root {
	--np-ink: #07132b;
	--np-muted: #5b6678;
	--np-blue: #115dd6;
	--np-blue2: #0f49b7;
	--np-teal: #159b85;
	--np-line: #dfe7ef;
	--np-soft: #f5f8fb;
	--np-paper: #fff;
	--np-shadow: 0 12px 30px rgba(10, 34, 70, .05);
	--np-shadow-lg: 0 20px 46px rgba(10, 34, 70, .11);
	--np-container: min(1240px, calc(100% - 48px));
	--np-radius: 8px;
}

/* ============================================================
   2. 全局基底
   ============================================================ */
body {
	font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
	color: var(--np-ink);
	background: #fff;
	-webkit-font-smoothing: antialiased;
}

body a { text-decoration: none; }
body a:hover { text-decoration: none; }

h1, h2, h3, h4 { letter-spacing: -.04em; }

/* 版心容器：所有 .np-container 统一宽度 */
.np-container {
	width: var(--np-container);
	margin-inline: auto;
}

/* 让 alignfull 分区真正贴边 */
.np-section { width: 100%; }

/* ------------ 按钮 ------------ */
/*
 * 注意不要用裸的 .np-btn 选择器。
 * 区块按钮的结构是：
 *   <div class="wp-block-button np-btn"><a class="wp-block-button__link">
 * className 加在外层 div 上，裸 .np-btn 会把 wrapper 也画成按钮，
 * 里面的 <a> 再画一次 —— 就成了双层边框。
 * 纯链接形式的按钮由后面的 a.np-btn 负责。
 */
.np-btn.wp-block-button__link,
.wp-block-button.np-btn .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 24px;
	border: 1px solid #cfd9e6;
	border-radius: 6px;
	background: #fff;
	color: var(--np-ink);
	font-size: 13px;
	font-weight: 800;
	line-height: 1;
	transition: .25s;
}

.wp-block-button.np-btn .wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: var(--np-shadow-lg);
}

.wp-block-button.np-btn-primary .wp-block-button__link {
	background: var(--np-blue);
	border-color: var(--np-blue);
	color: #fff;
	box-shadow: 0 14px 30px rgba(17, 93, 214, .18);
}

.wp-block-button.np-btn-primary .wp-block-button__link:hover {
	background: var(--np-blue2);
	border-color: var(--np-blue2);
}

/* ============================================================
   3. 顶部公告条 + 粘性页头
   ============================================================ */
.np-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: rgba(255, 255, 255, .94);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	border-bottom: 1px solid var(--np-line);
}

.np-header .np-header-inner {
	width: var(--np-container);
	min-height: 74px;
	margin-inline: auto;
	padding-block: 0;
}

.np-header .wp-block-site-title a {
	color: var(--np-ink);
	font-size: 20px;
	font-weight: 900;
	letter-spacing: -.04em;
	text-transform: uppercase;
}

.np-header .wp-block-navigation {
	font-size: 13px;
}

.np-header .wp-block-navigation a {
	color: #4c4f55;
	transition: .2s;
}

.np-header .wp-block-navigation a:hover,
.np-header .wp-block-navigation .current-menu-item a {
	color: var(--np-blue);
}

.np-header .wc-block-mini-cart__button,
.np-header .wp-block-woocommerce-customer-account a {
	color: var(--np-ink);
}

/* 公告条 */
.np-notice {
	background: var(--np-ink);
	color: #fff;
	font-size: 12px;
	letter-spacing: .02em;
	text-align: center;
	padding: 9px 16px;
	margin: 0;
}

/* ============================================================
   4. Hero 主视觉
   ============================================================ */
.np-hero {
	position: relative;
	overflow: hidden;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--np-line);
	background: linear-gradient(115deg, #fff, #f7fbff 54%, #eaf4ff);
}

.np-hero::after {
	content: "";
	position: absolute;
	inset: auto -8% -32% 58%;
	height: 300px;
	background: radial-gradient(circle, #cce3fb 0, rgba(204, 227, 251, 0) 66%);
	pointer-events: none;
}

.np-hero-inner {
	position: relative;
	z-index: 1;
	min-height: 430px;
	display: grid;
	grid-template-columns: minmax(0, .9fr) minmax(440px, 1.1fr);
	align-items: center;
	gap: 62px;
	padding: 34px 0 26px;
}

.np-hero-copy h1,
.np-hero-copy .wp-block-heading {
	margin: 0;
	max-width: 520px;
	font-size: clamp(30px, 7.4vw, 58px);
	line-height: 1.03;
	letter-spacing: -.046em;
}

.np-hero-copy p {
	max-width: 460px;
	margin: 18px 0 0;
	color: #263750;
	font-size: 15px;
	line-height: 1.62;
}

.np-hero-actions {
	display: flex;
	gap: 12px;
	margin-top: 24px;
	flex-wrap: wrap;
}

.np-hero-stage {
	position: relative;
	min-height: 350px;
	display: grid;
	align-items: center;
	isolation: isolate;
}

.np-hero-stage::before {
	content: "";
	position: absolute;
	inset: 20px 0 14px 9%;
	z-index: -1;
	background: radial-gradient(circle at 55% 52%, rgba(180, 218, 248, .42), rgba(180, 218, 248, 0) 67%);
}

.np-hero-stage img {
	width: 100%;
	height: 350px;
	object-fit: cover;
	object-position: center;
	mix-blend-mode: multiply;
	filter: saturate(.98) contrast(1.02);
	-webkit-mask-image:
		linear-gradient(90deg, transparent 0, #000 10%, #000 88%, transparent 100%),
		linear-gradient(180deg, transparent 0, #000 9%, #000 88%, transparent 100%);
	mask-image:
		linear-gradient(90deg, transparent 0, #000 10%, #000 88%, transparent 100%),
		linear-gradient(180deg, transparent 0, #000 9%, #000 88%, transparent 100%);
	-webkit-mask-composite: source-in;
	mask-composite: intersect;
}

/* Hero 下方 4 条卖点 */
.np-proof-list {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	list-style: none;
	margin: 0 auto;
	padding: 0;
}

.np-proof-list li {
	position: relative;
	min-height: 78px;
	padding: 18px 18px 18px 46px;
	border: 1px solid #dce7f1;
	border-radius: var(--np-radius);
	background: rgba(255, 255, 255, .82);
	box-shadow: var(--np-shadow);
	font-size: 13px;
	font-weight: 800;
	line-height: 1.45;
}

.np-proof-list li::before {
	content: "✓";
	position: absolute;
	left: 18px;
	top: 17px;
	width: 18px;
	height: 18px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: #e6f3ff;
	color: var(--np-blue);
	font-size: 12px;
	font-weight: 900;
}

/* ============================================================
   5. 分区通用（标题行）
   ============================================================ */
.np-shop-section { padding: 54px 0; }

.np-row-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 28px;
	margin-bottom: 24px;
}

.np-row-head h2,
.np-row-head .wp-block-heading {
	margin: 0;
	font-size: clamp(23px, 5vw, 40px);
	line-height: 1;
	letter-spacing: -.048em;
}

.np-row-head p {
	margin: 9px 0 0;
	max-width: 470px;
	color: var(--np-muted);
	font-size: 14px;
	line-height: 1.55;
}

.np-row-link a,
.np-row-head .np-row-link {
	color: var(--np-blue);
	font-size: 12px;
	font-weight: 800;
	white-space: nowrap;
}

.np-row-link a::after { content: " →"; }

/* ============================================================
   6. 分类卡片
   ============================================================ */
.np-category-section { background: #fff; }

.np-category-cards,
.np-category-cards.wp-block-product-categories ul,
.wp-block-woocommerce-product-collection .np-category-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
	gap: 14px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.np-category-card {
	position: relative;
	min-height: 132px;
	padding: 18px 52px 18px 20px;
	border: 1px solid var(--np-line);
	border-radius: var(--np-radius);
	background: #fff;
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	align-items: center;
	gap: 16px;
	box-shadow: 0 10px 28px rgba(10, 34, 70, .04);
	transition: .22s;
	overflow: hidden;
}

.np-category-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 18px 42px rgba(10, 34, 70, .1);
	border-color: #bdd3ea;
}

.np-category-card img {
	width: 68px;
	height: 78px;
	object-fit: contain;
	mix-blend-mode: multiply;
}

.np-category-card strong,
.np-category-card .np-cat-name {
	display: block;
	font-size: 17px;
	line-height: 1.25;
	color: var(--np-ink);
	overflow-wrap: anywhere;
}

.np-category-card small,
.np-category-card .np-cat-count {
	display: block;
	margin-top: 8px;
	color: var(--np-muted);
	font-size: 12px;
	line-height: 1.45;
}

.np-category-card::after {
	content: "›";
	position: absolute;
	right: 18px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--np-blue);
	font-size: 22px;
	line-height: 1;
}

/* ============================================================
   7. 精选商品网格（WooCommerce product-collection）
   ============================================================ */
.np-featured-section {
	background: linear-gradient(180deg, #f6fbff, #fff);
	border-block: 1px solid #edf4fb;
}























/* ============================================================
   8. 质量与文档带
   ============================================================ */
.np-quality-band {
	padding: 58px 0;
	background: #f6fbff;
	border-bottom: 1px solid var(--np-line);
}

.np-quality-inner {
	display: grid;
	grid-template-columns: minmax(280px, 360px) 1fr;
	gap: 48px;
	align-items: start;
}

.np-quality-intro .np-eyebrow {
	color: var(--np-blue);
	font-size: 11px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: .08em;
	margin: 0;
}

.np-quality-intro h2,
.np-quality-intro .wp-block-heading {
	margin: 12px 0;
	font-size: clamp(25px, 5.4vw, 42px);
	line-height: 1.03;
	letter-spacing: -.048em;
}

.np-quality-intro p {
	margin: 0 0 22px;
	color: var(--np-muted);
	font-size: 14px;
	line-height: 1.65;
}

.np-quality-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
}

.np-quality-item {
	min-height: 148px;
	padding: 22px;
	border: 1px solid #d8e5f2;
	border-radius: var(--np-radius);
	background: #fff;
	box-shadow: 0 12px 30px rgba(10, 34, 70, .04);
}

.np-quality-item .np-num {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	margin: 0 0 20px;
	border-radius: 50%;
	background: #e4f2ff;
	color: var(--np-blue);
	font-size: 11px;
	font-weight: 900;
}

.np-quality-item h3,
.np-quality-item .wp-block-heading {
	margin: 0;
	font-size: 16px;
	letter-spacing: -.02em;
}

.np-quality-item p {
	margin: 9px 0 0;
	color: var(--np-muted);
	font-size: 13px;
	line-height: 1.5;
}

/* ============================================================
   9. 客户评价（横向滚动）
   ============================================================ */
.np-feedback-section { background: #fff; }

.np-review-carousel {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 4px 0 14px;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.np-review-carousel::-webkit-scrollbar { display: none; }

.np-review-card {
	flex: 0 0 auto;
	width: clamp(250px, calc((min(1240px, 100vw - 48px) - 48px) / 4), 298px);
	height: 300px;
	padding: 22px;
	border: 1px solid var(--np-line);
	border-radius: var(--np-radius);
	background: #fff;
	box-shadow: 0 12px 30px rgba(10, 34, 70, .04);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	scroll-snap-align: start;
}

.np-review-card .np-stars {
	color: var(--np-teal);
	font-size: 12px;
	letter-spacing: .12em;
	margin: 0;
}

.np-review-card p:not(.np-stars):not(.np-review-author) {
	margin: 14px 0;
	color: var(--np-ink);
	font-size: 15px;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 8;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.np-review-author {
	margin-top: auto;
	margin-bottom: 0;
	color: var(--np-muted);
	font-size: 12px;
	font-weight: 700;
}

/* ============================================================
   10. 支持条
   ============================================================ */
.np-support-strip { padding: 0 0 58px; }

.np-support-inner {
	display: grid;
	grid-template-columns: 1.25fr .8fr .8fr;
	gap: 14px;
	align-items: center;
	padding: 24px;
	border: 1px solid #cbe9dc;
	border-radius: var(--np-radius);
	background: linear-gradient(90deg, #f2fbf7, #eef8ff);
}

.np-support-inner h2,
.np-support-inner .wp-block-heading {
	margin: 0 0 7px;
	font-size: 24px;
	letter-spacing: -.035em;
}

.np-support-inner > div > p {
	margin: 0;
	color: var(--np-muted);
	font-size: 13px;
}

.np-support-link a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	min-height: 72px;
	padding: 18px;
	border: 1px solid rgba(255, 255, 255, .8);
	border-radius: 7px;
	background: rgba(255, 255, 255, .72);
	color: var(--np-ink);
	font-size: 13px;
	font-weight: 700;
	transition: .2s;
}

.np-support-link a:hover {
	background: #fff;
	border-color: #cbe9dc;
}

.np-support-link a::after {
	content: "→";
	color: var(--np-teal);
	font-size: 18px;
}

/* ============================================================
   11. 页脚
   ============================================================ */
.np-footer {
	border-top: 1px solid var(--np-line);
	background: #fff;
	padding: 46px 0 22px;
}

.np-footer h4,
.np-footer .wp-block-heading {
	margin: 0 0 14px;
	font-size: 13px;
	letter-spacing: 0;
}

.np-footer p,
.np-footer a,
.np-footer li {
	font-size: 12px;
	line-height: 1.9;
	color: var(--np-muted);
}

.np-footer a:hover { color: var(--np-blue); }

.np-footer-disclaimer {
	text-align: center;
	font-size: 12px;
	line-height: 1.7;
	color: var(--np-muted);
	margin-top: 20px;
	padding: 0 20px 12px;
}

/* ============================================================
   12. 图案（patterns）自有标记的样式
   ============================================================ */

/* 链接型按钮（Hero / 质量带里用的是 <a class="np-btn">） */
a.np-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 24px;
	border: 1px solid #cfd9e6;
	border-radius: 6px;
	background: #fff;
	color: var(--np-ink);
	font-size: 13px;
	font-weight: 800;
	line-height: 1;
	transition: .25s;
}

a.np-btn:hover {
	transform: translateY(-2px);
	box-shadow: var(--np-shadow-lg);
	border-color: #bdd3ea;
}

a.np-btn--primary {
	background: var(--np-blue);
	border-color: var(--np-blue);
	color: #fff;
	box-shadow: 0 14px 30px rgba(17, 93, 214, .18);
}

a.np-btn--primary:hover {
	background: var(--np-blue2);
	border-color: var(--np-blue2);
}

/* 质量带里的次要按钮更小一号 */
.np-quality-intro a.np-btn {
	min-height: 38px;
	padding: 0 18px;
	font-size: 12px;
}

/* ------------ 精选商品卡（PHP 图案标记） ------------ */
.np-product-cards {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
}

.np-product-card {
	border: 1px solid var(--np-line);
	border-radius: var(--np-radius);
	background: #fff;
	box-shadow: 0 12px 30px rgba(10, 34, 70, .05);
	overflow: hidden;
	transition: .22s;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.np-product-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 20px 46px rgba(10, 34, 70, .11);
}

.np-product-card > .np-product-link {
	display: grid;
	grid-template-rows: auto 1fr;
	width: 100%;
	height: 100%;
	color: inherit;
}

.np-product-card img {
	/* 与商店栅格同理：跟着商品照片 3/4 的竖比，固定高度会让图两侧空掉 */
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 4;
	object-fit: contain;
	background: #f7fbff;
	padding: 18px;
	mix-blend-mode: multiply;
}

.np-product-card section {
	min-width: 0;
	padding: 17px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.np-product-eyebrow {
	display: block;
	color: var(--np-teal);
	font-size: 11px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: .04em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.np-product-card h3 {
	margin: 8px 0 7px;
	font-size: 16px;
	line-height: 1.25;
	min-height: 40px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.np-product-card small {
	display: block;
	height: 34px;
	color: var(--np-muted);
	font-size: 12px;
	line-height: 1.4;
	overflow: hidden;
}

.np-product-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 16px;
}

.np-product-foot strong,
.np-product-foot .woocommerce-Price-amount {
	font-size: 18px;
	font-weight: 800;
	color: var(--np-ink);
}

.np-product-foot del { opacity: .5; font-size: 13px; font-weight: 400; }
.np-product-foot ins { text-decoration: none; }

/* WooCommerce 价格里的无障碍文本不参与视觉排版 */
.np-product-card .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.np-product-add {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	flex: 0 0 auto;
	border: 1px solid #bcd0ee;
	border-radius: 6px;
	background: #fff;
	color: var(--np-blue);
	font-weight: 900;
	transition: .2s;
}

.np-product-card:hover .np-product-add {
	background: var(--np-blue);
	color: #fff;
}

/* ------------ 评价轮播左右箭头 ------------ */
.np-review-frame { position: relative; }

.np-review-nav {
	position: absolute;
	top: 50%;
	z-index: 5;
	width: 66px;
	height: 66px;
	display: grid;
	place-items: center;
	border: 1px solid rgba(210, 226, 244, .92);
	border-radius: 999px;
	background: rgba(255, 255, 255, .96);
	box-shadow: 0 18px 42px rgba(21, 93, 171, .16);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	cursor: pointer;
	opacity: 0;
	pointer-events: none;
	transform: translateY(-50%) scale(.96);
	transition: .2s;
}

.np-review-frame:hover .np-review-nav,
.np-review-frame:focus-within .np-review-nav {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(-50%) scale(1);
}

.np-review-nav:hover {
	background: #fff;
	box-shadow: 0 22px 48px rgba(21, 93, 171, .22);
	transform: translateY(-50%) scale(1.04);
}

.np-review-prev { left: -34px; }
.np-review-next { right: -34px; }

.np-chevron {
	display: block;
	width: 18px;
	height: 18px;
	border-top: 5px solid #1b78f2;
	border-right: 5px solid #1b78f2;
	border-radius: 2px;
}

.np-review-prev .np-chevron { transform: translateX(3px) rotate(225deg); }
.np-review-next .np-chevron { transform: translateX(-3px) rotate(45deg); }

/* ------------ 页脚栅格 ------------ */
.np-footer-grid { gap: 38px; }
.np-footer-grid .wp-block-site-title a { color: var(--np-ink); }

/* ============================================================
   13. 响应式
   ============================================================ */
@media (max-width: 1340px) {
	.np-review-prev { left: 4px; }
	.np-review-next { right: 4px; }
}

@media (max-width: 1080px) {
}

@media (max-width: 960px) {
	:root { --np-container: calc(100% - 28px); }

	.np-hero-inner {
		grid-template-columns: 1fr;
		gap: 28px;
		padding-top: 26px;
	}

	.np-hero-stage { min-height: 260px; }
	.np-hero-stage img { height: 260px; }

	.np-proof-list { grid-template-columns: repeat(2, 1fr); }

	.np-row-head {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.np-quality-inner { grid-template-columns: 1fr; gap: 28px; }

	.np-support-inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {

	.np-quality-list { grid-template-columns: 1fr; }

	.np-shop-section { padding: 38px 0; }
}

@media (max-width: 480px) {
	.np-proof-list { grid-template-columns: 1fr; }
}

/* ============================================================
   14. 内页：通用页头 / 面包屑 / 正文排版
   ============================================================ */
/*
 * 背景要在任何高度下都填满整条页头。
 * 原来是 linear-gradient(180deg, #f7fbff, #fff)，底部褪成纯白 ——
 * 页头一矮（比如上边距调小），有颜色的部分就被压没了，
 * 看起来像"背景没铺开"。改成上下都保留底色的渐变。
 */
.np-page-hero {
	padding: 62px 0 44px;
	background: linear-gradient(180deg, #edf4fd 0%, #f7fbff 100%);
	border-bottom: 1px solid var(--np-line);
}

.np-page-hero h1,
.np-page-hero .wp-block-query-title,
.np-page-hero .wp-block-post-title {
	margin: 0;
	font-size: clamp(27px, 7vw, 60px);
	line-height: 1.02;
	letter-spacing: -.055em;
	color: var(--np-ink);
}

.np-page-hero-desc,
.np-page-hero-desc p {
	max-width: 620px;
	margin: 14px 0 0;
	color: var(--np-muted);
	font-size: 15px;
	line-height: 1.7;
}

.np-crumbs,
.np-crumbs p,
.wp-block-woocommerce-breadcrumbs {
	margin: 0 0 16px;
	color: var(--np-muted);
	font-size: 12px;
	letter-spacing: .02em;
}

.np-crumbs a { color: var(--np-muted); }
.np-crumbs a:hover { color: var(--np-blue); }

.np-eyebrow,
.np-card-eyebrow,
.np-detail-eyebrow,
.np-post-eyebrow {
	margin: 0 0 6px;
	color: var(--np-teal);
	font-size: 11px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: .08em;
}

.np-card-eyebrow a,
.np-detail-eyebrow a,
.np-post-eyebrow a { color: inherit; }

/* 正文排版（普通页面 / 文章 / WooCommerce 页面容器） */
.np-prose { max-width: 100%; }

.np-prose p,
.np-prose li {
	color: #2b3a4f;
	font-size: 15px;
	line-height: 1.8;
}

.np-prose h2 { margin: 34px 0 12px; font-size: 28px; letter-spacing: -.04em; }
.np-prose h3 { margin: 26px 0 10px; font-size: 20px; letter-spacing: -.03em; }
.np-prose a { color: var(--np-blue); }
.np-prose a:hover { text-decoration: underline; }

.np-prose img,
.np-page-thumb img { border-radius: var(--np-radius); }

.np-post-date {
	margin: 12px 0 0;
	color: var(--np-muted);
	font-size: 12px;
}

.np-empty {
	padding: 65px 20px;
	text-align: center;
	color: var(--np-muted);
	font-size: 14px;
}

/* 搜索框 */
.np-search-form { max-width: 460px; margin-top: 20px; }

.np-search-form .wp-block-search__input {
	height: 46px;
	padding: 0 14px;
	border: 1px solid var(--np-line);
	border-radius: 6px 0 0 6px;
	background: #fff;
	font-size: 14px;
}

.np-search-form .wp-block-search__input:focus {
	outline: none;
	border-color: var(--np-blue);
}

.np-search-form .wp-block-search__button {
	height: 46px;
	margin: 0;
	padding: 0 20px;
	border: 1px solid var(--np-blue);
	border-radius: 0 6px 6px 0;
	background: var(--np-blue);
	color: #fff;
	font-size: 13px;
	font-weight: 800;
}

.np-search-form .wp-block-search__button:hover { background: var(--np-blue2); }

/* ============================================================
   15. 商品列表页（catalog）
   ============================================================ */
.np-catalog-layout {
	display: grid;
	grid-template-columns: 232px minmax(0, 1fr);
	gap: 46px;
	align-items: start;
}

.np-catalog-main { min-width: 0; }

/* ------------ 侧边筛选栏 ------------ */
.np-filters {
	position: sticky;
	top: 96px;
	padding-top: 4px;
}

.np-filter-search input[type="search"] {
	width: 100%;
	height: 42px;
	padding: 0 13px;
	border: 1px solid var(--np-line);
	border-radius: 6px;
	background: #fff;
	font-size: 13px;
}

.np-filter-search input[type="search"]:focus {
	outline: none;
	border-color: var(--np-blue);
}

.np-filters h3 {
	margin: 24px 0 10px;
	font-size: 12px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--np-ink);
}

.np-filter-list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--np-ink);
}

.np-filter-btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 11px 0;
	border-bottom: 1px solid var(--np-line);
	color: var(--np-muted);
	font-size: 13px;
	transition: .2s;
}

.np-filter-btn:hover,
.np-filter-btn.is-active {
	color: var(--np-blue);
	font-weight: 800;
}

.np-filter-btn em {
	font-style: normal;
	font-size: 11px;
	color: #97a3b4;
}

.np-filter-help {
	margin-top: 26px;
	padding: 18px;
	border: 1px solid #cbe9dc;
	border-radius: var(--np-radius);
	background: linear-gradient(160deg, #f2fbf7, #eef8ff);
}

.np-filter-help strong { display: block; font-size: 13px; }

.np-filter-help p {
	margin: 7px 0 14px;
	color: var(--np-muted);
	font-size: 12px;
	line-height: 1.5;
}

.np-filter-help .np-btn { width: 100%; min-height: 38px; font-size: 12px; padding: 0 12px; }

/* ------------ 工具条 ------------ */
.np-catalog-tools {
	margin-bottom: 20px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--np-line);
	color: var(--np-muted);
	font-size: 13px;
}

.np-catalog-tools p { margin: 0; }

.np-catalog-tools select {
	height: 40px;
	padding: 0 32px 0 12px;
	border: 1px solid var(--np-line);
	border-radius: 6px;
	background: #fff;
	color: var(--np-ink);
	font-size: 13px;
}

/* ------------ 商品栅格（区块循环） ------------ */
.np-catalog-grid {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.np-catalog-grid > li {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 16px;
	border: 1px solid var(--np-line);
	border-radius: var(--np-radius);
	background: #fff;
	box-shadow: 0 12px 30px rgba(10, 34, 70, .05);
	transition: .22s;
	overflow: hidden;
}

.np-catalog-grid > li:hover {
	transform: translateY(-3px);
	box-shadow: 0 20px 46px rgba(10, 34, 70, .11);
}

.np-catalog-grid .wc-block-components-product-image,
.np-catalog-grid .wp-block-woocommerce-product-image {
	margin: -16px -16px 14px;
	padding: 0;
	background: #f7fbff;
}

/*
 * WooCommerce 的 product-image 区块直接在 <img> 上写内联样式：
 *   style="object-fit:cover;aspect-ratio:1/1;"
 * 内联样式压过一切普通规则，竖版商品图会被强制裁成 1:1，
 * 瓶盖和瓶底被切掉。这里必须用 !important 才能覆盖。
 */
.np-catalog-grid .wc-block-components-product-image img,
.np-catalog-grid .wp-block-woocommerce-product-image img {
	/*
	 * 商品图全是竖版：站内 80 张主图的宽高比集中在 0.71–0.75，中位 0.74。
	 * 给图片盒同样的 3/4，contain 就能正好铺满整个宽度 —— 换成固定高度
	 * （之前是 190px）会让盒子变成 1.43 的横比，竖图只能按高度缩放，
	 * 两侧白白空掉一半，看起来就"缩小了"。
	 */
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 4 !important;
	object-fit: contain !important;
	mix-blend-mode: multiply;
}

.np-catalog-grid .np-card-title {
	margin: 4px 0 8px;
	font-size: 16px;
	line-height: 1.3;
	letter-spacing: -.02em;
}

.np-catalog-grid .np-card-title a { color: var(--np-ink); }
.np-catalog-grid .np-card-title a:hover { color: var(--np-blue); }

.np-catalog-grid .np-card-price {
	margin: auto 0 0;
	font-size: 18px;
	font-weight: 800;
	color: var(--np-ink);
}

.np-catalog-grid .np-card-price del { opacity: .5; font-size: 13px; font-weight: 400; }
.np-catalog-grid .np-card-price ins { text-decoration: none; }

.np-catalog-grid .np-card-button { margin-top: 12px; }

.np-catalog-grid .np-card-button button,
.np-catalog-grid .wp-block-button__link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 40px;
	border: 1px solid #bcd0ee;
	border-radius: 6px;
	background: #fff;
	color: var(--np-blue);
	font-size: 12px;
	font-weight: 900;
	transition: .2s;
}

.np-catalog-grid .np-card-button button:hover,
.np-catalog-grid .wp-block-button__link:hover {
	background: var(--np-blue);
	border-color: var(--np-blue);
	color: #fff;
}

/* 卡片里的无障碍文本 */
.np-catalog-grid .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

/* ------------ 分页 ------------ */
.np-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	margin-top: 34px;
	gap: 8px;
	color: var(--np-muted);
	font-size: 13px;
}

/* 页码组本身也要能换行，否则窄屏会溢出 */
.np-pagination .wp-block-query-pagination-numbers {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

/* 省略号不做成按钮 */
.np-pagination .page-numbers.dots {
	border: 0;
	background: none;
	min-width: 0;
	padding: 0 4px;
}

/*
 * 只选真正的分页项：数字（a/span.page-numbers）与上一页/下一页链接。
 * 不要用 .np-pagination span 这类宽泛选择器 —— 会把嵌套的
 * screen-reader 文本也套上按钮外观。
 */
.np-pagination .page-numbers,
.np-pagination .wp-block-query-pagination-previous,
.np-pagination .wp-block-query-pagination-next {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	min-height: 40px;
	padding: 0 14px;
	border: 1px solid var(--np-line);
	border-radius: 6px;
	background: #fff;
	color: var(--np-ink);
	font-size: 13px;
	font-weight: 700;
	transition: .2s;
}

.np-pagination .page-numbers:hover,
.np-pagination .wp-block-query-pagination-previous:hover,
.np-pagination .wp-block-query-pagination-next:hover,
.np-pagination .page-numbers.current {
	background: var(--np-blue);
	border-color: var(--np-blue);
	color: #fff;
}

/* ============================================================
   16. 商品详情页
   ============================================================ */
.np-detail-section { padding: 34px 0 46px; }

.np-detail {
	display: grid;
	grid-template-columns: 1.05fr .95fr;
	gap: 64px;
	align-items: start;
}

.np-detail-gallery { min-width: 0; }

.np-detail-gallery .wp-block-woocommerce-product-image-gallery img,
.np-detail-gallery .woocommerce-product-gallery img {
	border-radius: var(--np-radius);
	background: var(--np-soft);
}

.np-detail-gallery .flex-control-thumbs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
	gap: 10px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.np-detail-gallery .flex-control-thumbs li { margin: 0; }

.np-detail-gallery .flex-control-thumbs img {
	border: 1px solid var(--np-line);
	border-radius: 6px;
	padding: 6px;
	background: #fff;
	cursor: pointer;
	transition: .2s;
}

.np-detail-gallery .flex-control-thumbs img:hover,
.np-detail-gallery .flex-control-thumbs .flex-active {
	border-color: var(--np-blue);
}

.np-detail-info { padding-top: 6px; min-width: 0; }

.np-detail-info h1,
.np-detail-info .wp-block-post-title {
	margin: 8px 0 14px;
	font-size: clamp(25px, 6vw, 46px);
	line-height: 1.04;
	letter-spacing: -.05em;
}

/*
 * 只有最外层做 flex。
 * 千万不要把 .woocommerce-Price-amount 也设成 flex —— 价格区间的
 * 标记是「<span 金额> – <span 金额>」，金额一旦变成 flex 容器就成了
 * 块级元素，会强制换行，破折号被孤立在单独一行。
 * 那条规则的 gap 还会在 $ 与数字之间插入空隙。
 */
.np-detail-price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 10px;
	margin: 0 0 18px;
	font-size: 26px;
	font-weight: 800;
	line-height: 1.2;
	color: var(--np-ink);
}

/* 金额保持行内，$ 与数字不分离 */
.np-detail-price .woocommerce-Price-amount,
.np-detail-price bdi {
	display: inline;
	gap: 0;
	white-space: nowrap;
}

.np-detail-price .woocommerce-Price-currencySymbol {
	margin-right: 1px;
}

/* 区间的破折号不参与换行 */
.np-detail-price .wc-block-components-product-price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 10px;
}

.np-detail-price del { opacity: .45; font-size: 16px; font-weight: 400; }
.np-detail-price ins { text-decoration: none; }

.np-detail-copy,
.np-detail-copy p {
	margin: 0 0 20px;
	color: var(--np-muted);
	font-size: 15px;
	line-height: 1.75;
}

/* 加入购物车表单 */
.np-detail-info form.cart {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin: 22px 0 0;
	padding: 20px 0;
	border-top: 1px solid var(--np-line);
	border-bottom: 1px solid var(--np-line);
}

.np-detail-info .quantity input[type="number"] {
	width: 84px;
	height: 46px;
	padding: 0 10px;
	border: 1px solid var(--np-line);
	border-radius: 6px;
	background: #fff;
	text-align: center;
	font-size: 14px;
}

.np-detail-info .single_add_to_cart_button,
.np-detail-info button[type="submit"] {
	min-height: 46px;
	padding: 0 30px;
	border: 1px solid var(--np-blue);
	border-radius: 6px;
	background: var(--np-blue);
	color: #fff;
	font-size: 13px;
	font-weight: 800;
	box-shadow: 0 14px 30px rgba(17, 93, 214, .18);
	transition: .25s;
	cursor: pointer;
}

.np-detail-info .single_add_to_cart_button:hover,
.np-detail-info button[type="submit"]:hover {
	background: var(--np-blue2);
	border-color: var(--np-blue2);
	transform: translateY(-2px);
}

/* 服务标签 */
.np-detail-services { gap: 8px; margin-top: 18px; }

.np-detail-services p {
	margin: 0;
	padding: 8px 11px;
	border-radius: 5px;
	background: #f3f7ff;
	color: var(--np-blue);
	font-size: 11px;
	font-weight: 800;
}

.np-detail-meta {
	margin-top: 18px;
	gap: 18px;
	color: var(--np-muted);
	font-size: 12px;
}

.np-detail-meta a { color: var(--np-muted); }
.np-detail-meta a:hover { color: var(--np-blue); }

/* 详情下方选项卡 */
.np-detail-tabs {
	padding: 0 0 50px;
	border-bottom: 1px solid var(--np-line);
}

.np-detail-tabs .wc-tabs {
	display: flex;
	gap: 26px;
	margin: 0 0 22px;
	padding: 0 0 2px;
	list-style: none;
	border-bottom: 1px solid var(--np-line);
}

.np-detail-tabs .wc-tabs li { margin: 0; }

.np-detail-tabs .wc-tabs li a {
	display: block;
	padding: 12px 0;
	color: var(--np-muted);
	font-size: 13px;
	font-weight: 800;
	border-bottom: 2px solid transparent;
}

.np-detail-tabs .wc-tabs li.active a,
.np-detail-tabs .wc-tabs li a:hover {
	color: var(--np-blue);
	border-bottom-color: var(--np-blue);
}

.np-detail-tabs .woocommerce-Tabs-panel p,
.np-detail-tabs .woocommerce-Tabs-panel li {
	color: #2b3a4f;
	font-size: 15px;
	line-height: 1.8;
}

/* 相关商品 */
.np-related { padding-top: 46px; }
.np-related-title { margin: 0 0 22px; font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -.045em; }
.np-related .np-catalog-grid { grid-template-columns: repeat(4, 1fr); }

/* ============================================================
   17. 购物车 / 结算（WooCommerce 区块）
   ============================================================ */
.np-page .wp-block-woocommerce-cart,
.np-page .wp-block-woocommerce-checkout { max-width: 100%; }

.np-page .wc-block-cart,
.np-page .wc-block-checkout { color: var(--np-ink); }

.np-page .wc-block-cart-items,
.np-page .wc-block-cart-items th,
.np-page .wc-block-cart-items td { border-color: var(--np-line); }

.np-page .wc-block-cart-items__header {
	color: var(--np-muted);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .06em;
	border-bottom: 1px solid var(--np-ink);
}

.np-page .wc-block-cart-item__image img {
	border: 1px solid var(--np-line);
	border-radius: 6px;
	background: #f7fbff;
}

.np-page .wc-block-components-product-name {
	color: var(--np-ink);
	font-size: 15px;
	font-weight: 800;
}

.np-page .wc-block-components-product-name:hover { color: var(--np-blue); }

.np-page .wc-block-cart__sidebar .wc-block-components-sidebar,
.np-page .wc-block-checkout__sidebar .wc-block-components-sidebar {
	padding: 24px;
	border: 1px solid var(--np-line);
	border-radius: var(--np-radius);
	background: var(--np-soft);
	box-shadow: var(--np-shadow);
}

.np-page .wc-block-components-totals-item {
	color: var(--np-muted);
	font-size: 14px;
}

.np-page .wc-block-components-totals-footer-item {
	color: var(--np-ink);
	font-size: 18px;
	font-weight: 800;
}

/* 表单控件统一 */
.np-page .wc-block-components-text-input input,
.np-page .wc-block-components-form input[type="text"],
.np-page .wc-block-components-form input[type="email"],
.np-page .wc-block-components-form input[type="tel"],
.np-page .wc-block-components-select__container select,
.np-page .wc-block-components-textarea {
	border: 1px solid var(--np-line) !important;
	border-radius: 6px !important;
	background: #fff !important;
	font-size: 14px;
}

.np-page .wc-block-components-text-input.is-active input:focus,
.np-page .wc-block-components-text-input input:focus {
	border-color: var(--np-blue) !important;
	box-shadow: 0 0 0 3px rgba(17, 93, 214, .12);
	outline: none;
}

/* 主按钮 */
.np-page .wc-block-components-button:not(.is-link) {
	min-height: 48px;
	border-radius: 6px;
	background: var(--np-blue);
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	box-shadow: 0 14px 30px rgba(17, 93, 214, .18);
	transition: .25s;
}

.np-page .wc-block-components-button:not(.is-link):hover {
	background: var(--np-blue2);
	transform: translateY(-2px);
}

.np-page .wc-block-components-button.is-link { color: var(--np-blue); }

/* 结算步骤卡片化 */
.np-page .wc-block-components-checkout-step {
	padding: 22px;
	margin-bottom: 14px;
	border: 1px solid var(--np-line);
	border-radius: var(--np-radius);
	background: #fff;
	box-shadow: var(--np-shadow);
}

.np-page .wc-block-components-checkout-step__title {
	font-size: 17px;
	font-weight: 800;
	letter-spacing: -.02em;
}

.np-page .wc-block-components-checkout-step__description {
	color: var(--np-muted);
	font-size: 13px;
}

/* 提示条 */
.np-page .wc-block-components-notice-banner {
	border-radius: var(--np-radius);
	font-size: 14px;
}

/* ============================================================
   18. 我的账户（经典短代码标记）
   ============================================================ */
.np-page .woocommerce-account .woocommerce {
	display: grid;
	grid-template-columns: 232px minmax(0, 1fr);
	gap: 46px;
	align-items: start;
}

.np-page .woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--np-ink);
}

.np-page .woocommerce-MyAccount-navigation li {
	border-bottom: 1px solid var(--np-line);
}

.np-page .woocommerce-MyAccount-navigation li a {
	display: block;
	padding: 12px 0;
	color: var(--np-muted);
	font-size: 13px;
	transition: .2s;
}

.np-page .woocommerce-MyAccount-navigation li a:hover,
.np-page .woocommerce-MyAccount-navigation li.is-active a {
	color: var(--np-blue);
	font-weight: 800;
}

.np-page .woocommerce-MyAccount-content { min-width: 0; }

.np-page .woocommerce-MyAccount-content p,
.np-page .woocommerce-MyAccount-content li {
	color: #2b3a4f;
	font-size: 14px;
	line-height: 1.75;
}

/* 订单表 */
.np-page .woocommerce table.shop_table {
	width: 100%;
	border: 1px solid var(--np-line);
	border-radius: var(--np-radius);
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
	font-size: 13px;
}

.np-page .woocommerce table.shop_table th {
	padding: 13px 16px;
	background: var(--np-soft);
	color: var(--np-muted);
	font-size: 11px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: .06em;
	text-align: left;
}

.np-page .woocommerce table.shop_table td {
	padding: 14px 16px;
	border-top: 1px solid var(--np-line);
}

/* 表单 */
.np-page .woocommerce form .form-row { margin-bottom: 16px; }

.np-page .woocommerce form label {
	display: block;
	margin-bottom: 6px;
	color: var(--np-ink);
	font-size: 12px;
	font-weight: 800;
}

.np-page .woocommerce input[type="text"],
.np-page .woocommerce input[type="email"],
.np-page .woocommerce input[type="tel"],
.np-page .woocommerce input[type="password"],
.np-page .woocommerce input[type="number"],
.np-page .woocommerce select,
.np-page .woocommerce textarea {
	width: 100%;
	min-height: 44px;
	padding: 10px 13px;
	border: 1px solid var(--np-line);
	border-radius: 6px;
	background: #fff;
	color: var(--np-ink);
	font-size: 14px;
}

.np-page .woocommerce input:focus,
.np-page .woocommerce select:focus,
.np-page .woocommerce textarea:focus {
	outline: none;
	border-color: var(--np-blue);
	box-shadow: 0 0 0 3px rgba(17, 93, 214, .12);
}

.np-page .woocommerce .button,
.np-page .woocommerce button[type="submit"],
.np-page .woocommerce .woocommerce-Button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 26px;
	border: 1px solid var(--np-blue);
	border-radius: 6px;
	background: var(--np-blue);
	color: #fff;
	font-size: 13px;
	font-weight: 800;
	box-shadow: 0 14px 30px rgba(17, 93, 214, .18);
	transition: .25s;
	cursor: pointer;
}

.np-page .woocommerce .button:hover,
.np-page .woocommerce button[type="submit"]:hover,
.np-page .woocommerce .woocommerce-Button:hover {
	background: var(--np-blue2);
	border-color: var(--np-blue2);
	transform: translateY(-2px);
}

/* 通知条 */
.np-page .woocommerce-message,
.np-page .woocommerce-info,
.np-page .woocommerce-error {
	padding: 15px 18px;
	margin-bottom: 20px;
	border: 1px solid var(--np-line);
	border-left: 4px solid var(--np-blue);
	border-radius: var(--np-radius);
	background: #f6fbff;
	color: var(--np-ink);
	font-size: 14px;
	list-style: none;
}

.np-page .woocommerce-message { border-left-color: var(--np-teal); background: #f2fbf7; }
.np-page .woocommerce-error { border-left-color: #d3455b; background: #fdf3f4; }

/* ============================================================
   19. 文章列表 / 404
   ============================================================ */
.np-post-grid {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.np-post-grid > li {
	margin: 0;
	padding: 0 0 18px;
	border: 1px solid var(--np-line);
	border-radius: var(--np-radius);
	background: #fff;
	box-shadow: var(--np-shadow);
	overflow: hidden;
	transition: .22s;
}

.np-post-grid > li:hover {
	transform: translateY(-3px);
	box-shadow: var(--np-shadow-lg);
}

.np-post-grid .np-post-thumb img {
	width: 100%;
	height: 190px;
	object-fit: cover;
	border-radius: 0;
}

.np-post-grid .np-card-eyebrow,
.np-post-grid .np-card-title,
.np-post-grid .np-card-excerpt { padding-inline: 18px; }

.np-post-grid .np-card-eyebrow { margin-top: 16px; }

.np-post-grid .np-card-title {
	margin: 0 0 8px;
	font-size: 18px;
	line-height: 1.3;
	letter-spacing: -.03em;
}

.np-post-grid .np-card-title a { color: var(--np-ink); }
.np-post-grid .np-card-title a:hover { color: var(--np-blue); }

.np-post-grid .np-card-excerpt,
.np-post-grid .np-card-excerpt p {
	margin: 0;
	color: var(--np-muted);
	font-size: 13px;
	line-height: 1.6;
}

/* 404 */
.np-404-band {
	padding: 96px 0 110px;
	background: linear-gradient(115deg, #fff, #f7fbff 54%, #eaf4ff);
	border-bottom: 1px solid var(--np-line);
}

.np-404-inner { max-width: 620px; }

.np-404-inner h1 {
	margin: 10px 0 14px;
	font-size: clamp(27px, 7vw, 56px);
	line-height: 1.03;
	letter-spacing: -.05em;
}

.np-404-inner > p {
	color: var(--np-muted);
	font-size: 15px;
	line-height: 1.7;
}

.np-404-actions { margin-top: 22px; gap: 12px; }

/* ============================================================
   20. 内页响应式
   ============================================================ */

/* 商店栅格的列数阶梯：4 → 3 → 2，手机端保持两列 */
@media (max-width: 1200px) {
	.np-catalog-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1080px) {
	.np-catalog-layout { grid-template-columns: 200px minmax(0, 1fr); gap: 30px; }
	.np-catalog-grid { grid-template-columns: repeat(3, 1fr); }
	.np-related .np-catalog-grid { grid-template-columns: repeat(3, 1fr); }
	.np-post-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
	.np-catalog-layout,
	.np-page .woocommerce-account .woocommerce { grid-template-columns: 1fr; gap: 28px; }

	.np-filters { position: static; }
	.np-filter-list { display: flex; flex-wrap: wrap; gap: 8px; border-top: 0; }

	.np-filter-btn {
		padding: 8px 13px;
		border: 1px solid var(--np-line);
		border-radius: 999px;
	}

	.np-detail { grid-template-columns: 1fr; gap: 30px; }
	.np-page-hero { padding: 42px 0 30px; }
}

@media (max-width: 620px) {
	/* 相关商品与商店栅格用的是同一套卡片，手机端一并保持两列 */
	.np-related .np-catalog-grid { grid-template-columns: repeat(2, 1fr); }
	.np-post-grid { grid-template-columns: 1fr; }

	.np-404-band { padding: 60px 0 70px; }
}

/* ============================================================
   21. 移动端修正
   ------------------------------------------------------------
   说明：WordPress 的响应式导航把折叠断点硬编码在 600px。
   本站主菜单有 6 项英文条目，横排约需 450px，加站名与图标约 640px，
   因此在 600–980px 区间会溢出页头。下面把折叠断点上提到 980px。
   ============================================================ */

/* ---------- 溢出兜底 ----------
   用 clip 而非 hidden：clip 不会建立滚动容器，
   不影响页头的 position: sticky。 */
.np-storefront { overflow-x: clip; }

img, svg, video { max-width: 100%; height: auto; }

/* 长英文单词/型号在窄屏换行，避免撑破卡片 */
.np-card-title,
.np-product-card h3,
.np-category-card strong,
.np-detail-info h1,
.np-hero-copy h1,
.np-page-hero h1 { overflow-wrap: anywhere; }

/* ---------- 页头：把导航折叠断点从 600px 上提到 980px ---------- */
@media (max-width: 980px) {
	/* 隐藏横排菜单（展开状态除外） */
	.np-header .wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: none;
	}

	/* 显示汉堡按钮 */
	.np-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}


	.np-header .np-header-inner {
		min-height: 62px;
		gap: 10px;
	}

	.np-header .wp-block-site-title a { font-size: 17px; }
}

/* ---------- 平板 ---------- */
@media (max-width: 860px) {
	/* 评价轮播的左右箭头在触屏上无用且会压住卡片 */
	.np-review-nav { display: none; }

	/* 商品列表工具条竖排 */
	.np-catalog-tools {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.np-catalog-tools select { width: 100%; }

	/*
	 * 这一档侧栏已经收起，整宽可用。若跟着降到两列，卡片会比桌面还大
	 * （768px 下图片能到 317px，比 1440px 的 191px 还宽），所以保持三列。
	 * 真正的两列留给 ≤620px 的手机端。
	 */
	.np-catalog-grid { grid-template-columns: repeat(3, 1fr); }
	.np-related .np-catalog-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 手机 ---------- */
@media (max-width: 620px) {
	.np-shop-section { padding: 34px 0; }
	.np-page-hero    { padding: 34px 0 26px; }
	.np-quality-band { padding: 38px 0; }
	.np-support-strip { padding-bottom: 38px; }

	/* Hero */
	.np-hero-inner { min-height: 0; padding: 22px 0 20px; gap: 22px; }
	.np-hero-actions { gap: 10px; }
	.np-hero-actions a.np-btn { flex: 1 1 100%; }

	.np-hero-stage { min-height: 200px; }
	.np-hero-stage img { height: 200px; }

	/* 卖点条：单列时压缩高度 */
	.np-proof-list { grid-template-columns: 1fr; gap: 8px; }
	.np-proof-list li {
		min-height: 0;
		padding: 13px 14px 13px 42px;
		font-size: 12.5px;
	}
	.np-proof-list li::before { top: 13px; }

	/* 分区标题行 */
	.np-row-head { margin-bottom: 18px; }
	.np-row-head p { font-size: 13px; }

	/* 分类卡片 */
	.np-category-card {
		min-height: 0;
		padding: 14px 40px 14px 14px;
		grid-template-columns: 56px minmax(0, 1fr);
		gap: 12px;
	}
	.np-category-card img { width: 54px; height: 62px; }
	.np-category-card strong { font-size: 15px; }
	.np-category-card::after { right: 14px; }

	/* 首页商品卡：单列时改成横向布局，避免整屏只看到一张卡 */
	.np-product-cards { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.np-product-card > .np-product-link { grid-template-rows: auto 1fr; }
	.np-product-card img { padding: 12px; }
	.np-product-card section { padding: 12px; }
	.np-product-card h3 { font-size: 14px; min-height: 36px; }
	.np-product-card small { display: none; }
	.np-product-foot strong { font-size: 16px; }

	/* 商店页栅格同样保持两列 */
	.np-catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.np-catalog-grid > li { padding: 12px; }
	.np-catalog-grid .wc-block-components-product-image,
	.np-catalog-grid .wp-block-woocommerce-product-image { margin: -12px -12px 10px; padding: 0; }
	/* ---------- 手机端分页 ----------
	 * 桌面是「Previous Page ‥ 页码 ‥ Next Page」一排；手机上这三块
	 * 加起来 548px，远超 347px 的可用宽度，于是折成了三行。
	 * 改法：上一页/下一页收成和页码同尺寸的箭头方块，三块保持同一行
	 * （nav 设 nowrap），页码组自己占据剩余空间、必要时在组内换行 ——
	 * 这样再窄的屏也不会溢出，箭头始终留在两端。
	 */
	.np-pagination {
		flex-wrap: nowrap;
		gap: 6px;
	}

	.np-pagination .wp-block-query-pagination-numbers {
		/* 只占内容宽度，让箭头贴着页码一起居中，而不是被撑到屏幕两端 */
		flex: 0 1 auto;
		min-width: 0;
		gap: 6px;
	}

	.np-pagination .page-numbers {
		min-width: 34px;
		min-height: 34px;
		padding: 0 6px;
		font-size: 12px;
	}

	.np-pagination .wp-block-query-pagination-previous,
	.np-pagination .wp-block-query-pagination-next {
		flex: 0 0 auto;
		min-width: 34px;
		min-height: 34px;
		padding: 0;
		/* 文字留在 DOM 里给读屏软件，视觉上换成箭头 */
		font-size: 0;
	}

	.np-pagination .wp-block-query-pagination-previous::before,
	.np-pagination .wp-block-query-pagination-next::before {
		font-size: 19px;
		font-weight: 400;
		line-height: 1;
	}

	.np-pagination .wp-block-query-pagination-previous::before { content: "\2039"; }
	.np-pagination .wp-block-query-pagination-next::before { content: "\203A"; }

	/*
	 * 页码在手机上还是放不下：第 4 页（共 7 页）时 midSize=2 会把 7 个
	 * 页码全列出来，加上两个箭头要 354px，而 390px 屏只有 347px 可用。
	 * midSize 是区块属性、改了会连桌面一起变，所以这里只在手机端按
	 * 「首页 / 当前页前后 / 末页」保留关键页码，其余隐藏。
	 * 最多 5 个格子，320px 屏也放得下。
	 */
	.np-pagination .wp-block-query-pagination-numbers > .page-numbers { display: none; }

	.np-pagination .wp-block-query-pagination-numbers > .page-numbers.current,
	.np-pagination .wp-block-query-pagination-numbers > .current + .page-numbers,
	.np-pagination .wp-block-query-pagination-numbers > .page-numbers:has(+ .current),
	.np-pagination .wp-block-query-pagination-numbers > a.page-numbers:first-child,
	.np-pagination .wp-block-query-pagination-numbers > a.page-numbers:last-child {
		display: inline-flex;
	}

	/* 省略号在这套精简页码下已经对不上位置，手机端不显示 */
	.np-pagination .wp-block-query-pagination-numbers > .page-numbers.dots { display: none; }

	.np-catalog-grid .np-card-title { font-size: 14px; }
	/*
	 * 手机端两列时卡片可用宽度随屏宽变化很大（320px 屏只有 108px，
	 * 390px 屏有 143px），而最长的价格「$100.00 – $135.00」在 14px
	 * 下要 144px。固定字号必然在某一端出问题：16px 会折成两行，
	 * 14px 又会在 360px 以下溢出卡片。
	 *
	 * 所以让字号跟着屏宽线性缩放，两端夹住：
	 *   320px → 10px    360px → 12px    390px → 13.5px    ≥400px → 14px
	 * 实测各档所需上限为 10.5 / 12.4 / 13.9 / 14px，均留有余量。
	 */
	.np-catalog-grid .np-card-price {
		font-size: clamp(10px, calc(5vw - 6px), 14px);
		white-space: nowrap;
	}

	/* 质量卡 */
	.np-quality-item { min-height: 0; padding: 18px; }
	.np-quality-item .np-num { margin-bottom: 14px; }

	/* 评价卡：留出下一张的边缘，提示可横滑 */
	.np-review-card {
		width: min(74vw, 280px);
		height: 264px;
		padding: 18px;
	}
	.np-review-card p:not(.np-stars):not(.np-review-author) {
		font-size: 14px;
		-webkit-line-clamp: 6;
	}

	/* 支持条 */
	.np-support-inner { padding: 18px; }
	.np-support-inner h2 { font-size: 20px; }

	/* 商品详情 */
	.np-detail-section { padding: 20px 0 32px; }
	.np-detail { gap: 22px; }
	.np-detail-info form.cart { gap: 10px; }
	.np-detail-info form.cart .quantity,
	.np-detail-info .quantity input[type="number"] { width: 100%; }
	.np-detail-info .single_add_to_cart_button,
	.np-detail-info button[type="submit"] { width: 100%; }
	.np-detail-tabs .wc-tabs { gap: 16px; overflow-x: auto; white-space: nowrap; }

	/* 文章列表 */
	.np-post-grid { gap: 14px; }
	.np-post-grid .np-post-thumb img { height: 160px; }

	/* 页脚 */
	.np-footer { padding: 32px 0 18px; }
	.np-footer-grid { gap: 22px; }

	/* 404 */
	.np-404-band { padding: 48px 0 56px; }
	.np-404-actions .wp-block-button { flex: 1 1 100%; }
	.np-404-actions .wp-block-button__link { width: 100%; }
}

@media (max-width: 400px) {
	/*
	 * 极窄屏才退到单列 —— 但商店栅格除外：参照站在 390px 下仍是两列
	 * （图 171×232），单列会让每张卡高到需要反复滚动。
	 */
	.np-product-cards,
	.np-post-grid { grid-template-columns: 1fr; }

	.np-product-card > .np-product-link { grid-template-rows: auto 1fr; }
	.np-product-card small { display: block; }
}

/* ============================================================
   22. WooCommerce 表格：让插件自带的手机端堆叠样式生效
   ------------------------------------------------------------
   本主题给 .shop_table 加了圆角/分离边框，会和 WooCommerce
   的 woocommerce-smallscreen.css（<768px 把表格改为逐行堆叠）
   冲突。这里在小屏还原为插件预期的样式。
   ============================================================ */
@media (max-width: 768px) {
	.np-page .woocommerce table.shop_table {
		border: 0;
		border-radius: 0;
		border-collapse: collapse;
		overflow: visible;
	}

	.np-page .woocommerce table.shop_table th { padding: 10px 12px; }

	.np-page .woocommerce table.shop_table td {
		padding: 10px 12px;
		border-top: 1px solid var(--np-line);
	}

	/* 未被插件转成堆叠的表格允许横向滚动，不撑破页面 */
	.np-page .woocommerce table.shop_table:not(.shop_table_responsive) {
		display: block;
		overflow-x: auto;
		white-space: nowrap;
	}

	/* 账户页导航与内容之间留出间距 */
	.np-page .woocommerce-MyAccount-navigation { margin-bottom: 22px; }
}

/* ============================================================
   23. 站点标识（Logo / 站名）
   ------------------------------------------------------------
   本站设置了自定义 Logo 且站点标题为空，因此页头以 Logo 为主，
   站名作为兜底（标题为空时该块不输出任何内容）。
   ============================================================ */
.np-brand { flex: 0 0 auto; min-width: 0; }

.np-header .wp-block-site-logo { line-height: 0; }

.np-header .wp-block-site-logo img {
	width: 150px;
	height: auto;
	max-height: 46px;
	object-fit: contain;
	object-position: left center;
	display: block;
}

.np-footer-logo img {
	width: 160px;
	height: auto;
	max-height: 52px;
	object-fit: contain;
	object-position: left center;
	margin-bottom: 12px;
}

@media (max-width: 980px) {
	.np-header .wp-block-site-logo img { width: 118px; max-height: 38px; }
}

@media (max-width: 620px) {
	.np-header .wp-block-site-logo img { width: 104px; max-height: 34px; }
}

/* ============================================================
   24. 手机端导航浮层
   ------------------------------------------------------------
   导航块在桌面端是右对齐的（items-justified-right 加在 <ul> 上），
   这个类在展开的竖排浮层里同样生效，会把菜单项挤到右边、
   并让 <li> 不占满宽度。下面针对浮层状态整体重写。
   ============================================================ */
@media (max-width: 980px) {

	/*
	 * 关键：.np-header 上的 backdrop-filter 会成为固定定位元素的包含块，
	 * 导致导航浮层的 position:fixed / inset:0 相对页头而不是视口计算，
	 * 浮层因此缩成页头大小的一个小盒子。窄屏取消毛玻璃，改用实色背景。
	 * 宽屏用不到浮层，毛玻璃保留。
	 */
	.np-header {
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
		background: #fff;
	}

	/* 浮层本体：铺满屏幕、纯白底 */
	.np-header .wp-block-navigation__responsive-container.is-menu-open {
		position: fixed;
		inset: 0;
		z-index: 100000;
		display: flex;
		flex-direction: column;
		padding: 18px 22px 40px;
		background: #fff;
		overflow-y: auto;
	}

	/* 顶部：关闭按钮靠右 */
	.np-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-close {
		width: 100%;
		max-width: none;
		margin: 0;
	}

	.np-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
		position: absolute;
		top: 14px;
		right: 18px;
		width: 42px;
		height: 42px;
		display: grid;
		place-items: center;
		border: 1px solid var(--np-line);
		border-radius: 999px;
		background: #fff;
		color: var(--np-ink);
	}

	.np-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
		width: 100%;
		margin-top: 52px;
	}

	/* 菜单列表：竖排、占满宽、左对齐 —— 覆盖 items-justified-right */
	.np-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
		width: 100%;
		flex-direction: column;
		align-items: stretch !important;
		justify-content: flex-start !important;
		gap: 0 !important;
	}

	.np-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
		width: 100%;
		display: block;
		border-bottom: 1px solid var(--np-line);
	}

	.np-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
		display: block;
		width: 100%;
		padding: 15px 0;
		color: var(--np-ink);
		font-size: 16px;
		font-weight: 800;
		text-align: left;
	}

	.np-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover,
	.np-header .wp-block-navigation__responsive-container.is-menu-open .current-menu-item .wp-block-navigation-item__content {
		color: var(--np-blue);
	}

	/* 汉堡按钮 */
	.np-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 40px;
		height: 40px;
		padding: 0;
		border: 1px solid var(--np-line);
		border-radius: 8px;
		background: #fff;
		color: var(--np-ink);
	}

	/* ---------- 顶栏右侧：汉堡 + 账户 + 购物车 收紧 ---------- */
	.np-header .np-header-inner { gap: 8px; }

	/* 导航与图标组之间（原为 spacing--50 = 28px） */
	.np-header .np-header-inner > .wp-block-group:last-child {
		gap: 6px !important;
	}

	/* 账户与购物车之间（原为 spacing--30 = 8px） */
	.np-header .np-header-inner > .wp-block-group:last-child > .wp-block-group {
		gap: 2px !important;
	}

	/* 导航元素本身不撑开，紧贴右侧图标 */
	.np-header .wp-block-navigation {
		flex: 0 0 auto;
		margin: 0;
	}

	/* 汉堡按钮 */
	.np-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		width: 36px;
		height: 36px;
	}

	.np-header .wp-block-navigation__responsive-container-open svg {
		width: 20px;
		height: 20px;
	}

	/* 账户图标：给明确尺寸，避免成为看不见的占位空白 */
	.np-header .wp-block-woocommerce-customer-account {
		font-size: 0;
		line-height: 0;
	}

	.np-header .np-account-link a,
.wp-block-woocommerce-customer-account .wc-block-customer-account__link {
		display: grid;
		place-items: center;
		width: 36px;
		height: 36px;
		padding: 0;
		color: var(--np-ink);
	}

	.np-header .wp-block-woocommerce-customer-account svg {
		width: 21px;
		height: 21px;
		fill: currentColor;
	}

	/* 购物车按钮 */
	.np-header .wc-block-mini-cart__button {
		width: 36px;
		height: 36px;
		padding: 0;
		display: grid;
		place-items: center;
	}

	.np-header .wc-block-mini-cart__badge {
		margin: 0;
	}
}

/* 公告条在手机上收紧，避免占掉三行 */
@media (max-width: 620px) {
	.np-notice {
		padding: 7px 14px;
		font-size: 11px;
		line-height: 1.45;
	}
}

/* ============================================================
   26. 修复「我的账户」图标不显示
   ------------------------------------------------------------
   WooCommerce 渲染出的是 <svg class="icon" viewBox="-5 -5 25 25">，
   没有 width/height 属性；而插件给尺寸的样式选择器是
   .wc-block-customer-account__account-icon，与实际 class 不匹配。
   结果 SVG 没有任何尺寸，在 flex 容器里塌成 0 宽 —— 图标不可见。
   这里按实际渲染出的 class 直接给尺寸。
   ============================================================ */
.wp-block-woocommerce-customer-account .wc-block-customer-account__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	color: var(--np-ink);
	border-radius: 6px;
	transition: .2s;
}

.np-account-link a:hover,
.wp-block-woocommerce-customer-account .wc-block-customer-account__link:hover {
	color: var(--np-blue);
	background: var(--np-soft);
}

.np-account-link svg,
.wp-block-woocommerce-customer-account svg,
.wp-block-woocommerce-customer-account svg.icon,
.wp-block-woocommerce-customer-account .wc-block-customer-account__account-icon {
	display: block;
	flex: 0 0 auto;
	width: 21px;
	height: 21px;
	fill: currentColor;
}

/* 购物车图标与之对齐，保持同一尺寸节奏 */
.np-header .wc-block-mini-cart__button svg {
	width: 21px;
	height: 21px;
}

/* ============================================================
   27. 登录 / 注册 / 找回密码：统一风格
   ------------------------------------------------------------
   两个页面来自 user-registration 插件的不同短代码，标记完全不同：
     注册页  → .ur-form-row / .ur-label / .ur-frontend-field / .ur-submit-button
     登录页  → .user-registration-form-row / .user-registration-form__label
               / .user-registration-Input / .user-registration-Button
   下面把两套标记统一到同一套视觉。
   ============================================================ */
.np-auth-band {
	padding: 54px 0 72px;
	background: linear-gradient(180deg, #f7fbff, #fff 62%);
	border-bottom: 1px solid var(--np-line);
}

.np-auth-inner { max-width: 480px; }

.np-auth-head { text-align: center; margin-bottom: 22px; }

.np-auth-head .wp-block-post-title {
	margin: 0;
	font-size: clamp(28px, 5.4vw, 40px);
	line-height: 1.05;
	letter-spacing: -.045em;
	color: var(--np-ink);
}

.np-auth-sub {
	margin: 10px 0 0;
	color: var(--np-muted);
	font-size: 14px;
	line-height: 1.6;
}

.np-auth-card {
	padding: 26px;
	border: 1px solid var(--np-line);
	border-radius: var(--np-radius);
	background: #fff;
	box-shadow: 0 18px 44px rgba(10, 34, 70, .08);
}

.np-auth-note {
	margin: 18px auto 0;
	max-width: 420px;
	text-align: center;
	color: var(--np-muted);
	font-size: 12px;
	line-height: 1.6;
}

/* ---------- 切换标签 ---------- */
.np-auth-switch {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px;
	margin-bottom: 24px;
	padding: 4px;
	border: 1px solid var(--np-line);
	border-radius: 8px;
	background: var(--np-soft);
}

.np-auth-tab {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	border-radius: 6px;
	color: var(--np-muted);
	font-size: 13px;
	font-weight: 800;
	transition: .2s;
}

.np-auth-tab:hover { color: var(--np-ink); }

.np-auth-tab.is-active {
	background: #fff;
	color: var(--np-blue);
	box-shadow: 0 6px 16px rgba(10, 34, 70, .1);
}

/* ---------- 表单：两套标记统一 ---------- */
.np-auth .ur-frontend-form,
.np-auth .user-registration {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}

.np-auth .ur-form-row,
.np-auth .user-registration-form-row,
.np-auth .ur-field-item { margin-bottom: 16px; }

.np-auth .ur-label,
.np-auth .user-registration-form__label,
.np-auth label {
	display: block;
	margin-bottom: 7px;
	color: var(--np-ink);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .01em;
}

.np-auth input[type="text"],
.np-auth input[type="email"],
.np-auth input[type="password"],
.np-auth input[type="tel"],
.np-auth input[type="number"],
.np-auth select,
.np-auth textarea,
.np-auth .ur-frontend-field,
.np-auth .user-registration-Input,
.np-auth .user-registration-form__input {
	width: 100%;
	min-height: 46px;
	padding: 11px 13px;
	border: 1px solid var(--np-line);
	border-radius: 6px;
	background: #fff;
	color: var(--np-ink);
	font-size: 14px;
	line-height: 1.4;
	box-shadow: none;
	transition: .18s;
}

.np-auth input:focus,
.np-auth select:focus,
.np-auth textarea:focus,
.np-auth .ur-frontend-field:focus,
.np-auth .user-registration-Input:focus {
	outline: none;
	border-color: var(--np-blue);
	box-shadow: 0 0 0 3px rgba(17, 93, 214, .12);
}

.np-auth input::placeholder { color: #9fadbe; }

/* 复选框（Remember me / 条款）不参与整宽规则 */
.np-auth input[type="checkbox"],
.np-auth .user-registration-form__input-checkbox {
	width: 16px;
	height: 16px;
	min-height: 0;
	margin: 0 8px 0 0;
	padding: 0;
	accent-color: var(--np-blue);
	vertical-align: middle;
}

.np-auth .user-registration-form__label-for-checkbox,
.np-auth label.checkbox {
	display: flex;
	align-items: center;
	margin: 0;
	color: var(--np-muted);
	font-size: 13px;
	font-weight: 600;
}

/* ---------- 提交按钮 ---------- */
.np-auth .ur-button-container,
.np-auth .user-registration-before-login-btn { margin-top: 4px; }

.np-auth button[type="submit"],
.np-auth .ur-submit-button,
.np-auth .user-registration-Button,
.np-auth input[type="submit"] {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	padding: 0 24px;
	border: 1px solid var(--np-blue);
	border-radius: 6px;
	background: var(--np-blue);
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: .01em;
	box-shadow: 0 14px 30px rgba(17, 93, 214, .18);
	cursor: pointer;
	transition: .22s;
}

.np-auth button[type="submit"]:hover,
.np-auth .ur-submit-button:hover,
.np-auth .user-registration-Button:hover {
	background: var(--np-blue2);
	border-color: var(--np-blue2);
	transform: translateY(-2px);
}

/* ---------- 辅助链接 ---------- */
.np-auth .user-registration-LostPassword {
	margin: 16px 0 0;
	text-align: center;
	font-size: 13px;
}

.np-auth .user-registration-LostPassword a,
.np-auth a { color: var(--np-blue); font-weight: 700; }

.np-auth .user-registration-LostPassword a:hover { text-decoration: underline; }

/*
 * 登录表单自带一条「还没有账号？注册」链接，
 * 顶部已有切换标签，隐藏以免重复。
 */
.np-auth .user-registration-register { display: none; }

/* 记住我 + 忘记密码排成一行 */
.np-auth .user-registration-form-row--wide { margin-bottom: 16px; }

/* ---------- 提示 / 错误信息 ---------- */
.np-auth .user-registration-error,
.np-auth .user-registration-message,
.np-auth .user-registration-info,
.np-auth .ur-error,
.np-auth .ur-message {
	margin: 0 0 18px;
	padding: 13px 15px;
	border: 1px solid var(--np-line);
	border-left: 4px solid var(--np-blue);
	border-radius: 6px;
	background: #f6fbff;
	color: var(--np-ink);
	font-size: 13px;
	line-height: 1.55;
	list-style: none;
}

.np-auth .user-registration-error,
.np-auth .ur-error {
	border-left-color: #d3455b;
	background: #fdf3f4;
}

.np-auth .user-registration-message,
.np-auth .ur-message {
	border-left-color: var(--np-teal);
	background: #f2fbf7;
}

/* 密码强度提示 */
.np-auth .ur-registration-password-strength,
.np-auth .user-registration-password-strength {
	margin-top: 7px;
	padding: 7px 10px;
	border-radius: 5px;
	font-size: 12px;
}

/* 必填星号 */
.np-auth .required { color: #d3455b; text-decoration: none; }

@media (max-width: 620px) {
	.np-auth-band { padding: 32px 0 46px; }
	.np-auth-card { padding: 20px; }
	.np-auth-switch { margin-bottom: 20px; }
}

/* ============================================================
   28. 覆盖 user-registration 插件样式
   ------------------------------------------------------------
   插件用了极高特异性的选择器链（body.user-registration-page
   #user-registration:not(...) .ur-frontend-form .ur-form-row
   .ur-form-grid ... 八九层），常规选择器压不过，因此这一节
   对少数关键属性使用 !important。能用插件变量解决的（配色）
   一律走变量，不参与特异性竞争。
   ============================================================ */

/* 主色改成主题蓝 —— 按钮、链接、聚焦色一次到位 */
.np-auth,
.np-auth .user-registration,
.np-auth .ur-frontend-form {
	--ur-primary-color: var(--np-blue);
	--ur-primary-light: #e6f0fd;
	--ur-button-background-normal-color: var(--np-blue);
	--ur-button-background-hover-color: var(--np-blue2);
	--ur-button-text-normal-color: #fff;
	--ur-button-text-hover-color: #fff;
}

/* ---------- 标签：两套标记统一 ---------- */
.np-auth .ur-label,
.np-auth label.ur-label,
.np-auth legend.ur-label,
.np-auth .user-registration-form__label,
.np-auth .ur-form-grid label {
	display: block !important;
	margin-bottom: 7px !important;
	color: var(--np-ink) !important;
	font-size: 12.5px !important;
	font-weight: 800 !important;
	line-height: 1.4 !important;
	letter-spacing: .01em !important;
	text-transform: none !important;
}

/* 复选框标签不跟随上面的整块样式 */
.np-auth .user-registration-form__label-for-checkbox,
.np-auth label.checkbox {
	display: flex !important;
	align-items: center;
	margin-bottom: 0 !important;
	color: var(--np-muted) !important;
	font-size: 13px !important;
	font-weight: 600 !important;
}

/* ---------- 输入框：两套标记统一 ---------- */
.np-auth .ur-frontend-field,
.np-auth .user-registration-Input,
.np-auth .user-registration-form__input,
.np-auth .ur-form-grid input[type="text"],
.np-auth .ur-form-grid input[type="email"],
.np-auth .ur-form-grid input[type="password"] {
	width: 100% !important;
	min-height: 46px !important;
	padding: 11px 13px !important;
	border: 1px solid var(--np-line) !important;
	border-radius: 6px !important;
	background: #fff !important;
	color: var(--np-ink) !important;
	font-size: 14px !important;
	box-shadow: none !important;
}

.np-auth .ur-frontend-field:focus,
.np-auth .user-registration-Input:focus,
.np-auth .user-registration-form__input:focus {
	border-color: var(--np-blue) !important;
	box-shadow: 0 0 0 3px rgba(17, 93, 214, .12) !important;
}

.np-auth input[type="checkbox"] {
	width: 16px !important;
	height: 16px !important;
	min-height: 0 !important;
	padding: 0 !important;
	margin: 0 8px 0 0 !important;
	accent-color: var(--np-blue);
}

/* ---------- 提交按钮：整宽、主题蓝 ---------- */
.np-auth .ur-button-container,
.np-auth [data-field="login-button"] {
	display: block !important;
	width: 100% !important;
	margin-top: 6px !important;
	text-align: left !important;
}

/*
 * .user-registration-before-login-btn 是「Remember Me + 忘记密码」的容器，
 * 不是提交按钮容器 —— 它要横排成一行。
 */
.np-auth .user-registration-before-login-btn {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	margin: 0 0 18px !important;
}

.np-auth .user-registration-before-login-btn > div { margin: 0 !important; }

.np-auth .ur-submit-button,
.np-auth .user-registration-Button,
.np-auth button[type="submit"],
.np-auth .ur-form-grid button[type="submit"] {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100% !important;
	max-width: none !important;
	min-height: 48px !important;
	margin: 0 !important;
	padding: 0 24px !important;
	float: none !important;
	border: 1px solid var(--np-blue) !important;
	border-radius: 6px !important;
	background: var(--np-blue) !important;
	color: #fff !important;
	font-size: 14px !important;
	font-weight: 800 !important;
	box-shadow: 0 14px 30px rgba(17, 93, 214, .18);
}

.np-auth .ur-submit-button:hover,
.np-auth .user-registration-Button:hover,
.np-auth button[type="submit"]:hover {
	background: var(--np-blue2) !important;
	border-color: var(--np-blue2) !important;
}

/* ---------- 隐藏插件自带的注册链接（顶部已有切换标签） ---------- */
.np-auth .user-registration-register,
.np-auth .user-registration-register.register {
	display: none !important;
}

/* ---------- 记住我 / 忘记密码 一行 ---------- */
/*
 * 注意：--wide 出现在每一个字段行上，不是只有「记住我」那行。
 * 这里必须保持块级布局，否则标签会和输入框挤成左右两列。
 */
.np-auth .user-registration-form-row,
.np-auth .user-registration-form-row--wide {
	display: block !important;
	margin-bottom: 16px !important;
}

.np-auth .user-registration-LostPassword {
	margin: 0 !important;
	font-size: 13px;
	white-space: nowrap;
}

.np-auth .user-registration-LostPassword label { margin: 0 !important; }

/* 输入框外层包裹 span 需要占满宽度 */
.np-auth .input-wrapper,
.np-auth .password-input-group {
	display: block;
	width: 100%;
}

.np-auth .required { color: #d3455b !important; }

/* ============================================================
   29. 消除登录 / 注册切换时的页面抖动
   ------------------------------------------------------------
   两页字段数不同（登录 2 个、注册 4 个），高度差会让滚动条
   出现/消失，切换时页面横向跳动。这里预留滚动条宽度，
   并给卡片一个最小高度把两页拉平。
   ============================================================ */
html { scrollbar-gutter: stable; }

.np-auth-card { min-height: 430px; }

@media (max-width: 620px) {
	.np-auth-card { min-height: 0; }
}

/* ============================================================
   30. 商品卡「加入购物车」按钮
   ------------------------------------------------------------
   WooCommerce 的 product-button 区块结构：
     <div class="np-card-button">
       <button>Add to cart / N in cart</button>
       <span hidden><a class="added_to_cart">View cart</a></span>
     </div>
   早先的规则把 button 和 a 一起做成了按钮外观，而 <a> 外层的
   <span> 是行内元素，width:100% 参照它的收缩宽度 —— 于是
   「View cart」缩成了一个居中小方块。这里把两者分开处理。
   ============================================================ */
.np-catalog-grid .np-card-button {
	display: block;
	width: 100%;
	margin-top: 12px;
	text-align: left;
}

/* 外层 span 撑满，链接才能占满整行 */
.np-catalog-grid .np-card-button > span {
	display: block;
	width: 100%;
}

.np-catalog-grid .np-card-button > span[hidden] { display: none; }

/* ---------- 主按钮 ---------- */
.np-catalog-grid .np-card-button button,
.np-catalog-grid .np-card-button .wc-block-components-product-button__button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 42px;
	padding: 0 14px;
	border: 1px solid #bcd0ee;
	border-radius: 6px;
	background: #fff;
	color: var(--np-blue);
	font-size: 12.5px;
	font-weight: 900;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
	transition: .2s;
}

.np-catalog-grid .np-card-button button:hover,
.np-catalog-grid .np-card-button .wc-block-components-product-button__button:hover {
	background: var(--np-blue);
	border-color: var(--np-blue);
	color: #fff;
}

/* 已加入购物车：填充态，和默认态区分开 */
.np-catalog-grid .np-card-button button.added,
.np-catalog-grid .np-card-button button.loading {
	background: #eaf3ff;
	border-color: var(--np-blue);
	color: var(--np-blue);
}

/* 焦点框：换成主题色，避免浏览器默认的黑框 */
.np-catalog-grid .np-card-button button:focus {
	outline: none;
}

.np-catalog-grid .np-card-button button:focus-visible {
	outline: 2px solid var(--np-blue);
	outline-offset: 2px;
}

/* ---------- 「View cart」：次级文字链接，不做成按钮 ---------- */
.np-catalog-grid .np-card-button .added_to_cart,
.np-catalog-grid .np-card-button a.wc_forward {
	display: block;
	width: 100%;
	min-height: 0;
	margin-top: 8px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	color: var(--np-muted);
	font-size: 12px;
	font-weight: 700;
	text-align: center;
	transition: .2s;
}

.np-catalog-grid .np-card-button .added_to_cart::after { content: " →"; }

.np-catalog-grid .np-card-button .added_to_cart:hover,
.np-catalog-grid .np-card-button a.wc_forward:hover {
	background: none;
	color: var(--np-blue);
	text-decoration: underline;
}

/* 加载中的转圈不要撑高按钮 */
.np-catalog-grid .np-card-button .wc-block-components-spinner {
	width: 16px;
	height: 16px;
	position: static;
	margin-left: 6px;
}

/* ============================================================
   31. 加购按钮：锁死高度，消除加载时的抖动
   ------------------------------------------------------------
   WooCommerce 的按钮样式为 overflow:hidden + white-space:normal，
   且没有固定高度。数量变多后文案变长（"32 in cart" 比 "Add to cart"
   更宽），换行导致按钮长高，把下方的 View cart 顶出卡片被裁掉。
   另外该区块在页面加载后才用客户端状态同步真实购物车数量，
   并带 slideIn/slideOut 动画，于是出现「先显示 1、再跳到几十」
   并伴随高度抖动。这里锁定高度、禁止换行、去掉动画。
   ============================================================ */
.np-catalog-grid .np-card-button button,
.np-catalog-grid .np-card-button .wc-block-components-product-button__button {
	height: 42px;
	min-height: 42px;
	max-height: 42px;
	overflow: hidden;
	line-height: 1.2;
	white-space: nowrap;
	text-overflow: ellipsis;
}

/* 关掉文字切换动画：动画期间新旧两段文案会同时存在，正是抖动来源 */
.np-catalog-grid .np-card-button .wc-block-slide-in,
.np-catalog-grid .np-card-button .wc-block-slide-out {
	animation: none !important;
	transform: none !important;
	opacity: 1 !important;
}

/*
 * 预留 View cart 那一行的高度：
 * 42（按钮）+ 8（间距）+ 18（链接）= 68
 * 这样链接出现/消失时卡片高度不变，也就不会被 overflow:hidden 裁掉。
 */
.np-catalog-grid .np-card-button {
	min-height: 68px;
}

/* 骨架占位态同样锁高，避免首屏闪动 */
.np-catalog-grid .np-card-button .wc-block-components-product-button__button--placeholder {
	height: 42px;
	min-height: 42px;
}


/* ============================================================
   32. 商品卡数量步进器（自定义区块 kiosko-child/cart-stepper）
   ------------------------------------------------------------
   未加入购物车 → 显示「Add to cart」
   已加入       → 显示 [ −  数量  + ]，减到 0 自动移除
   数量由 JS 在页面加载后经 Store API 拉取填充，
   因此首屏先显示 Add to cart，属预期行为（整页缓存所致）。
   ============================================================ */
.np-catalog-grid .np-qty {
	display: block;
	width: 100%;
	margin-top: 12px;
	min-height: 68px;   /* 预留 View cart 行，避免卡片高度跳动 */
}

/* ---------- 加入购物车按钮 ---------- */
.np-catalog-grid .np-qty-add {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 42px;
	padding: 0 12px;
	border: 1px solid #bcd0ee;
	border-radius: 6px;
	background: #fff;
	color: var(--np-blue);
	font-size: 12.5px;
	font-weight: 900;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
	transition: .2s;
}

.np-catalog-grid .np-qty-add:hover {
	background: var(--np-blue);
	border-color: var(--np-blue);
	color: #fff;
}

.np-catalog-grid .np-qty-add:focus { outline: none; }
.np-catalog-grid .np-qty-add:focus-visible {
	outline: 2px solid var(--np-blue);
	outline-offset: 2px;
}

/* ---------- 步进器 ---------- */
.np-catalog-grid .np-qty-stepper {
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr) 42px;
	align-items: stretch;
	width: 100%;
	height: 42px;
	border: 1px solid var(--np-blue);
	border-radius: 6px;
	background: #fff;
	overflow: hidden;
}

/*
 * hidden 属性依赖浏览器默认样式的 display:none，
 * 而上面给这些元素显式写了 display，作者样式优先级更高会把它压掉。
 * 这里统一兜底，确保 JS 切换 hidden 时真的能隐藏。
 */
.np-catalog-grid .np-qty [hidden],
.np-catalog-grid .np-qty-add[hidden],
.np-catalog-grid .np-qty-stepper[hidden],
.np-catalog-grid .np-qty-view[hidden] {
	display: none !important;
}

.np-catalog-grid .np-qty-btn {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: #eaf3ff;
	color: var(--np-blue);
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	transition: .15s;
}

.np-catalog-grid .np-qty-btn:hover:not(:disabled) {
	background: var(--np-blue);
	color: #fff;
}

.np-catalog-grid .np-qty-btn:disabled {
	opacity: .35;
	cursor: not-allowed;
}

.np-catalog-grid .np-qty-btn:focus { outline: none; }
.np-catalog-grid .np-qty-btn:focus-visible {
	outline: 2px solid var(--np-blue);
	outline-offset: -2px;
}

.np-catalog-grid .np-qty-value {
	display: grid;
	place-items: center;
	font-size: 14px;
	font-weight: 900;
	color: var(--np-ink);
	font-variant-numeric: tabular-nums;
}

/* 请求进行中：整体变淡并禁止连点 */
.np-catalog-grid .np-qty.is-busy {
	opacity: .55;
	pointer-events: none;
}

/* ---------- View cart ---------- */
.np-catalog-grid .np-qty-view {
	display: block;
	width: 100%;
	margin-top: 8px;
	color: var(--np-muted);
	font-size: 12px;
	font-weight: 700;
	text-align: center;
	transition: .2s;
}

.np-catalog-grid .np-qty-view[hidden] { display: none; }
.np-catalog-grid .np-qty-view::after { content: " →"; }
.np-catalog-grid .np-qty-view:hover { color: var(--np-blue); text-decoration: underline; }

/* 需要先选规格的商品，按钮是个链接 */
.np-catalog-grid .np-qty--link .np-qty-add { text-decoration: none; }

@media (max-width: 620px) {
	.np-catalog-grid .np-qty { min-height: 60px; }
	.np-catalog-grid .np-qty-add,
	.np-catalog-grid .np-qty-stepper { height: 38px; }
	.np-catalog-grid .np-qty-add { font-size: 11.5px; }
	.np-catalog-grid .np-qty-stepper { grid-template-columns: 36px minmax(0, 1fr) 36px; }
}

/* ============================================================
   33. 购物车页 / 结算页的购物车图标
   ------------------------------------------------------------
   WooCommerce 在这两个页面把迷你购物车渲染成 visibility:hidden
   的禁用按钮（并且不加载它的脚本），页头右侧因此空出一块。
   这里把那个占位彻底收掉，改用 np-cart-link 图案输出的普通链接。
   ============================================================ */
.np-header .wc-block-mini-cart[aria-hidden="true"] {
	display: none !important;
}

.np-cart-link a {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 6px;
	color: var(--np-ink);
	transition: .2s;
}

.np-cart-link a:hover {
	color: var(--np-blue);
	background: var(--np-soft);
}

.np-cart-link svg {
	display: block;
	width: 22px;
	height: 22px;
	fill: currentColor;
}

.np-cart-link .np-cart-count {
	position: absolute;
	top: -2px;
	right: -2px;
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	display: grid;
	place-items: center;
	border-radius: 999px;
	background: var(--np-blue);
	color: #fff;
	font-size: 10px;
	font-weight: 900;
	line-height: 1;
}

.np-cart-link .np-cart-count[hidden] { display: none !important; }

/* ============================================================
   34. 商品详情页：规格选择 + 数量 + 加购
   ------------------------------------------------------------
   用 WooCommerce 的 add-to-cart-with-options 区块，可变商品会
   自动渲染 product-filter-chips 作为规格按钮。
   配色走它自己的 CSS 变量（官方扩展点），尺寸/圆角再用规则覆盖。
   ============================================================ */
.np-detail-atc {
	margin: 22px 0 0;
	padding: 20px 0 0;
	border-top: 1px solid var(--np-line);

	--wc-product-filter-chips-text: var(--np-ink);
	--wc-product-filter-chips-background: #fff;
	--wc-product-filter-chips-border: var(--np-line);
	--wc-product-filter-chips-selected-background: var(--np-ink);
	--wc-product-filter-chips-selected-border: var(--np-ink);
	--wc-product-filter-chips-selected-text: #fff;
}

/* ---------- 规格名（Content） ---------- */
.np-detail-atc .wp-block-woocommerce-add-to-cart-with-options-variation-selector-attribute-name {
	display: block;
	margin-bottom: 10px;
	color: var(--np-ink);
	font-size: 13px;
	font-weight: 900;
	letter-spacing: .01em;
}

/* ---------- 规格按钮 ---------- */
.np-detail-atc .wc-block-product-filter-chips__items {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.np-detail-atc .wc-block-product-filter-chips__item {
	min-height: 46px;
	padding: 0 18px;
	border: 1px solid var(--np-line);
	border-radius: 6px;
	background: #fff;
	color: var(--np-ink);
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	transition: background-color .18s, border-color .18s, color .18s;
}

.np-detail-atc .wc-block-product-filter-chips__item:hover {
	border-color: var(--np-ink);
}

/*
 * 选中态只改颜色，绝不改 font-weight / padding / border-width。
 * 字重从 700 变 800 会让文字变宽 → 按钮变宽 → 整行重排，
 * 切换规格时相邻按钮就会抖动。
 */
.np-detail-atc .wc-block-product-filter-chips__item[aria-checked="true"] {
	background: var(--np-ink);
	border-color: var(--np-ink);
	color: #fff;
}

.np-detail-atc .wc-block-product-filter-chips__item:focus { outline: none; }

.np-detail-atc .wc-block-product-filter-chips__item:focus-visible {
	outline: 2px solid var(--np-blue);
	outline-offset: 2px;
}

/* 缺货/不可选的组合 */
.np-detail-atc .wc-block-product-filter-chips__item:disabled,
.np-detail-atc .wc-block-product-filter-chips__item[aria-disabled="true"] {
	opacity: .35;
	cursor: not-allowed;
	text-decoration: line-through;
}

/* ---------- 库存与规格描述 ---------- */
.np-detail-atc .wc-block-components-product-stock-indicator {
	margin: 16px 0 !important;
	color: var(--np-teal);
	font-size: 12px;
	font-weight: 800;
}

.np-detail-atc .wc-block-components-product-stock-indicator--low-stock,
.np-detail-atc .wc-block-components-product-stock-indicator--out-of-stock {
	color: #d3455b;
}

.np-detail-atc .wp-block-woocommerce-add-to-cart-with-options-variation-description {
	color: var(--np-muted);
	font-size: 13px;
	line-height: 1.6;
}

/* ---------- 数量步进器 ---------- */
.np-detail-atc .wc-block-components-quantity-selector {
	display: grid !important;
	grid-template-columns: 46px minmax(0, 1fr) 46px;
	align-items: stretch;
	width: 148px !important;
	height: 50px;
	margin: 0 !important;
	border: 1px solid var(--np-line);
	border-radius: 6px;
	background: #fff;
	overflow: hidden;
}

.np-detail-atc .wc-block-components-quantity-selector::after { display: none !important; }

.np-detail-atc .wc-block-components-quantity-selector__input {
	grid-column: 2;
	grid-row: 1;
	width: 100% !important;
	height: 100%;
	min-height: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	color: var(--np-ink) !important;
	font-size: 15px !important;
	font-weight: 800;
	text-align: center;
	box-shadow: none !important;
	-moz-appearance: textfield;
	appearance: textfield;
}

.np-detail-atc .wc-block-components-quantity-selector__input::-webkit-outer-spin-button,
.np-detail-atc .wc-block-components-quantity-selector__input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.np-detail-atc .wc-block-components-quantity-selector__button {
	display: grid;
	place-items: center;
	grid-row: 1;
	width: 100%;
	height: 100%;
	min-height: 0;
	padding: 0;
	border: 0;
	background: var(--np-soft);
	color: var(--np-ink);
	font-size: 19px;
	font-weight: 700;
	cursor: pointer;
	transition: .15s;
}

.np-detail-atc .wc-block-components-quantity-selector__button--minus { grid-column: 1; }
.np-detail-atc .wc-block-components-quantity-selector__button--plus  { grid-column: 3; }

.np-detail-atc .wc-block-components-quantity-selector__button:hover:not(:disabled) {
	background: var(--np-blue);
	color: #fff;
}

.np-detail-atc .wc-block-components-quantity-selector__button:disabled { opacity: .35; cursor: not-allowed; }

/* ---------- 加入购物车 ---------- */
.np-detail-atc .wp-block-group {
	display: flex !important;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 12px !important;
	margin-top: 4px;
}

.np-detail-atc .wc-block-components-product-button {
	flex: 1 1 200px;
	margin: 0 !important;
}

.np-detail-atc .wc-block-components-product-button__button {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100% !important;
	height: 50px;
	min-height: 50px;
	padding: 0 28px;
	border: 1px solid var(--np-blue) !important;
	border-radius: 6px;
	background: var(--np-blue);
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	white-space: nowrap;
	box-shadow: 0 14px 30px rgba(17, 93, 214, .18);
	transition: .22s;
}

.np-detail-atc .wc-block-components-product-button__button:hover {
	background: var(--np-blue2);
	border-color: var(--np-blue2) !important;
	transform: translateY(-2px);
}

.np-detail-atc .wc-block-components-product-button__button:disabled {
	opacity: .5;
	transform: none;
	box-shadow: none;
	cursor: not-allowed;
}

.np-detail-atc .added_to_cart {
	display: block;
	width: 100%;
	margin-top: 10px;
	color: var(--np-muted);
	font-size: 13px;
	font-weight: 700;
}

.np-detail-atc .added_to_cart::after { content: " →"; }
.np-detail-atc .added_to_cart:hover { color: var(--np-blue); text-decoration: underline; }

@media (max-width: 620px) {
	.np-detail-atc .wc-block-components-quantity-selector { width: 100% !important; }
	.np-detail-atc .wc-block-components-product-button { flex: 1 1 100%; }
	.np-detail-atc .wc-block-product-filter-chips__item { min-height: 42px; padding: 0 14px; font-size: 12.5px; }
}

/* ============================================================
   35. box-sizing 兜底
   ------------------------------------------------------------
   本站（父主题、子主题、WordPress 核心）都没有设全局
   box-sizing: border-box。凡是写了 width:100% 又带 padding
   或 border 的元素，实际宽度会超出容器 —— 商品卡的
   「Select options」按钮就是 100% + 24px padding + 2px 边框，
   溢出后被卡片的 overflow:hidden 裁掉。
   这里只对本主题自有组件设为 border-box，不做全局 * 覆盖，
   以免影响父主题按 content-box 写好的排版。
   ============================================================ */
.np-qty,
.np-qty-add,
.np-qty-stepper,
.np-qty-btn,
.np-qty-value,
.np-qty-view,
.np-cart-link a,
.np-account-link a,
.np-catalog-grid .np-card-button,
.np-catalog-grid .np-card-button button,
.np-catalog-grid .np-card-button .added_to_cart,
.np-catalog-grid .wc-block-components-product-button__button,
.np-detail-atc .wc-block-product-filter-chips__item,
.np-detail-atc .wc-block-components-quantity-selector,
.np-detail-atc .wc-block-components-quantity-selector__input,
.np-detail-atc .wc-block-components-quantity-selector__button,
.np-detail-atc .wc-block-components-product-button__button,
.np-detail-info .quantity input[type="number"],
.np-detail-info .single_add_to_cart_button,
.np-auth input,
.np-auth select,
.np-auth textarea,
.np-auth button,
.np-auth .ur-frontend-field,
.np-auth .user-registration-Input,
.np-auth .user-registration-form__input,
.np-auth .ur-submit-button,
.np-auth .user-registration-Button,
.np-filter-search input[type="search"],
.np-filter-help .np-btn,
.np-search-form .wp-block-search__input,
.np-search-form .wp-block-search__button,
.np-page .woocommerce input[type="text"],
.np-page .woocommerce input[type="email"],
.np-page .woocommerce input[type="tel"],
.np-page .woocommerce input[type="password"],
.np-page .woocommerce select,
.np-page .woocommerce textarea,
.np-page .woocommerce .button,
.np-page .woocommerce button[type="submit"],
.np-product-card img,
.np-product-card > .np-product-link,
.np-product-card section,
.np-catalog-grid > li,
.np-catalog-grid .wp-block-button__link,
.np-catalog-grid .wc-block-components-product-image img,
.np-catalog-grid .wp-block-woocommerce-product-image img,
.np-post-grid > li,
.np-page .woocommerce table.shop_table,
.np-proof-list li,
.np-category-card,
.np-quality-item,
.np-review-card,
.np-support-inner,
.np-auth-card,
.np-filter-help,
.np-pagination .page-numbers,
.np-pagination .wp-block-query-pagination-previous,
.np-pagination .wp-block-query-pagination-next {
	box-sizing: border-box;
}

/* ============================================================
   36. COA 报告库
   ============================================================ */
.np-coa { margin-top: 8px; }

/* ---------- 检索 ---------- */
.np-coa-search { position: relative; max-width: 620px; }

.np-coa-input {
	width: 100%;
	min-height: 52px;
	padding: 0 16px;
	border: 1px solid var(--np-line);
	border-radius: 8px;
	background: #fff;
	color: var(--np-ink);
	font-size: 15px;
	box-sizing: border-box;
	transition: .18s;
}

.np-coa-input:focus {
	outline: none;
	border-color: var(--np-blue);
	box-shadow: 0 0 0 3px rgba(17, 93, 214, .12);
}

.np-coa-clear {
	position: absolute;
	right: 10px;
	top: 10px;
	min-height: 32px;
	padding: 0 12px;
	border: 1px solid var(--np-line);
	border-radius: 6px;
	background: #fff;
	color: var(--np-muted);
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	box-sizing: border-box;
}

.np-coa-clear:hover { color: var(--np-blue); border-color: var(--np-blue); }
.np-coa-clear[hidden] { display: none !important; }

.np-coa-tip {
	margin: 10px 0 0;
	color: var(--np-muted);
	font-size: 12.5px;
}

/* ---------- 分类标签 ---------- */
.np-coa-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 24px 0 18px;
}

.np-coa-tab {
	min-height: 38px;
	padding: 0 16px;
	border: 1px solid var(--np-line);
	border-radius: 999px;
	background: #fff;
	color: var(--np-muted);
	font-size: 12.5px;
	font-weight: 800;
	cursor: pointer;
	box-sizing: border-box;
	transition: .18s;
}

.np-coa-tab:hover { border-color: var(--np-ink); color: var(--np-ink); }

.np-coa-tab.is-active {
	background: var(--np-ink);
	border-color: var(--np-ink);
	color: #fff;
}

/* ---------- 报告表 ---------- */
.np-coa-table-wrap {
	margin-top: 18px;
	border: 1px solid var(--np-line);
	border-radius: var(--np-radius);
	background: #fff;
	box-shadow: var(--np-shadow);
	overflow: hidden;
}

.np-coa-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13.5px;
}

.np-coa-table th {
	padding: 13px 16px;
	background: var(--np-soft);
	color: var(--np-muted);
	font-size: 11px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: .06em;
	text-align: left;
	white-space: nowrap;
}

.np-coa-table td {
	padding: 14px 16px;
	border-top: 1px solid var(--np-line);
	vertical-align: middle;
	color: var(--np-ink);
}

.np-coa-row[hidden] { display: none !important; }

.np-coa-cat {
	display: block;
	margin-bottom: 3px;
	color: var(--np-teal);
	font-size: 10.5px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: .08em;
}

.np-coa-product { color: var(--np-ink); font-weight: 800; }
a.np-coa-product:hover { color: var(--np-blue); }

.np-coa-lot {
	padding: 3px 8px;
	border-radius: 4px;
	background: var(--np-soft);
	color: var(--np-ink);
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 12px;
	font-weight: 700;
}

.np-coa-actions { text-align: right; white-space: nowrap; }

.np-coa-view {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 0 16px;
	border: 1px solid #bcd0ee;
	border-radius: 6px;
	background: #fff;
	color: var(--np-blue);
	font-size: 12px;
	font-weight: 900;
	box-sizing: border-box;
	transition: .18s;
}

.np-coa-view:hover { background: var(--np-blue); border-color: var(--np-blue); color: #fff; }

.np-coa-empty,
.np-coa-noresult {
	margin: 22px 0 0;
	padding: 34px 20px;
	border: 1px dashed var(--np-line);
	border-radius: var(--np-radius);
	text-align: center;
	color: var(--np-muted);
	font-size: 14px;
}

.np-coa-noresult[hidden] { display: none !important; }

/* ---------- PDF 弹窗 ---------- */
.np-coa-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	place-items: center;
	padding: 24px;
	background: rgba(7, 17, 34, .74);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.np-coa-modal[hidden] { display: none !important; }

.np-coa-modal-sheet {
	display: flex;
	flex-direction: column;
	width: min(1000px, 100%);
	height: min(88vh, 900px);
	border-radius: var(--np-radius);
	background: #fff;
	overflow: hidden;
	box-shadow: 0 28px 90px rgba(0, 0, 0, .36);
}

.np-coa-modal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 14px 18px;
	border-bottom: 1px solid var(--np-line);
}

.np-coa-modal-title { display: block; font-size: 15px; letter-spacing: -.02em; }

.np-coa-modal-lot {
	display: block;
	margin-top: 2px;
	color: var(--np-muted);
	font-size: 12px;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.np-coa-modal-tools { display: flex; align-items: center; gap: 10px; }

.np-coa-modal-dl {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 0 14px;
	border: 1px solid var(--np-blue);
	border-radius: 6px;
	background: var(--np-blue);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	box-sizing: border-box;
}

.np-coa-modal-dl:hover { background: var(--np-blue2); color: #fff; }

.np-coa-modal-close {
	width: 36px;
	height: 36px;
	border: 1px solid var(--np-line);
	border-radius: 6px;
	background: #fff;
	color: var(--np-ink);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	box-sizing: border-box;
}

.np-coa-modal-close:hover { border-color: var(--np-ink); }

.np-coa-modal-body { flex: 1 1 auto; min-height: 0; background: var(--np-soft); }
.np-coa-modal-body iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- 手机端：表格改成卡片 ---------- */
@media (max-width: 720px) {
	.np-coa-table-wrap { border: 0; box-shadow: none; background: none; overflow: visible; }
	.np-coa-table, .np-coa-table tbody, .np-coa-table tr, .np-coa-table td { display: block; width: 100%; }
	.np-coa-table thead { display: none; }

	.np-coa-table tr {
		margin-bottom: 12px;
		padding: 14px;
		border: 1px solid var(--np-line);
		border-radius: var(--np-radius);
		background: #fff;
		box-shadow: var(--np-shadow);
		box-sizing: border-box;
	}

	.np-coa-table td { padding: 4px 0; border: 0; }

	.np-coa-table td[data-label]:not(:first-child)::before {
		content: attr(data-label) ": ";
		color: var(--np-muted);
		font-size: 11px;
		font-weight: 800;
		text-transform: uppercase;
		letter-spacing: .06em;
	}

	.np-coa-actions { text-align: left; margin-top: 10px; }
	.np-coa-view { width: 100%; }

	.np-coa-modal { padding: 0; }
	.np-coa-modal-sheet { width: 100%; height: 100%; border-radius: 0; }
}

/* ============================================================
   37. 解除 WooCommerce 对 <main> 的限宽
   ------------------------------------------------------------
   WooCommerce 的区块主题兼容样式里有：
     .woocommerce-page main            { max-width: calc(1000px + 根左右padding); margin: auto }
     .woocommerce.woocommerce-page main{ max-width: calc(wide-size + 根左右padding) }
   本站代入后是 1200 + 28 + 28 = 1256px，于是商店、商品详情、购物车、
   结算、账户这些页面的 <main> 被限宽并居中，满宽区段（页头色带、
   分区背景）比 /coa/、/about/ 等普通页面窄一圈。

   本主题的版心由 .np-container 统一控制（min(1240px, 100% - 48px)），
   main 应当保持满宽，因此这里解除限制。
   ============================================================ */
.woocommerce-page main,
.woocommerce.woocommerce-page main,
body.woocommerce-page main.np-storefront {
	max-width: none;
	margin-left: 0;
	margin-right: 0;
}

/* ============================================================
   38. About 页面（仿 novapureshop.com/about）
   ------------------------------------------------------------
   内容用核心区块写在页面里，可在区块编辑器直接改文字。
   这里只负责版式。
   ============================================================ */
.np-about .np-eyebrow {
	display: block;
	margin: 0 0 18px;
	color: var(--np-blue);
	font-size: 12px;
	font-weight: 900;
	letter-spacing: .14em;
	text-transform: uppercase;
}

/* ---------- Hero ---------- */
.np-about-hero {
	position: relative;
	padding: 74px 0 68px;
	background: linear-gradient(118deg, #fff, #f8fbff 48%, #eaf6ff);
	border-bottom: 1px solid var(--np-line);
	overflow: hidden;
}

.np-about-hero::before {
	content: "";
	position: absolute;
	right: -9%;
	top: -30%;
	width: 560px;
	height: 560px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(18, 98, 227, .14), rgba(18, 98, 227, 0) 66%);
	pointer-events: none;
}

.np-about-hero-grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
	gap: 62px;
	align-items: center;
}

.np-about-hero-copy h1 {
	max-width: 610px;
	margin: 0;
	font-size: clamp(32px, 4.8vw, 64px);
	line-height: 1;
	letter-spacing: -.055em;
	color: var(--np-ink);
}

.np-about-hero-copy > p:not(.np-eyebrow) {
	max-width: 530px;
	margin: 28px 0 0;
	color: #2c3d58;
	font-size: 18px;
	line-height: 1.68;
}

.np-about-hero-actions { margin-top: 30px; gap: 12px; }

.np-about-hero-media {
	position: relative;
	border-radius: var(--np-radius);
	overflow: hidden;
	background: #dfeaf3;
	box-shadow: 0 28px 80px rgba(7, 31, 70, .16);
}

.np-about-hero-media figure { margin: 0; }
.np-about-hero-media img { display: block; width: 100%; height: auto; }

.np-about-hero-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(255,255,255,.12), rgba(255,255,255,0) 35%, rgba(7,23,45,.10)),
	            linear-gradient(180deg, rgba(255,255,255,0), rgba(7,23,45,.22));
	pointer-events: none;
}

/* ---------- 三条要点 ---------- */
.np-about-proof {
	position: relative;
	z-index: 2;
	margin-top: -34px;
}

.np-about-proof-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}

.np-about-proof-item {
	display: flex;
	align-items: center;
	gap: 18px;
	min-height: 86px;
	padding: 22px 24px;
	border: 1px solid var(--np-line);
	border-radius: var(--np-radius);
	background: #fff;
	box-shadow: 0 18px 48px rgba(7, 31, 70, .08);
	box-sizing: border-box;
}

.np-about-proof-num {
	margin: 0;
	color: var(--np-blue);
	font-size: 26px;
	font-weight: 800;
	letter-spacing: -.04em;
}

.np-about-proof-label {
	margin: 0;
	color: #28384f;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.35;
}

/* ---------- 定位 ---------- */
.np-about-story { padding: 88px 0 58px; background: #fff; }

.np-about-story-grid {
	display: grid;
	grid-template-columns: minmax(300px, .84fr) minmax(0, 1.16fr);
	gap: 78px;
	align-items: start;
}

.np-about-story-grid h2 {
	margin: 0;
	font-size: clamp(24px, 2.6vw, 36px);
	line-height: 1.08;
	letter-spacing: -.04em;
	color: var(--np-ink);
}

.np-about-story-grid p {
	margin: 0;
	color: var(--np-muted);
	font-size: 17px;
	line-height: 1.78;
}

.np-about-story-grid p + p { margin-top: 22px; }

/* ---------- 价值主张 ---------- */
.np-about-values { padding: 0 0 78px; background: #fff; }

.np-about-values-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}

.np-about-value {
	min-height: 255px;
	padding: 30px;
	border: 1px solid var(--np-line);
	border-radius: var(--np-radius);
	background: linear-gradient(180deg, #fff, #f9fcff);
	box-shadow: 0 16px 40px rgba(7, 31, 70, .05);
	box-sizing: border-box;
}

.np-about-value-num {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	margin: 0 0 38px;
	border-radius: 50%;
	background: #edf6ff;
	color: var(--np-blue);
	font-size: 12px;
	font-weight: 900;
}

.np-about-value h3 {
	margin: 0 0 13px;
	font-size: 23px;
	letter-spacing: -.04em;
	color: var(--np-ink);
}

.np-about-value p {
	margin: 0;
	color: var(--np-muted);
	font-size: 14px;
	line-height: 1.65;
}

/* ---------- 工作方式（深色） ---------- */
.np-about-process {
	padding: 72px 0;
	background: linear-gradient(115deg, #071f46, #0b356f);
	color: #fff;
}

.np-about-process-inner {
	display: grid;
	grid-template-columns: minmax(300px, .85fr) minmax(0, 1.15fr);
	gap: 62px;
	align-items: start;
}

.np-about-process .np-eyebrow { color: #7fb4ff; }

.np-about-process-copy h2 {
	margin: 0;
	font-size: clamp(30px, 4.5vw, 64px);
	line-height: 1;
	letter-spacing: -.06em;
	color: #fff;
}

.np-about-process-list { display: grid; gap: 12px; }

.np-about-step {
	display: grid;
	grid-template-columns: 54px 1fr;
	gap: 18px;
	align-items: start;
	padding: 20px;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: var(--np-radius);
	background: rgba(255, 255, 255, .08);
	box-sizing: border-box;
}

.np-about-step-num {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .14);
	color: #9ec4ff;
	font-size: 12px;
	font-weight: 900;
}

.np-about-step p {
	margin: 0;
	color: #d9e7f8;
	font-size: 15px;
	line-height: 1.6;
}

/* ---------- 结尾行动条 ---------- */
.np-about-closing { padding: 76px 0 88px; background: #fff; }

.np-about-closing-inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 520px) auto;
	gap: 34px;
	align-items: center;
	padding: 34px;
	border: 1px solid #cde3d8;
	border-radius: var(--np-radius);
	background: linear-gradient(90deg, #f4fcf8, #eef7ff);
	box-sizing: border-box;
}

.np-about-closing-inner h2 {
	margin: 0;
	font-size: clamp(24px, 2.6vw, 32px);
	line-height: 1.06;
	letter-spacing: -.05em;
	color: var(--np-ink);
}

.np-about-closing-inner p {
	margin: 0;
	color: var(--np-muted);
	font-size: 14px;
	line-height: 1.65;
}

.np-btn-dark .wp-block-button__link {
	background: var(--np-ink);
	border-color: var(--np-ink);
	color: #fff;
	white-space: nowrap;
}

.np-btn-dark .wp-block-button__link:hover { background: #0f2444; border-color: #0f2444; }

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
	.np-about-hero-grid,
	.np-about-story-grid,
	.np-about-process-inner { grid-template-columns: 1fr; gap: 34px; }

	.np-about-proof-grid,
	.np-about-values-grid { grid-template-columns: 1fr; }

	.np-about-closing-inner { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
	.np-about-hero { padding: 44px 0 40px; }
	.np-about-story { padding: 48px 0 32px; }
	.np-about-values { padding-bottom: 48px; }
	.np-about-process { padding: 48px 0; }
	.np-about-closing { padding: 44px 0 56px; }
	.np-about-value { min-height: 0; padding: 22px; }
	.np-about-closing-inner { padding: 22px; }
	.np-about-hero-actions .wp-block-button { flex: 1 1 100%; }
	.np-about-hero-actions .wp-block-button__link { width: 100%; }
}

/*
 * WordPress 会给流式布局容器的子元素加 margin-block-start（区块间距）。
 * 这些容器被我改成了 grid，那个外边距会把第 2 个及之后的网格项往下推，
 * 造成卡片高低不齐。这里在网格内统一清零，间距交给 gap 控制。
 */
.np-about-hero-grid > *,
.np-about-proof-grid > *,
.np-about-story-grid > *,
.np-about-values-grid > *,
.np-about-process-inner > *,
.np-about-process-list > *,
.np-about-closing-inner > * {
	margin-block-start: 0;
	margin-block-end: 0;
}

/* 区块按钮的 wrapper 不参与视觉，只做布局 */
.wp-block-button.np-btn,
.wp-block-button.np-btn-primary,
.wp-block-button.np-btn-dark {
	border: 0;
	background: none;
	box-shadow: none;
	padding: 0;
	min-height: 0;
	border-radius: 0;
}

/* ============================================================
   39. 物流查询（17TRACK）
   ============================================================ */
.np-track { margin-top: 8px; }

.np-track-form {
	display: flex;
	gap: 10px;
	max-width: 620px;
}

.np-track-input {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 52px;
	padding: 0 16px;
	border: 1px solid var(--np-line);
	border-radius: 8px;
	background: #fff;
	color: var(--np-ink);
	font-size: 15px;
	box-sizing: border-box;
	transition: .18s;
}

.np-track-input:focus {
	outline: none;
	border-color: var(--np-blue);
	box-shadow: 0 0 0 3px rgba(17, 93, 214, .12);
}

.np-track-btn {
	flex: 0 0 auto;
	min-height: 52px;
	padding: 0 30px;
	border: 1px solid var(--np-blue);
	border-radius: 8px;
	background: var(--np-blue);
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	cursor: pointer;
	box-shadow: 0 14px 30px rgba(17, 93, 214, .18);
	box-sizing: border-box;
	transition: .22s;
}

.np-track-btn:hover { background: var(--np-blue2); border-color: var(--np-blue2); transform: translateY(-2px); }

.np-track-tip {
	max-width: 620px;
	margin: 12px 0 0;
	color: var(--np-muted);
	font-size: 12.5px;
	line-height: 1.6;
}

/*
 * 不要给容器 overflow: hidden —— 17TRACK 的 iframe 高度是固定值，
 * 一裁剪就把结果底部（承运商信息、操作链接）切掉。
 */
.np-track-result {
	margin-top: 26px;
	border: 1px solid var(--np-line);
	border-radius: var(--np-radius);
	background: #fff;
	box-shadow: var(--np-shadow);
	overflow: visible;
}

.np-track-result[hidden] { display: none !important; }

.np-track-result #YQContainer {
	min-height: 320px;
	border-radius: var(--np-radius);
	overflow: hidden;   /* 只给圆角用，不限制高度 */
}

.np-track-result #YQContainer iframe {
	display: block;
	width: 100% !important;
	border: 0;
}

.np-track-empty {
	margin: 26px 0 0;
	padding: 34px 20px;
	border: 1px dashed var(--np-line);
	border-radius: var(--np-radius);
	text-align: center;
	color: var(--np-muted);
	font-size: 14px;
}

.np-track-empty[hidden] { display: none !important; }

/* 加载中 */
.np-track.is-loading .np-track-result::before {
	content: "";
	display: block;
	height: 3px;
	background: linear-gradient(90deg, var(--np-blue), #7fb4ff, var(--np-blue));
	background-size: 200% 100%;
	animation: np-track-bar 1.1s linear infinite;
}

@keyframes np-track-bar {
	from { background-position: 0 0; }
	to   { background-position: 200% 0; }
}

@media (max-width: 620px) {
	.np-track-form { flex-direction: column; }
	.np-track-btn { width: 100%; }
}

/* 17TRACK 组件加载失败时的就地提示 */
.np-track-fallback {
	padding: 30px 24px;
	text-align: center;
}

.np-track-fallback p {
	margin: 0 0 16px;
	color: var(--np-muted);
	font-size: 14px;
	line-height: 1.6;
}

.np-track-fallback .np-track-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

/* ---------- 物流查询：手机端 ---------- */
@media (max-width: 820px) {
	.np-track-form { flex-direction: column; }
	.np-track-input,
	.np-track-btn { width: 100%; }
	.np-track-btn { padding: 0 20px; }
	.np-track-tip { max-width: none; font-size: 12px; }

	.np-track-result {
		margin-top: 20px;
		border-radius: var(--np-radius);
	}

	/* 组件内部是定宽表格，窄屏下允许横向滚动而不是被裁掉 */
	.np-track-result #YQContainer { overflow-x: auto; -webkit-overflow-scrolling: touch; }

	.np-track-empty { padding: 26px 16px; font-size: 13px; }
	.np-track-fallback { padding: 24px 16px; }
	.np-track-fallback .np-track-btn { width: 100%; }
}

/* ============================================================
   40. 右下角悬浮联系按钮
   ------------------------------------------------------------
   容器 pointer-events: none，只有按钮本身可点，
   这样它下面的页面内容仍然可以正常选中和点击。
   ============================================================ */
.np-contact-float {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 9990;   /* 低于抽屉/弹窗的 100000，不会挡住它们 */
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
	pointer-events: none;
}

.np-float {
	pointer-events: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	min-width: 154px;
	min-height: 52px;
	padding: 12px 14px 12px 18px;
	border-radius: 999px;
	color: #fff;
	font-size: 13px;
	font-weight: 800;
	line-height: 1;
	text-decoration: none;
	box-shadow: 0 14px 34px rgba(20, 31, 45, .24);
	box-sizing: border-box;
	transition: .22s;
}

.np-float:hover {
	color: #fff;
	transform: translateY(-3px);
	box-shadow: 0 20px 46px rgba(20, 31, 45, .24);
}

.np-float:focus-visible {
	outline: 3px solid rgba(255, 255, 255, .8);
	outline-offset: 2px;
}

.np-float b {
	display: grid;
	place-items: center;
	width: 29px;
	height: 29px;
	flex: 0 0 auto;
	border-radius: 50%;
	background: #fff;
	font-size: 11px;
	font-weight: 900;
}

.np-float-tg { background: #229ed9; }
.np-float-tg:hover { background: #1d8fc7; }
.np-float-tg b { color: #1781b6; }

.np-float-wa { background: #1fbb68; }
.np-float-wa:hover { background: #16a95b; }
.np-float-wa b { color: #159c54; }

/* ---------- 手机端 ----------
   缩成圆形图标，避免长条按钮盖住商品卡的加购按钮；
   同时避开 iPhone 底部安全区。 */
@media (max-width: 620px) {
	.np-contact-float {
		right: 14px;
		bottom: calc(14px + env(safe-area-inset-bottom, 0px));
		gap: 10px;
	}

	.np-float {
		min-width: 0;
		width: 48px;
		height: 48px;
		min-height: 48px;
		padding: 0;
		justify-content: center;
		gap: 0;
	}

	/* 文字只保留给屏幕阅读器 */
	.np-float span {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
	}

	.np-float b {
		width: 30px;
		height: 30px;
		font-size: 11px;
	}
}

/* 打印时不需要 */
@media print {
	.np-contact-float { display: none; }
}

/* ============================================================
   41. Contact 页（仿 novapureshop.com/contact）
   ============================================================ */
.np-support-hero { padding: 88px 0; background: #fff; }

.np-support-grid {
	display: grid;
	grid-template-columns: .85fr 1.15fr;
	gap: 78px;
	align-items: center;
}

.np-support-grid > * { margin-block-start: 0; margin-block-end: 0; }

.np-contact-copy h1 {
	margin: 0 0 25px;
	font-size: clamp(34px, 6vw, 68px);
	line-height: .98;
	letter-spacing: -.06em;
	color: var(--np-ink);
}

.np-contact-copy > p {
	max-width: 460px;
	margin: 0 0 28px;
	color: var(--np-muted);
	font-size: 16px;
	line-height: 1.75;
}

/* ---------- 行动按钮 ---------- */
.np-contact-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.np-contact-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 0 26px;
	border: 1px solid transparent;
	border-radius: 8px;
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	box-sizing: border-box;
	transition: .22s;
}

.np-contact-btn:hover { color: #fff; transform: translateY(-2px); }

.np-contact-btn--wa { background: #1fbb68; border-color: #1fbb68; }
.np-contact-btn--wa:hover { background: #16a95b; border-color: #16a95b; }

.np-contact-btn--tg { background: #229ed9; border-color: #229ed9; }
.np-contact-btn--tg:hover { background: #1d8fc7; border-color: #1d8fc7; }

.np-contact-unset {
	margin: 0;
	padding: 14px 16px;
	border: 1px dashed var(--np-line);
	border-radius: var(--np-radius);
	color: var(--np-muted);
	font-size: 13px;
	line-height: 1.6;
}

/* ---------- 右侧支持面板 ---------- */
.np-support-panel {
	padding: 38px;
	border-radius: var(--np-radius);
	background: var(--np-soft);
	box-sizing: border-box;
}

.np-support-panel > * { margin-block-start: 0; }

/*
 * 状态行与时间行都拆成了独立区块（标签 + 值），
 * 不再依赖段落内嵌的 <span>/<b> —— 区块编辑器的富文本会剥掉
 * 未注册格式的内联标签，改文字就会破坏结构。
 * 绿点改用 ::before 生成，不占标记。
 */
.np-support-status,
.np-support-hours {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0;
}

.np-support-status > *,
.np-support-hours > * { margin-block-start: 0; margin-block-end: 0; }

.np-support-status {
	padding-bottom: 22px;
	border-bottom: 1px solid var(--np-line);
}

.np-support-status-label {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0;
	color: var(--np-ink);
	font-size: 12px;
	font-weight: 800;
}

.np-support-status-label::before {
	content: "";
	width: 9px;
	height: 9px;
	flex: 0 0 auto;
	border-radius: 50%;
	background: #1fbb68;
}

.np-support-status-state {
	margin: 0;
	color: #16894a;
	font-size: 12px;
	font-weight: 800;
}

.np-support-panel h2 {
	margin: 35px 0 20px;
	font-size: clamp(24px, 2.6vw, 34px);
	letter-spacing: -.04em;
	color: var(--np-ink);
}

.np-support-option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0;
	padding: 20px 0;
	border-bottom: 1px solid var(--np-line);
	color: var(--np-ink);
	font-size: 15px;
	transition: .2s;
}

.np-support-option::after { content: "›"; color: var(--np-muted); font-size: 20px; line-height: 1; }
.np-support-option:hover { color: #16894a; padding-left: 6px; }

.np-support-hours { margin-top: 26px; }

.np-support-hours-label {
	margin: 0;
	color: var(--np-ink);
	font-size: 12px;
	font-weight: 800;
}

.np-support-hours-value {
	margin: 0;
	color: var(--np-muted);
	font-size: 12px;
	text-align: right;
}

@media (max-width: 520px) {
	.np-support-status,
	.np-support-hours { flex-wrap: wrap; gap: 6px; }
	.np-support-hours-value { text-align: left; width: 100%; }
}

/* ---------- Before you message ---------- */
.np-support-ice { padding: 78px 0; background: var(--np-soft); }

.np-support-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 30px;
	margin-bottom: 42px;
}

.np-support-head > * { margin-block-start: 0; }

.np-support-head h2 {
	margin: 0;
	font-size: clamp(30px, 4vw, 56px);
	line-height: 1;
	letter-spacing: -.055em;
	color: var(--np-ink);
}

.np-support-head p {
	max-width: 520px;
	margin: 0;
	color: var(--np-muted);
	line-height: 1.7;
}

.np-support-values {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	background: var(--np-line);
	border: 1px solid var(--np-line);
	border-radius: var(--np-radius);
	overflow: hidden;
}

.np-support-values > * { margin-block-start: 0; }

.np-support-value {
	min-height: 190px;
	padding: 28px;
	background: #fff;
	box-sizing: border-box;
}

.np-support-value h3 { margin: 0 0 14px; font-size: 18px; letter-spacing: -.03em; color: var(--np-ink); }
.np-support-value p { margin: 0; color: var(--np-muted); line-height: 1.65; font-size: 14px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
	.np-support-grid { grid-template-columns: 1fr; gap: 36px; }
	.np-support-values { grid-template-columns: 1fr; }
	.np-support-head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 28px; }
}

@media (max-width: 620px) {
	.np-support-hero { padding: 44px 0; }
	.np-support-ice { padding: 44px 0; }
	.np-support-panel { padding: 24px; }
	.np-support-value { min-height: 0; padding: 22px; }
	.np-contact-cta .np-contact-btn { flex: 1 1 100%; }
}

/* 商品详情页主图同样受内联样式影响，一并放开 */
.np-detail-gallery .wc-block-components-product-image img,
.np-detail-gallery .wp-block-woocommerce-product-image-gallery img,
.np-detail-gallery .woocommerce-product-gallery img {
	object-fit: contain !important;
	aspect-ratio: auto !important;
}


/* ------------------------------------------------------------------
 * 42. 第三方登录（Google）
 * ------------------------------------------------------------------ */

.np-oauth {
	/*
	 * 与 User Registration 的表单字段对齐：插件的 .ur-form-grid 自带
	 * 10px 左右内边距，输入框和提交按钮都因此内缩。这里跟上同样的量，
	 * 否则 Google 按钮会比下方的表单宽 20px。
	 */
	margin: 0 0 18px;
	padding: 0 10px;
}

.np-oauth-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 46px;
	padding: 11px 18px;
	box-sizing: border-box;
	border: 1px solid var(--np-line, #dbe3ec);
	border-radius: 10px;
	background: #fff;
	color: var(--np-ink, #16202e);
	/* 尺寸对齐表单的提交按钮（14px），字重取切换标签的 700，视觉上不突兀 */
	font-size: 14px;
	line-height: 1.2;
	text-decoration: none;
	transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

/*
 * 第 12 节的 `.np-auth a` 给卡片内所有链接上了蓝色加粗，特异度 (0,1,1)
 * 高于 .np-oauth-btn 的 (0,1,0)，会把按钮文字染成链接蓝。
 * 这里加 .np-auth 前缀提到 (0,2,0) 压过去。
 */
.np-auth .np-oauth-btn,
.np-auth .np-oauth-btn:hover,
.np-auth .np-oauth-btn:focus-visible {
	color: var(--np-ink, #16202e);
	font-weight: 700;
}

.np-oauth-btn:hover,
.np-oauth-btn:focus-visible {
	border-color: #c3cedb;
	background: #f8fafc;
	box-shadow: 0 1px 3px rgba(16, 32, 51, .08);
	color: var(--np-ink, #16202e);
}

.np-oauth-icon {
	flex: 0 0 auto;
	display: block;
}

/* 分隔线上的「or」*/
.np-oauth-or {
	position: relative;
	margin: 18px 0 0;
	text-align: center;
}

.np-oauth-or::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 1px;
	background: var(--np-line, #dbe3ec);
}

.np-oauth-or span {
	position: relative;
	padding: 0 12px;
	background: #fff;
	color: var(--np-muted, #6b7a8d);
	font-size: 13px;
}

.np-oauth-error {
	margin: 0 0 14px;
	padding: 10px 13px;
	border: 1px solid #f3c9c7;
	border-radius: 8px;
	background: #fdf3f3;
	color: #a02c2c;
	font-size: 14px;
	line-height: 1.45;
}

/* COA 列表上方的「浏览报告 / 申请样品检测」条 */
.np-coa-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin: 26px 0 14px;
}

.np-coa-bar-text strong {
	display: block;
	font-size: 19px;
	letter-spacing: -.02em;
}

.np-coa-count {
	color: var(--np-muted);
	font-size: 14px;
}

.np-coa-apply {
	display: inline-flex;
	align-items: center;
	min-height: 42px;
	padding: 0 20px;
	border: 1px solid var(--np-line);
	border-radius: 8px;
	background: #fff;
	color: var(--np-blue);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.np-coa-apply:hover {
	border-color: var(--np-blue);
	background: #f5f9ff;
	color: var(--np-blue);
}

@media (max-width: 620px) {
	.np-coa-bar { flex-direction: column; align-items: stretch; }
	.np-coa-apply { justify-content: center; }
}

/* ------------------------------------------------------------------
 * 43. 免费样品申请 /sample-apply/
 * ------------------------------------------------------------------ */

.np-sample {
	padding: 54px 0 76px;
	background: linear-gradient(180deg, #edf4fd 0%, #f7fbff 100%);
}

.np-sample-inner {
	width: min(1120px, 100% - 40px);
	margin-inline: auto;
	text-align: center;
}

.np-sample-back {
	display: inline-block;
	margin-bottom: 10px;
	color: var(--np-muted);
	font-size: 14px;
	text-decoration: none;
}

.np-sample-back:hover { color: var(--np-blue); }

.np-sample-title {
	margin: 0 0 10px;
	font-size: clamp(32px, 5vw, 58px);
	line-height: 1.05;
	letter-spacing: -.03em;
}

.np-sample-sub {
	margin: 0 auto 30px;
	max-width: 620px;
	color: var(--np-muted);
	font-size: 17px;
}

.np-sample-card {
	max-width: 780px;
	margin-inline: auto;
	padding: 34px;
	border: 1px solid var(--np-line);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 18px 44px rgba(10, 34, 70, .07);
	text-align: left;
}

/* 两列栅格；宽字段独占一行 */
.np-sample-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 22px;
}

.np-sample-row.is-wide { grid-column: 1 / -1; }

.np-sample-row label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 700;
	color: var(--np-ink);
}

.np-sample-row .np-req { color: #d63638; }

.np-sample-row input,
.np-sample-row select,
.np-sample-row textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 11px 13px;
	border: 1px solid var(--np-line);
	border-radius: 8px;
	background: #fff;
	color: var(--np-ink);
	font-size: 15px;
	font-family: inherit;
}

.np-sample-row textarea { resize: vertical; min-height: 88px; }

.np-sample-row input:focus,
.np-sample-row select:focus,
.np-sample-row textarea:focus {
	outline: none;
	border-color: var(--np-blue);
	box-shadow: 0 0 0 3px rgba(17, 93, 214, .12);
}

.np-sample-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 24px;
}

.np-sample-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 26px;
	border: 0;
	border-radius: 8px;
	background: var(--np-blue);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	font-family: inherit;
	text-decoration: none;
	cursor: pointer;
}

.np-sample-submit:hover { background: #0d4bb0; color: #fff; }

.np-sample-cancel {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 22px;
	border: 1px solid var(--np-line);
	border-radius: 8px;
	background: #fff;
	color: var(--np-ink);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
}

.np-sample-cancel:hover { border-color: #c3cedb; background: #f8fafc; color: var(--np-ink); }

.np-sample-error {
	max-width: 780px;
	margin: 0 auto 16px;
	padding: 11px 14px;
	border: 1px solid #f3c9c7;
	border-radius: 8px;
	background: #fdf3f3;
	color: #a02c2c;
	font-size: 14px;
	text-align: left;
}

/* 提交成功 */
.np-sample-done { text-align: center; }
.np-sample-done h2 { margin: 0 0 10px; font-size: 26px; }
.np-sample-done p { margin: 0 0 22px; color: var(--np-muted); }

/* 蜜罐：藏起来但不用 display:none —— 部分机器人会跳过 display:none 的字段 */
.np-sample-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

@media (max-width: 720px) {
	.np-sample { padding: 36px 0 54px; }
	.np-sample-card { padding: 22px 18px; }
	.np-sample-sub { font-size: 15px; margin-bottom: 22px; }

	/* 手机端单列，字段太窄反而难填 */
	.np-sample-grid { grid-template-columns: 1fr; gap: 14px; }

	.np-sample-actions { flex-direction: column; align-items: stretch; }
	.np-sample-submit,
	.np-sample-cancel { width: 100%; }
}
