/* ==========================================================================
   通用内容组件样式（评论卡片 / 搜索框模块等）
   所有规则限定在 .vx-module-scope 内，不污染主题。
   ========================================================================== */

.vx-module-scope .vx-block {
	--vortex-ink: #0e0e0e;
	--vortex-panel: #171718;
	--vortex-line: rgba(255, 255, 255, .12);
	--vortex-copper: #9f8561;
	--vortex-text: #dadada;
	--vortex-muted: rgba(218, 218, 218, .68);
	box-sizing: border-box;
	padding: 40px 24px;
	background: var(--vortex-ink);
	color: var(--vortex-text);
	font-family: Poppins, "Segoe UI", sans-serif;
}

.vx-module-scope .vx-block * { box-sizing: border-box; }

.vx-module-scope .vx-block__head { margin: 0 auto 24px; max-width: 760px; text-align: center; }

.vx-module-scope .vx-block__title {
	margin: 0 0 8px;
	font-family: Oswald, sans-serif;
	font-size: clamp(22px, 2.8vw, 32px);
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #fff;
}

.vx-module-scope .vx-block__sub { margin: 0; font-size: 14px; color: var(--vortex-muted); }

/* 搜索框模块：浅色卡片里显示，外边距与标题齐平 */
.vx-module-scope .vx-chrome-search {
	width: 100%;
	max-width: 100%;
}

.vx-module-scope .vx-search-module,
.vx-module-scope .vx-search-module * {
	box-sizing: border-box;
}

.vx-module-scope .vx-search-module {
	width: 100%;
	max-width: 720px;
	margin: 0 auto;
	padding: 18px;
	background: #fff;
}

.vx-module-scope .vx-search-module .searchform {
	width: 100%;
}

.vx-module-scope .vx-search-module .searchform { display: flex; gap: 8px; align-items: center; }
.vx-module-scope .vx-search-module input[type="search"] {
	flex: 1; padding: 10px 12px; border: 1px solid #d9d9d9; font-size: 14px;
}

/* ---------- 单条评论卡片 ---------- */
.vx-module-scope .vx-block--review {
	padding: 0;
	background: transparent;
}

.vx-module-scope .vx-review {
	max-width: 720px;
	margin: 0 auto;
	padding: 26px;
	background: #171718 !important;
	border: 1px solid var(--vortex-line, rgba(255,255,255,.12));
}

.vx-module-scope .vx-review__stars {
	display: flex;
	gap: 3px;
	color: #9f8561 !important;
	margin-bottom: 12px;
}

.vx-module-scope .vx-review__title {
	margin: 0 0 10px;
	font-family: Oswald, sans-serif;
	font-size: 17px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #fff !important;
}

.vx-module-scope .vx-review__body {
	margin: 0 0 20px;
	font-size: 14px;
	line-height: 1.8;
	color: #dadada !important;
}

.vx-module-scope .vx-review__meta {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-top: 16px;
	border-top: 1px solid var(--vortex-line, rgba(255,255,255,.12));
}

.vx-module-scope .vx-review__avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--vortex-copper, #9f8561);
	color: #0e0e0e;
	font-family: Oswald, sans-serif;
	font-size: 13px;
	letter-spacing: .05em;
}

.vx-module-scope .vx-review__who {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 13px;
	color: #fff;
}

.vx-module-scope .vx-review__verified {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	font-size: 11px;
	color: var(--vortex-copper, #9f8561);
}

.vx-module-scope .vx-review__date {
	margin-left: auto;
	font-size: 11px;
	color: #9a9a9a !important;
}
/* 模块里的搜索框始终展开：隐藏折叠按钮，避免出现两个放大镜 */
.vx-module-scope .vx-search-module .search-toggle {
	display: none !important;
}

.vx-module-scope .vx-search-module .searchform {
	display: flex !important;
	position: static !important;
	opacity: 1 !important;
	visibility: visible !important;
	transform: none !important;
}
/* ==========================================================================
   站点框架模块自带样式：移动端左栏 / 购物车右栏（脱离主题也能正常显示）
   ========================================================================== */
.vx-module-scope .drawer {
	position: fixed;
	top: 0;
	bottom: 0;
	width: 350px;
	max-width: 88vw;
	z-index: 2147483000;
	background: var(--vortex-black, #000);
	color: var(--vortex-text, #fff);
	overflow-y: auto;
	transform: translateX(-100%);
	transition: transform .25s ease;
	visibility: hidden;
}

.vx-module-scope .drawer--left {
	left: 0;
}

.vx-module-scope .drawer--right {
	right: 0;
	transform: translateX(100%);
}

.vx-module-scope .drawer.drawer--is-open {
	transform: translateX(0);
	visibility: visible;
	box-shadow: 0 0 40px rgba(0, 0, 0, .6);
}

.vx-module-scope .drawer__contents {
	background: var(--vortex-black, #000);
	min-height: 100%;
}

.vx-module-scope .drawer__fixed-header {
	position: sticky;
	top: 0;
	z-index: 2;
	background: var(--vortex-black, #000);
	border-bottom: 1px solid var(--vortex-line, rgba(255,255,255,.14));
}

.vx-module-scope .drawer__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
}

.vx-module-scope .drawer__title {
	font-family: var(--vortex-font-head, Oswald, sans-serif);
	font-size: 15px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--vortex-text, #fff);
}

.vx-module-scope .drawer__close-button {
	background: none;
	border: 0;
	padding: 4px;
	color: var(--vortex-text, #fff);
	cursor: pointer;
}

.vx-module-scope .drawer__close-button .icon {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.vx-module-scope .mobile-nav__link,
.vx-module-scope .mobile-nav__link--top-level {
	display: block;
	padding: 14px 18px;
	font-family: var(--vortex-font-head, Oswald, sans-serif);
	font-size: 16px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--vortex-text, #fff);
	text-decoration: none;
}

.vx-module-scope .mobile-nav__item {
	border-bottom: 1px solid var(--vortex-line, rgba(255,255,255,.14));
}

/* 打开抽屉时压住页面的遮罩 */
.vx-module-scope .drawer.drawer--is-open::after {
	content: "";
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .5);
	z-index: -1;
}
/* ==========================================================================
   页脚模块自带栅格：脱离主题也要分列显示
   （主题里的 .grid{display:flex} 没随模块带过来，导致三块全宽堆叠）
   ========================================================================== */
.vx-module-scope .site-footer .page-width {
	max-width: 1400px;
	margin: 0 auto;
	padding-left: 28px;
	padding-right: 28px;
}

.vx-module-scope .site-footer .grid {
	display: flex;
	flex-wrap: wrap;
	gap: 26px 40px;
	align-items: flex-start;
}

.vx-module-scope .site-footer .grid__item {
	flex: 1 1 220px;
	min-width: 0;
	max-width: none;
}

.vx-module-scope .site-footer .footer__item {
	margin: 0 0 8px;
	line-height: 1.7;
}

.vx-module-scope .site-footer .footer__title {
	margin: 0 0 12px;
	font-family: var(--vortex-font-head, Oswald, sans-serif);
	font-size: 13px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--vortex-text, #fff);
}

.vx-module-scope .site-footer a {
	text-decoration: none;
	color: var(--vortex-text-muted, #d4d4d4);
}

.vx-module-scope .site-footer a:hover {
	color: var(--vortex-text, #fff);
}

.vx-module-scope .site-footer .footer__collapsible {
	display: block;
}
/* 页脚订阅表单：输入框铺满、按钮贴右 */
.vx-module-scope .site-footer .footer__newsletter {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0;
	max-width: 320px;
	margin-top: 12px;
	border-bottom: 1px solid var(--vortex-line, rgba(255, 255, 255, .3));
}

.vx-module-scope .site-footer .footer__newsletter input[type="email"] {
	flex: 1 1 auto;
	width: 100%;
	padding: 8px 0;
	background: transparent;
	border: 0;
	color: var(--vortex-text, #fff);
	font-size: 13px;
}

.vx-module-scope .site-footer .footer__newsletter input[type="email"]::placeholder {
	color: var(--vortex-text-dim, #9a9a9a);
}

.vx-module-scope .site-footer .footer__newsletter-btn {
	flex: 0 0 auto;
	padding: 8px 10px;
	background: none;
	border: 0;
	color: var(--vortex-text, #fff);
	cursor: pointer;
}

.vx-module-scope .site-footer .footer__newsletter-btn svg,
.vx-module-scope .site-footer .footer__newsletter-btn .icon {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.vx-module-scope .site-footer .footer__social {
	display: flex;
	gap: 14px;
	margin-top: 18px;
}

.vx-module-scope .site-footer .footer__social img,
.vx-module-scope .site-footer .footer__social svg {
	width: 20px;
	height: 20px;
	opacity: .85;
}

.vx-module-scope .site-footer .footer__copyright {
	margin-top: 22px;
	font-size: 11px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--vortex-text-dim, #9a9a9a);
}
/* 灯箱预览里的关闭按钮（后台预览专用，确保可见） */
.vx-preview--modal .vx-module-scope .modal__close {
	position: absolute !important;
	top: 14px !important;
	right: 16px !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
	padding: 6px 10px !important;
	background: rgba(0, 0, 0, .55) !important;
	color: #fff !important;
	border: 1px solid rgba(255, 255, 255, .3) !important;
	border-radius: 3px !important;
	font-size: 10px !important;
	letter-spacing: .14em !important;
	text-transform: uppercase !important;
	opacity: 1 !important;
	visibility: visible !important;
	z-index: 20 !important;
}

.vx-preview--modal .vx-module-scope .modal__close .icon {
	width: 12px !important;
	height: 12px !important;
	fill: currentColor !important;
}
/* ==========================================================================
   模块内交互样式（与 porto-child 主题里的同名修复保持一致，但作用域独立）
   ========================================================================== */

/* ---------- 页头：滚动固定 + 纯黑 ---------- */
.vx-module-scope .header-wrapper.is-scrolled {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 60;
	background: #0e0e0e;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .45);
}

.vx-module-scope .header-wrapper.is-scrolled .site-header,
.vx-module-scope .header-wrapper.is-scrolled .header-item,
.vx-module-scope .header-wrapper.is-scrolled .header-layout {
	background: #0e0e0e;
}

.vx-module-scope .header-wrapper.is-scrolled .site-nav__link,
.vx-module-scope .header-wrapper.is-scrolled .site-nav__link .icon,
.vx-module-scope .header-wrapper.is-scrolled .site-header__logo,
.vx-module-scope .header-wrapper.is-scrolled .site-header__logo a {
	color: #ffffff;
	fill: currentColor;
}

/* ---------- 页头：移动端图标垂直居中（纯 flex 居中参数） ---------- */
@media (max-width: 768px) {
	.vx-module-scope .site-header .header-layout {
		align-items: center;
	}

	.vx-module-scope .site-header .header-item {
		align-items: center;
		align-self: center;
	}

	.vx-module-scope .site-header .header-item--icons .site-nav,
	.vx-module-scope .site-header .header-item--icons .site-nav__icons,
	.vx-module-scope .site-header .header-item--icons .replica-search,
	.vx-module-scope .site-header .header-item--icons .replica-minicart,
	.vx-module-scope .site-header .header-item--icons .replica-minicart-wrap,
	.vx-module-scope .site-header .site-nav__link--icon {
		display: flex;
		align-items: center;
	}

	.vx-module-scope .site-header .replica-minicart .cart-head,
	.vx-module-scope .site-header .replica-minicart .cart-icon,
	.vx-module-scope .site-header .replica-minicart .cart-link {
		display: flex;
		align-items: center;
	}

	.vx-module-scope .site-header .header-item--icons svg,
	.vx-module-scope .site-header .replica-minicart svg {
		display: block;
	}
}

/* ---------- 页头：移动端搜索面板全宽 ---------- */
@media (max-width: 768px) {
	.vx-module-scope .site-header .replica-search--mobile {
		position: static;
	}

	.vx-module-scope .site-header .replica-search--mobile.is-active .searchform {
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		width: auto;
		min-width: 0;
		max-width: none;
		box-sizing: border-box;
		z-index: 70;
		overflow: hidden;
	}

	.vx-module-scope .site-header .replica-search--mobile.is-active .searchform-fields {
		display: flex;
		width: 100%;
		gap: 8px;
	}

	.vx-module-scope .site-header .replica-search--mobile.is-active .searchform .text {
		width: 100%;
		min-width: 0;
	}

	/* 提交按钮：主题图标字体缺失时用文字兜底 */
	.vx-module-scope .site-header .replica-search .searchform .button-wrap {
		position: relative;
		display: inline-flex;
		flex: 0 0 auto;
	}

	.vx-module-scope .site-header .replica-search .searchform .btn-special {
		min-width: 96px;
		min-height: 44px;
		font-size: 0;
		color: transparent;
		overflow: hidden;
	}

	.vx-module-scope .site-header .replica-search .searchform .btn-special i,
	.vx-module-scope .site-header .replica-search .searchform .btn-special svg {
		display: none !important;
	}

	.vx-module-scope .site-header .replica-search .searchform .button-wrap::after {
		content: "Search";
		position: absolute;
		inset: 0;
		display: flex;
		align-items: center;
		justify-content: center;
		background: #9f8561;
		color: #0e0e0e;
		font-family: Oswald, "Arial Narrow", sans-serif;
		font-size: 12px;
		letter-spacing: .16em;
		text-transform: uppercase;
		pointer-events: none;
	}
}

/* ---------- 页脚：移动端折叠 + 箭头 ---------- */
@media (max-width: 768px) {
	.vx-module-scope .site-footer .grid__item {
		height: auto !important;
	}

	.vx-module-scope .site-footer .footer__collapsible {
		display: none;
	}

	.vx-module-scope .site-footer .grid__item.is-open .footer__collapsible {
		display: block;
	}

	.vx-module-scope .site-footer .footer__title {
		position: relative;
		display: flex;
		align-items: center;
		justify-content: center;
		cursor: pointer;
		user-select: none;
	}

	.vx-module-scope .site-footer .footer__title::after {
		content: "";
		position: absolute;
		right: 8px;
		top: 50%;
		width: 8px;
		height: 8px;
		border-right: 1.5px solid currentColor;
		border-bottom: 1.5px solid currentColor;
		transform: translateY(-70%) rotate(45deg);
		transition: transform .2s ease;
	}

	.vx-module-scope .site-footer .grid__item.is-open .footer__title::after {
		transform: translateY(-30%) rotate(-135deg);
	}

	.vx-module-scope .site-footer .footer__title .icon,
	.vx-module-scope .site-footer .footer__title svg {
		display: none !important;
	}
}

/* ---------- 评论区轮播（原站布局：桌面 3 张 / 移动 1 张） ---------- */
.vx-module-scope .vx-testimonials {
	position: relative;
	overflow: hidden;
	width: 100%;
	transition: height .4s ease;
	touch-action: pan-y pinch-zoom;
	cursor: grab;
}

.vx-module-scope .vx-testimonials .testimonials-slide {
	display: block !important;
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	height: auto !important;
	margin: 0 !important;
	transition: transform .5s cubic-bezier(.25, .8, .3, 1), opacity .35s ease;
	will-change: transform;
}

.vx-module-scope .vx-testimonials .testimonials-slider__text {
	margin: 0 6px;
	padding: 30px;
	background: #0e0e0e;
	box-sizing: border-box;
	transform: scale(.95);
	transition: transform .5s ease, box-shadow .5s ease;
}

.vx-module-scope .vx-testimonials .testimonials-slide.is-active .testimonials-slider__text {
	position: relative;
	z-index: 10;
	transform: scale(1.1);
	box-shadow: 0 10px 25px rgba(0, 0, 0, .45);
}

.vx-module-scope .vx-testimonials.is-dragging,
.vx-module-scope .vx-testimonials.is-dragging .testimonials-slide,
.vx-module-scope .vx-testimonials.is-dragging .testimonials-slider__text {
	transition: none !important;
}

.vx-module-scope .testimonials-dots {
	display: flex;
	gap: 10px;
	justify-content: center;
	align-items: center;
	margin: 26px 0 0;
	padding: 0;
	list-style: none;
}

.vx-module-scope .testimonials-dots button {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .26);
	cursor: pointer;
	transition: background-color .2s ease, transform .2s ease;
}

.vx-module-scope .testimonials-dots button.is-active {
	background: #9f8561;
	transform: scale(1.3);
}

@media (max-width: 768px) {
	.vx-module-scope .vx-testimonials .testimonials-slider__text {
		margin: 0 8px;
		padding: 26px 20px;
		transform: scale(.86);
	}

	.vx-module-scope .vx-testimonials .testimonials-slide.is-active .testimonials-slider__text {
		transform: scale(1);
	}

	.vx-module-scope .testimonials-dots {
		margin-top: 18px;
		gap: 8px;
	}
}

/* 星号兜底 */
.vx-module-scope .testimonials-slide .testimonial-stars {
	display: block;
	margin: 0 0 14px;
	color: #dadada !important;
	font-family: "Segoe UI Symbol", "Apple Symbols", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.2;
	letter-spacing: .18em;
}