/* Venus Smart Store · 前台组件样式 */

.venus-btn,
.venus-btn:visited {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 24px;
	border: 1px solid #0B1B3A;
	border-radius: 999px;
	background: linear-gradient(135deg, #2B6CF6 0%, #0B1B3A 100%);
	color: #fff;
	font-weight: 600;
	font-size: 14px;
	letter-spacing: .02em;
	cursor: pointer;
	overflow: hidden;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 12px 26px -12px rgba(43, 108, 246, .75);
	touch-action: manipulation;
	transition: transform .2s cubic-bezier(.22, .61, .36, 1), background .2s ease, color .2s ease, box-shadow .2s ease;
}

/* 悬停时一道斜向高光扫过，属于"高级感"的微交互细节 */
.venus-btn::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: -60%;
	width: 40%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .32), transparent);
	transform: skewX(-18deg);
	transition: left .6s cubic-bezier(.22, .61, .36, 1);
}

.venus-btn:hover::after {
	left: 130%;
}

.venus-btn:hover {
	background: linear-gradient(135deg, #3D7BFF 0%, #123A9E 100%);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 18px 34px -14px rgba(43, 108, 246, .85);
}

.venus-btn-ghost,
.venus-btn-ghost:visited {
	background: transparent;
	color: #0B1B3A;
	box-shadow: none;
}

.venus-btn-ghost:hover {
	background: linear-gradient(135deg, #2B6CF6 0%, #0B1B3A 100%);
	color: #fff;
}

.venus-btn.is-added {
	background: #1f8a5b;
	border-color: #1f8a5b;
}

.venus-form p {
	margin: 0 0 14px;
}

.venus-form label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #22345C;
}

.venus-form input[type="text"],
.venus-form input[type="email"],
.venus-form input[type="password"],
.venus-form input[type="tel"],
.venus-form input[type="number"],
.venus-form input[type="url"],
.venus-form textarea,
.venus-form select {
	width: 100%;
	margin-top: 6px;
	padding: 11px 14px;
	border: 1px solid #D8E4F7;
	border-radius: 10px;
	background: #fff;
	font-size: 14px;
	color: #050B1A;
}

.venus-form input:focus,
.venus-form textarea:focus,
.venus-form select:focus {
	outline: none;
	border-color: #2B6CF6;
	box-shadow: 0 0 0 3px rgba(43, 108, 246, .14);
}

.venus-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 18px;
}

.venus-form-status.is-success {
	color: #1f8a5b;
}

.venus-form-status.is-error {
	color: #c0392b;
}

.venus-hp {
	position: absolute !important;
	left: -9999px !important;
	height: 1px;
	overflow: hidden;
}

/* 产品卡片 */
.venus-products {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.venus-products.venus-cols-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.venus-product-card {
	position: relative;
	display: flex;
	flex-direction: column;
	border: 1px solid #E9EEF9;
	border-radius: 20px;
	background: #fff;
	overflow: hidden;
	box-shadow: 0 2px 10px -6px rgba(9, 24, 58, .1);
	transition: box-shadow .3s cubic-bezier(.22, .61, .36, 1), transform .3s cubic-bezier(.22, .61, .36, 1), border-color .3s ease;
}

/* 悬停时顶部浮现一条科技蓝细线，作为高级感的细节 */
.venus-product-card::after {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	width: 0;
	height: 2px;
	background: linear-gradient(90deg, rgba(53, 194, 255, 0), #22D3EE, rgba(53, 194, 255, 0));
	transform: translateX(-50%);
	transition: width .35s ease;
}

.venus-product-card:hover {
	border-color: #D3DFF4;
	box-shadow: 0 32px 64px -28px rgba(9, 24, 58, .38);
	transform: translateY(-5px);
}

.venus-product-card:hover::after {
	width: 100%;
}

.venus-product-media {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	background: linear-gradient(160deg, #F8FBFF 0%, #EDF3FF 100%);
	overflow: hidden;
}

.venus-product-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
}

.venus-product-card:hover .venus-product-media img {
	transform: scale(1.045);
}

.venus-card-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: #8A99B5;
	font-size: 13px;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.venus-badge-tag {
	position: absolute;
	top: 14px;
	left: 14px;
	padding: 3px 11px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .78);
	backdrop-filter: saturate(180%) blur(8px);
	-webkit-backdrop-filter: saturate(180%) blur(8px);
	color: #2B6CF6;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .1em;
	box-shadow: 0 4px 14px rgba(9, 24, 58, .1);
}

.venus-product-body {
	display: flex;
	flex-direction: column;
	gap: 7px;
	padding: 18px 20px 20px;
}

.venus-product-body h3 {
	margin: 0;
	min-height: 45px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.venus-product-body h3 a {
	color: #0A1730;
}

.venus-product-body h3 a:hover {
	color: #2B6CF6;
}

/* 品类 + 角标的极简眉题行 */
.venus-card-eyebrow {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #8296b8;
}

.venus-card-eyebrow .venus-flag {
	padding-left: 8px;
	border-left: 1px solid #E4ECF9;
	color: #2B6CF6;
}

.venus-tag {
	align-self: flex-start;
	padding: 2px 9px;
	border-radius: 999px;
	background: #E9F1FF;
	color: #46557a;
	font-size: 11px;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.venus-meta {
	margin: 0;
	font-size: 12px;
	line-height: 1.6;
	color: #8296b8;
}

.venus-model,
.venus-moq {
	margin: 0;
	font-size: 12px;
	color: #5A6B8C;
}

.venus-price {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: #0B1B3A;
}

.venus-price.is-quote {
	font-size: 13px;
	font-weight: 600;
	color: #8296b8;
}

/* 隐藏价格时，卡片底部只保留一个整行的询价按钮 */
.venus-card-footer-single .venus-btn-add {
	width: 100%;
}

/* 卡片底部：价格 + 紧凑按钮，保持留白与对齐 */
.venus-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 8px;
	padding-top: 14px;
	border-top: 1px solid #F1F5FD;
}

.venus-btn-add {
	flex: 0 0 auto;
	padding: 9px 16px;
	border: 1px solid #D8E4F7;
	border-radius: 999px;
	background: #fff;
	color: #2B6CF6;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
	touch-action: manipulation;
	transition: background .22s cubic-bezier(.22, .61, .36, 1), color .22s ease, border-color .22s ease, box-shadow .22s ease;
}

/* 触摸设备：去掉点击高亮、避免双击缩放带来的延迟（主题侧元素在 theme.css） */
.venus-chat-toggle,
.venus-rfq-remove {
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
}

.venus-btn-add:hover {
	border-color: transparent;
	background: linear-gradient(135deg, #2B6CF6 0%, #0B1B3A 100%);
	color: #fff;
	box-shadow: 0 12px 26px -12px rgba(43, 108, 246, .8);
}

.venus-btn-add.is-added {
	border-color: #0B1B3A;
	background: #0B1B3A;
	color: #fff;
}

.venus-product-actions {
	display: flex;
	gap: 10px;
	margin-top: 12px;
	flex-wrap: wrap;
}

.venus-product-actions .venus-btn {
	padding: 10px 16px;
	font-size: 13px;
}

/* 询价单 */
.venus-rfq-table,
.venus-inbox-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
}

.venus-rfq-table th,
.venus-rfq-table td,
.venus-inbox-table th,
.venus-inbox-table td {
	padding: 14px 12px;
	border-bottom: 1px solid #E8EFFB;
	text-align: left;
	font-size: 14px;
}

.venus-rfq-product {
	display: flex;
	align-items: center;
	gap: 12px;
}

.venus-rfq-product img {
	border-radius: 8px;
	object-fit: cover;
}

.venus-rfq-qty {
	width: 84px;
	padding: 8px 10px;
	border: 1px solid #D8E4F7;
	border-radius: 8px;
}

.venus-rfq-remove {
	width: 32px;
	height: 32px;
	border: 1px solid #DBE6F8;
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
	color: #8b94a8;
}

.venus-rfq-remove:hover {
	background: #fdecea;
	color: #c0392b;
}

.venus-rfq-form-wrap {
	margin-top: 36px;
	padding: 28px;
	border: 1px solid #E4ECF9;
	border-radius: 16px;
	background: #F7FAFF;
}

.venus-badge {
	display: inline-block;
	min-width: 20px;
	padding: 1px 7px;
	border-radius: 999px;
	background: #2B6CF6;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	text-align: center;
}

/* 站内信 */
.venus-thread {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 18px 0;
}

.venus-msg {
	max-width: 78%;
	padding: 14px 16px;
	border-radius: 14px;
	font-size: 14px;
	line-height: 1.6;
}

.venus-msg-customer {
	align-self: flex-start;
	background: #EFF5FF;
	color: #0A1730;
}

.venus-msg-staff {
	align-self: flex-end;
	background: #0B1B3A;
	color: #fff;
}

.venus-msg-head {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 6px;
	font-size: 12px;
	opacity: .8;
}

/* FAQ */
.venus-faq {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.venus-faq-item {
	border: 1px solid #E4ECF9;
	border-radius: 12px;
	background: #fff;
	padding: 0 20px;
}

.venus-faq-item summary {
	padding: 18px 0;
	cursor: pointer;
	font-weight: 600;
	color: #0B1B3A;
	list-style: none;
}

.venus-faq-item summary::-webkit-details-marker {
	display: none;
}

.venus-faq-item summary::after {
	float: right;
	content: "+";
	font-weight: 400;
	color: #8b94a8;
}

.venus-faq-item[open] summary::after {
	content: "−";
}

.venus-faq-answer {
	padding: 0 0 18px;
	color: #4a5670;
	line-height: 1.7;
}

/* 资讯卡片 */
.venus-cards {
	display: grid;
	gap: 26px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.venus-article-card {
	border: 1px solid #E4ECF9;
	border-radius: 16px;
	overflow: hidden;
	background: #fff;
}

.venus-card-media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	background: #F4F8FF;
}

.venus-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.venus-card-body {
	padding: 20px;
}

.venus-card-body h3 {
	margin: 10px 0 8px;
	font-size: 18px;
	line-height: 1.45;
}

.venus-card-body p {
	margin: 0 0 10px;
	color: #5b6780;
	font-size: 14px;
	line-height: 1.65;
}

.venus-play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 32px;
	background: rgba(15, 28, 63, .28);
}

.venus-date {
	font-size: 12px;
	color: #8A99B5;
}

/* 分页 */
.venus-pagination ul {
	display: flex;
	gap: 8px;
	justify-content: center;
	margin: 34px 0 0;
	padding: 0;
	list-style: none;
}

.venus-pagination a,
.venus-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid #DBE6F8;
	border-radius: 10px;
	color: #22345C;
	text-decoration: none;
}

.venus-pagination .current {
	background: #0B1B3A;
	border-color: #0B1B3A;
	color: #fff;
}

/* 品类卡 */
.venus-categories {
	display: grid;
	gap: 22px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.venus-category-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 22px 16px;
	border: 1px solid #E4ECF9;
	border-radius: 16px;
	background: #fff;
	text-align: center;
	text-decoration: none;
	color: #0A1730;
}

.venus-category-card img {
	width: 96px;
	height: 96px;
	object-fit: contain;
}

.venus-category-name {
	font-weight: 600;
}

.venus-category-count {
	font-size: 12px;
	color: #8A99B5;
}

/* 成功页 */
.venus-thanks {
	max-width: 640px;
	margin: 0 auto;
	text-align: center;
}

.venus-thanks h1 {
	margin-bottom: 12px;
}

.venus-thanks-call a {
	display: inline-block;
	margin-top: 4px;
	font-weight: 700;
}

/* 在线客服 */
.venus-chat {
	position: fixed;
	right: calc(22px + env(safe-area-inset-right, 0px));
	bottom: calc(22px + env(safe-area-inset-bottom, 0px));
	z-index: 9990;
	font-size: 14px;
}

.venus-chat-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 20px;
	border: 0;
	border-radius: 999px;
	background: #0B1B3A;
	color: #fff;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 14px 34px rgba(15, 28, 63, .28);
}

.venus-chat-icon {
	font-size: 18px;
}

.venus-chat-panel {
	position: absolute;
	right: 0;
	bottom: 68px;
	width: 344px;
	max-height: 78vh;
	max-height: 78dvh;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 24px 60px rgba(15, 28, 63, .24);
}

.venus-chat-head {
	position: relative;
	padding: 18px 20px;
	background: #0B1B3A;
	color: #fff;
	border-radius: 18px 18px 0 0;
}

.venus-chat-head strong {
	display: block;
}

.venus-chat-head span {
	font-size: 12px;
	opacity: .75;
}

.venus-chat-close {
	position: absolute;
	top: 12px;
	right: 14px;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.venus-chat-body {
	padding: 18px 20px 22px;
}

.venus-chat-user {
	font-size: 12px;
	color: #5A6B8C;
}

.venus-chat-intro {
	margin-top: 0;
	font-size: 13px;
	color: #5b6780;
	line-height: 1.6;
}

.venus-chat-whatsapp {
	display: block;
	margin-top: 10px;
	padding: 11px 16px;
	border-radius: 10px;
	background: #25d366;
	color: #fff;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
}

.venus-toast {
	position: fixed;
	left: 50%;
	bottom: 40px;
	z-index: 9999;
	padding: 12px 22px;
	border-radius: 999px;
	background: #050B1A;
	color: #fff;
	font-size: 14px;
	opacity: 0;
	transform: translate(-50%, 12px);
	transition: opacity .25s ease, transform .25s ease;
}

.venus-toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

/* 平板：产品网格从 4 列降为 3 列，卡片不拥挤 */
@media (min-width: 861px) and (max-width: 1080px) {
	.venus-products,
	.venus-products.venus-cols-3,
	.venus-products.venus-cols-4 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

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

@media (max-width: 860px) {
	.venus-products,
	.venus-products.venus-cols-3,
	.venus-products.venus-cols-4,
	.venus-cards,
	.venus-cards.venus-cols-3,
	.venus-categories {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.venus-form-grid {
		grid-template-columns: 1fr;
	}

	/* iOS Safari 在输入框字号小于 16px 时，聚焦会自动放大页面 */
	.venus-form input[type="text"],
	.venus-form input[type="email"],
	.venus-form input[type="password"],
	.venus-form input[type="tel"],
	.venus-form input[type="number"],
	.venus-form input[type="url"],
	.venus-form input[type="search"],
	.venus-form textarea,
	.venus-form select {
		font-size: 16px;
	}

	.venus-chat-panel {
		width: min(88vw, 344px);
	}
}

@media (max-width: 520px) {
	.venus-products,
	.venus-products.venus-cols-3,
	.venus-products.venus-cols-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
	}

	.venus-cards,
	.venus-cards.venus-cols-3,
	.venus-categories {
		grid-template-columns: 1fr;
	}

	/* 小屏两列卡片：压缩留白，保证文字可读且不拥挤 */
	.venus-product-body {
		gap: 6px;
		padding: 14px 14px 16px;
	}

	.venus-product-body h3 {
		min-height: 41px;
		font-size: 13.5px;
	}

	.venus-card-eyebrow {
		font-size: 9.5px;
		letter-spacing: .08em;
	}

	.venus-meta {
		font-size: 11px;
	}

	.venus-price {
		font-size: 14px;
	}

	.venus-card-footer {
		flex-direction: column;
		align-items: stretch;
		gap: 9px;
	}

	.venus-btn-add {
		width: 100%;
		padding: 8px 10px;
		font-size: 11.5px;
	}
}
