/*=============== PRELOADER ===============*/
#preloader_malc {
	z-index: 999;
	position: absolute;
	height: 100%;
	width: 100%;
	background: white;
	display: flex;
	flex-flow: column wrap;
	align-items: center;
	padding-top: 200px;
}

.loader {
	border: 2px solid var(--grey-50);
	border-top: 2px solid var(--blue-400);
	border-radius: 50%;
	width: 40px;
	height: 40px;
	animation: spin 2s linear infinite;
	margin-bottom: 15px;
}

.loader-message {
	font-size: 12px;
	color: var(--grey-600);
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

/*=============== SCROLLBAR ===============*/
* {
	scrollbar-width: thin;
	scrollbar-color: var(--color-gray-500) var(--color-gray-100);
}

/* Chrome/Edge/Safari */
*::-webkit-scrollbar {
	width: 6px;
	height: 6px;
	background: var(--color-gray-100);
}

*::-webkit-scrollbar-track {
	background: var(--color-gray-100);
}

*::-webkit-scrollbar-thumb {
	background-color: var(--color-gray-500);
}

:root,
html {
	--white: #fff;
	--primary-text-color: #37414f;
	--grey-958: #0d0f13;
	--grey-900: #1d2229;
	--grey-868: #242a33;
	--grey-846: #2b323d;
	--grey-800: #37414f;
	--grey-700: #56657a;
	--grey-600: #868fa2;
	--grey-500: #b0b7c4;
	--grey-400: #cdd1db;
	--grey-300: #dbdfe6;
	--grey-200: #e7e9ee;
	--grey-100: #edeff3;
	--grey-50: #f9fafb;
	--blue-900: #001533;
	--blue-800: #041e42;
	--blue-700: #0f3263;
	--blue-600: #16417f;
	--blue-500: #2058a8;
	--blue-400: #2b70d3;
	--blue-300: #4a89f3;
	--blue-200: #87afe8;
	--blue-100: #bacde8;
	--blue-50: #e4e9f1;
	--spacing-8: 8px;
	--spacing-16: 16px;
	--spacing-24: 24px;
	--spacing-32: 32px;
	--spacing-48: 48px;
	--page-width: 450px;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	position: relative;
	scroll-behavior: smooth;
	font-family: pingfang SC, helvetica neue, arial, hiragino sans gb, microsoft yahei ui, microsoft yahei, simsun, sans-serif;
	font-size: 13px;
}

a,
ul,
li {
	list-style: none;
	text-decoration: none;
	color: var(--primary-text-color);
}

h1,
h2,
h3 {
	font-weight: 400;
}

p img {
	padding-block: 1rem !important;
}

.link {
	color: var(--blue-600);
	text-decoration: underline;
	text-underline-offset: 0.25em;
	text-decoration-thickness: 1px;
}

.link:hover {
	color: var(--blue-400);
}

.page {
	position: relative;
	overflow: hidden;
	color: var(--primary-text-color);
	width: 100%;
	max-width: var(--page-width);
	margin: 0 auto;
}

.header__container {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	width: 100%;
}

/* Menu Icon */
.menu-icon {
	cursor: pointer;
	width: 25px;
	height: 20px;
	position: relative;
	transition: 0.3s;
}

.menu-icon span {
	display: block;
	height: 1px;
	width: 100%;
	background: var(--grey-800);
	margin-bottom: 6px;
	transition: 0.3s;
	border-radius: 2px;
}

/* Close Icon Transformation */
.menu-icon.active span:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}

.menu-icon.active span:nth-child(2) {
	opacity: 0;
}

.menu-icon.active span:nth-child(3) {
	transform: translateY(-9px) rotate(-45deg);
}

.fullscreen-menu {
	position: fixed;
	top: 55px;
	left: 0;
	width: 100%;
	height: calc(100vh - 55px);
	padding: var(--spacing-16);
	background: white;
	display: flex;
	flex-direction: column;
	/* justify-content: center; */
	/* align-items: center; */

	overflow-y: auto;
	z-index: 1000;
	opacity: 0;
	visibility: hidden;
	transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
	transform: translateX(100%);
}

.fullscreen-menu.active {
	opacity: 1;
	visibility: visible;
	transform: translateX(0);
}

/* BOTTOM NAVIGATION` */

.bottom-nav {
	max-width: var(--page-width);
	width: 100%;
	position: fixed;
	z-index: 99;
	bottom: 0;
	background-color: var(--white);
	box-shadow: 0px -2px 6px rgba(0, 0, 0, 0.15);
	padding-right: var(--spacing-16);
	padding-left: var(--spacing-16);
	padding-bottom: var(--spacing-32);
	padding-top: calc(var(--spacing-8) + 4px);
}

.bottom-nav__list {
	display: flex;
	flex-direction: row;
	justify-content: space-around;
	align-items: flex-end;
	text-align: center;
}

.bottom-nav__icon {
	margin-bottom: 4px;
}

.bottom-nav__icon svg {
	height: 18px;
	width: 18px;
}

.bottom-nav__link {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.bottom-nav__link .bottom-nav__icon path {
	fill: var(--primary-text-color);
}

.bottom-nav__link--active {
	color: var(--blue-500);
	font-weight: 500;
}

.bottom-nav__link--active .bottom-nav__icon path {
	fill: var(--blue-500);
}

.bottom-nav__label {
	font-size: 12px;
}

.catalog {
	background-color: var(--blue-50);
	border-radius: 4px;
	padding: var(--spacing-8);
	margin-bottom: var(--spacing-24);
}

.catalog h2 {
	font-size: 18px;
	font-weight: 500;
	padding: 5px;
}

.products {
	width: 100%;
	display: grid;
	grid-template-columns: 1fr 1fr;
	row-gap: var(--spacing-8);
	-moz-column-gap: var(--spacing-8);
	column-gap: var(--spacing-8);
	margin-top: var(--spacing-8);
}

.panel {
	max-height: max-content;
	overflow: hidden;
	transition: max-height 0.2s ease;
}

.catalog-list {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.2s ease;
}

.catalog-title:after,
.category-title:after {
	content: "";
	width: 14px;
	height: 14px;
	background-color: var(--blue-100);
	background-image: url(../images/chevron-up.svg);
	background-size: 70% auto;
	background-position: center;
	background-repeat: no-repeat;
	padding: 5px;
	border-radius: 4px;
	float: right;
	transition: .3s;
}

.catalog-title.not-active:after {
	transform: rotate(180deg);
}

.category-title:after {
	transform: rotate(180deg);
}

.category-title.active:after {
	transform: rotate(0deg);
}

.product__card {
	border: 1px solid var(--grey-300);
	background: var(--white);
	border-radius: 4px;
	padding: var(--spacing-8);
	text-align: center;
	font-size: 14px;
}

.footer__copyright {
	text-align: center;
	padding-top: var(--spacing-48);
	padding-bottom: 120px;
	font-size: 10px;
}

.hero {
	height: 250px;
	background: var(--grey-700);
	background-position: top;
	background-repeat: no-repeat;
	background-size: cover;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding-top: 50px;
	margin-bottom: var(--spacing-16);
	text-align: center;
	color: white;
}

.hero h1 {
	width: 90%;
	margin-bottom: 16px;
	font-size: 28px;
	font-weight: 500;
}

.logo {
	height: 30px;
}

.header {
	max-width: var(--page-width);
	width: 100%;
	overflow: hidden;
	position: fixed;
	background: var(--grey-50);
	border-top: 1px solid var(--grey-300);
	padding: 14px var(--spacing-16) 10px;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.top-menu__icon {
	font-size: 24px;
	color: var(--blue-400);
}

.top-menu__panel {
	position: fixed;
	background-color: var(--grey-50);
	width: 100%;
	height: 50px;
	padding: 0 var(--spacing-16);
	display: flex;
	align-items: center;
	justify-content: space-between;
	/* fade in checked menu */
}

.top-menu .m-menu__checkbox {
	display: none;
}

.top-menu label.m-menu__toggle {
	cursor: pointer;
}

.top-menu .m-menu {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	max-width: var(--page-width);
	height: 100vh;
	transform: translateX(var(--page-width));
	transition: transform 0.35s;
	z-index: 1;
	overflow: hidden;
	background-color: #fff;
}

.top-menu .m-menu__header {
	padding: 0 16px;
	height: 50px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid #e8e8e8;
}

.top-menu .m-menu__header span {
	font-size: 1.2rem;
	font-weight: bold;
	text-align: center;
	width: 100%;
}

.top-menu .m-menu .m-menu {
	transform: translateX(var(--page-width));
}

.top-menu .m-menu ul {
	height: 100%;
	overflow-y: auto;
}

.top-menu .m-menu ul li a,
.top-menu .m-menu ul li label {
	display: block;
	text-align: left;
	padding: 10px 15px;
	line-height: 47px;
	text-decoration: none;
	color: #333;
	cursor: pointer;
	border-bottom: 1px solid #e8e8e8;
	position: relative;
}

.top-menu .m-menu ul li label.a-label__chevron::after {
	content: "";
	position: absolute;
	display: inline-block;
	height: 10px;
	width: 10px;
	border-color: #333;
	border-style: solid;
	border-width: 1px 1px 0 0;
	transform: rotate(45deg);
	top: 50%;
	margin-top: -5px;
	right: 16px;
}

.top-menu .m-menu ul li .-invisible {
	border-bottom: 0;
}

.top-menu .m-menu .m-menu label.m-menu__toggle {
	display: flex;
	border-bottom: 0;
	padding: 0;
	box-sizing: content-box;
}

.top-menu .m-menu__checkbox:checked~.m-menu__overlay {
	display: block;
}

.top-menu .m-menu__checkbox:checked~.m-menu {
	transform: translateX(0);
}

.top-menu__icon {
	position: relative;
	width: 28px;
	height: 20px;
	cursor: pointer;
}

.top-menu__icon span,
.top-menu__icon::before,
.top-menu__icon::after {
	position: absolute;
	left: 0;
	height: 8%;
	width: 100%;
	transition: all 0.3s ease 0s;
	background-color: var(--primary-text-color);
}

.top-menu__icon::before,
.top-menu__icon::after {
	content: "";
}

.top-menu__icon::before {
	top: 0;
}

.top-menu__icon::after {
	bottom: 0;
}

.top-menu__icon span {
	top: 50%;
	transform: scale(1) translate(0px, -50%);
}

.page-wrapper {
	padding: var(--spacing-16);
}

.datatable-page {
	position: relative;
	overflow: hidden;
	color: var(--primary-text-color);
	width: 100%;
	max-width: var(--page-width);
	margin: 0 auto;
}

.datatable-search__container {
	padding: 20px 16px;
	background-color: var(--blue-50);
	border-block: 1px solid var(--grey-300);
}

.datatable-search__input {
	width: 100%;
	padding: 10px 8px;
	border-radius: 4px;
	border: 1px solid var(--grey-300);
	font-size: 14px;
}

div.dt-container .bottom {
	font-size: 0.6rem;
	text-align: center;
	margin-top: 10px;
}

div.dt-container span.select-info {
	display: none;
	visibility: hidden;
}

div.dt-container tbody tr td {
	text-align: left !important;
}

div.dt-container tbody tr td {
	padding-block: 12px;
}

div.dt-container tbody tr td a {
	background-color: var(--blue-400);
	color: white;
	padding: 6px;
	border-radius: 4px;
	font-size: 12px;
}

div.dt-container tbody tr.selected td a {
	background-color: var(--blue-500);
	color: white;
}

table.dataTable>thead>tr>th:nth-child(1),
table.dataTable>tbody>tr>td:nth-child(1) {
	padding-left: 16px;
}

table.dataTable>thead>tr>th,
table.dataTable>thead>tr>td {
	border-bottom: 1px solid var(--grey-300);
}

div.dt-container.dt-empty-footer .dt-scroll-body {
	border-bottom: 1px solid var(--grey-300);
}

.page-nav {
	display: flex;
	font-size: 18px;
	text-align: center;
	border-bottom: 1px solid var(--grey-100);
}

.page-nav .current-page {
	background-color: var(--grey-50);
	border-bottom: 3px solid var(--blue-400);
	color: var(--blue-400);
}

.page-nav .current-page,
.page-nav a {
	flex-grow: 1;
	padding-block: 10px;
}

.contact p {
	margin-bottom: 1rem;
}

.contact-link {
	font-size: 18px;
	color: var(--blue-400);
}

.content {
	font-size: 16px;
}

.news__card {
	background-color: white;
	margin-bottom: 1rem;
	padding: 1rem;
	border-radius: 4px;
}

.news__content {
	display: grid;
	grid-template-columns: 3fr 1fr;
	column-gap: 1rem;
}

.news__content h3 {
	padding-top: 4px;
	font-size: 1rem;
}

.news__date {
	display: block;
	font-size: 12px;
	color: var(--grey-500);
	padding-bottom: 5px;
}

.news__card .news__img {
	height: 64px;
	overflow: hidden;
	border-radius: 3px;
}

.news__card .news__img img {
	width: 100%;
	height: 100%;
	-o-object-fit: cover;
	object-fit: cover;
}

#cart-count {
	background-color: var(--blue-400);
	color: #fff;
	/* font-weight: bold; */
	border-radius: 50%;
	width: 18px;
	height: 18px;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 8px;
	position: absolute;
	top: -8px;
	right: -3px;
}

.action-group {
	display: flex;
	column-gap: 0.4rem;
}

.dt-action {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	column-gap: 0.4rem;
	width: fit-content;
}

.button-icon {
	width: 18px;
	height: 18px;
}

.btn {
	color: white;
	padding: 6px 10px;
	border-radius: 4px;
	border: none;
	font-size: 12px;
	cursor: pointer;
}

.btn:hover {
	background-color: var(--color-blue-50);
}

.btn-inquiry {
	background-color: #2058a8;
	color: #fff;
	transition: 0.3s;
}

.btn-inquiry:hover {
	background-color: #2b70d3;
}

.btn-inquiry.added {
	background: var(--color-slate-100);
	border-color: var(--color-slate-100);
	color: var(--color-slate-500);
	cursor: default;
	pointer-events: none;
	padding-inline: 0;
}

/* 通知样式 */
.cart-notification {
	position: fixed;
	bottom: 75px;
	left: 10px;
	width: calc(100% - 20px);
	background: #fff;
	padding: 16px 20px;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 8px;
	box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
	z-index: 2;
	display: flex;
	align-items: start;
	column-gap: 1rem;
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.3s, transform 0.3s;
}

.cart-notification svg {
	width: 1.5rem;
}

.cart-notification svg path {
	fill: var(--color-emerald-400);
}

.notification-title {
	display: block;
	font-weight: 600;
}

#notificationText {
	color: var(--color-slate-500);
	font-size: 0.9rem;
}

.cart-notification.show {
	opacity: 1;
	transform: translateY(-20px);
}

.cart-notification i {
	margin-right: 12px;
	font-size: 20px;
}

.rfq-body {
	margin-bottom: 10rem;
}

/* 产品表格样式 */
.product-table-container {
	background: white;
	border-radius: 12px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
	overflow: hidden;
	margin-bottom: 40px;
}

.table-header {
	padding: 20px;
	background: linear-gradient(to right, #3498db, #2c3e50);
	color: white;
}

.table-header h2 {
	margin: 0;
	display: flex;
	align-items: center;
}

.table-header h2 i {
	margin-right: 12px;
	font-size: 28px;
}

/* 购物车项目样式 */
.cart-body {
	padding: 20px;
}

.cart-item {
	display: flex;
	align-items: center;
	padding: 15px 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.2);
	column-gap: 0.6rem;
}


.item-info {
	display: flex;
	flex-direction: column;
	row-gap: 4px;
	flex-grow: 1;
}

.item-name {
	/* color: #2058a8; */
	font-size: 14px;
	font-weight: 500;
}

.item-name-container {
	display: flex;
	align-items: center;
	margin-bottom: 5px;
}

.item-details {
	color: var(--grey-600);
	font-size: 12px;
}

.item-quantity {
	width: fit-content;
	text-align: center;
	display: flex;
	align-items: center;
}

.quantity-control {
	display: flex;
	align-items: center;
	border: 1px solid var(--color-slate-200);
	overflow: hidden;
}

.quantity-btn {
	width: 30px;
	height: 30px;
	background: var(--color-slate-100);
	border: none;
	font-size: 18px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: .3s;
}

.quantity-btn:hover {
	color: var(--color-blue-700);
	background: var(--color-slate-200);
}

.quantity-input {
	width: 60px;
	height: 30px;
	text-align: center;
	border: 1px solid rgba(0, 0, 0, 0.4);
	padding: 0;
}

/* Chrome, Safari, Edge, Opera */
.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.remove-item {
	cursor: pointer;
	width: 24px;
	height: 24px;
	background-color: var(--blue-50);
	border-radius: 50%;
	transition: 0.2s;
	padding: 6px;
	border: none;
}

.remove-item svg {
	width: 12px;
	height: 12px;
}

#cartItems {
	margin-bottom: 2rem;
}

.empty-cart {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 60px 0;
	color: var(--color-slate-500);
	background-color: var(--color-slate-100);
	border-radius: 10px;
}

.empty-cart svg {
	width: 64px;
	fill: gray;
	margin-bottom: 1rem;
}

.product-summary {
	margin-bottom: 3rem;
}

/* 表单样式 */

.contact-form p {
	margin-bottom: 1rem;
	font-size: 16px;
}

.form-title {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 10px;
	color: #2c3e50;
	padding-bottom: 4px;
	border-bottom: 2px solid #3498db;
}

.form-group {
	margin-bottom: 1rem;
}

.form-label {
	display: block;
	margin-bottom: 3px;
}

.required-star {
	color: #e74c3c;
}

.form-input {
	width: 100%;
	padding: 12px;
	border: 1px solid rgba(0, 0, 0, 0.4);
	font-size: 14px;
	transition: border-color 0.3s;
}

.form-input:focus {
	border-color: #3498db;
	outline: none;
	box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.submit-btn {
	width: 100%;
	background: #2b70d3;
	color: white;
	border: none;
	padding: 14px;
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
	transition: background-color 0.3s;
}

.submit-btn:hover {
	background: #2058a8;
}

.submit-btn:disabled {
	color: rgba(0, 0, 0, 0.4);
	background: rgba(0, 0, 0, 0.2);
	cursor: not-allowed;
}

/* 消息样式 */
.message {
	margin-bottom: 20px;
	display: none;
}

.success-message {
	background: #d4edda;
	color: #155724;
	padding: 20px;
	border-radius: 8px;
	display: flex;
	align-items: center;
}

.error-message {
	background: #f8d7da;
	color: #721c24;
	padding: 20px;
	border-radius: 8px;
	display: flex;
	align-items: center;
}

#consent-group {
	font-size: 14px;
}

/* --- NEW CSS: Style for the source page link --- */
.source-page-link {
	color: var(--blue-500);
	text-decoration: none;
	white-space: nowrap;
}

.source-page-link:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}