/* ============================================================
   MTELU B2B Custom Theme - main styles
   基调：白底浅灰、深蓝主色、橙色询盘按钮、移动端优先
   字体：免费商用字体栈（思源黑体 / Noto Sans / 系统无衬线）
   ============================================================ */

:root {
	--color-navy: #16324f;
	--color-navy-dark: #0f2438;
	--color-accent: #f26522;
	--color-accent-dark: #d9531a;
	--color-bg: #ffffff;
	--color-bg-soft: #f5f7fa;
	--color-text: #1f2933;
	--color-text-muted: #5b6572;
	--color-border: #e3e8ee;
	--radius: 12px;
	--shadow-card: 0 1px 3px rgba(16, 33, 51, 0.08);
	--shadow-card-hover: 0 10px 24px rgba(16, 33, 51, 0.14);
	--font-sans: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-sans);
	color: var(--color-text);
	background: var(--color-bg);
	line-height: 1.6;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--color-navy);
	text-decoration: none;
}

a:hover {
	color: var(--color-accent);
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--color-navy);
	color: #fff;
	padding: 10px 16px;
	z-index: 100;
}

.skip-link:focus {
	left: 0;
}

/* ---------- Buttons ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 22px;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 600;
	border: 1px solid transparent;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--accent {
	background: var(--color-accent);
	color: #fff;
}

.btn--accent:hover {
	background: var(--color-accent-dark);
	color: #fff;
}

.btn--outline {
	background: transparent;
	color: var(--color-navy);
	border-color: var(--color-navy);
}

.btn--outline:hover {
	background: var(--color-navy);
	color: #fff;
}

/* ---------- Header ---------- */

.site-header {
	background: #fff;
	border-bottom: 1px solid var(--color-border);
	position: sticky;
	top: 0;
	z-index: 50;
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 28px;
	min-height: 72px;
}

.site-brand {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}

.site-brand__name {
	font-size: 24px;
	font-weight: 800;
	letter-spacing: 2px;
	color: var(--color-navy);
}

.site-brand__tag {
	font-size: 11px;
	color: var(--color-text-muted);
	letter-spacing: 1px;
}

.site-nav__list {
	display: flex;
	gap: 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav__list a {
	font-weight: 500;
	color: var(--color-text);
}

.site-nav__list a:hover {
	color: var(--color-accent);
}

.site-header__cta {
	margin-left: auto;
}

/* ---------- Notice ---------- */

.notice {
	margin: 20px 0 0;
	padding: 14px 18px;
	border-radius: var(--radius);
}

.notice--success {
	background: #eaf6ec;
	color: #1e7a37;
	border: 1px solid #b7e3c0;
}

/* ---------- Hero ---------- */

.page-hero {
	background: var(--color-bg-soft);
	padding: 48px 0;
}

.page-hero__title {
	margin: 0 0 10px;
	font-size: 34px;
	color: var(--color-navy);
}

.page-hero__subtitle {
	margin: 0;
	color: var(--color-text-muted);
	max-width: 640px;
}

/* ---------- Category bar ---------- */

.category-bar {
	border-bottom: 1px solid var(--color-border);
	background: #fff;
}

.category-bar__list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 18px 0;
}

.category-bar__link {
	display: inline-block;
	padding: 8px 16px;
	border-radius: 999px;
	border: 1px solid var(--color-border);
	font-size: 14px;
	color: var(--color-text);
}

.category-bar__link:hover,
.category-bar__link.is-active {
	background: var(--color-navy);
	border-color: var(--color-navy);
	color: #fff;
}

/* ---------- Product grid ---------- */

.product-grid-section {
	padding: 40px 0 64px;
}

.product-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

.product-card {
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.product-card:hover {
	box-shadow: var(--shadow-card-hover);
	transform: translateY(-3px);
}

.product-card__media {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	background: var(--color-bg-soft);
	overflow: hidden;
}

.product-card__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 0.35s ease, transform 0.3s ease;
}

.product-card__media img.is-active {
	opacity: 1;
}

.product-card:hover .product-card__media img {
	transform: scale(1.04);
}

.product-card__body {
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}

.product-card__category {
	font-size: 12px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--color-accent);
	font-weight: 600;
}

.product-card__title {
	margin: 0;
	font-size: 18px;
}

.product-card__title a {
	color: var(--color-navy);
}

.product-card__excerpt {
	margin: 0;
	font-size: 14px;
	color: var(--color-text-muted);
}

.product-card__price {
	margin: 6px 0 0;
	font-size: 17px;
	font-weight: 700;
	color: var(--color-accent);
}

.product-card__specs {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	font-size: 13px;
	color: var(--color-text-muted);
}

.product-card__footer {
	margin-top: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-top: 8px;
}

.product-card__sku {
	font-size: 13px;
	color: var(--color-text-muted);
}

.pagination {
	margin-top: 32px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.pagination ul.page-numbers {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 8px;
}

.pagination ul.page-numbers li {
	display: flex;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
	border: none;
	background: none;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	border: 1px solid transparent;
	border-radius: 8px;
	background: transparent;
	color: var(--color-navy);
	font-size: 15px;
	text-decoration: none;
	transition: color .15s ease, background .15s ease;
}

.pagination .page-numbers:hover {
	border-color: transparent;
	background: var(--color-bg-soft);
	color: var(--color-accent);
}

.pagination .page-numbers.current {
	background: var(--color-accent);
	border-color: var(--color-accent);
	color: #fff;
}

.pagination .page-numbers.dots {
	border-color: transparent;
	background: transparent;
	color: var(--color-text-muted);
}

.empty-state {
	padding: 64px 20px;
	text-align: center;
	color: var(--color-text-muted);
	background: var(--color-bg-soft);
	border-radius: var(--radius);
}

/* ---------- Single product ---------- */

.breadcrumb {
	padding: 20px 0;
	font-size: 14px;
	color: var(--color-text-muted);
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.product-single {
	display: grid;
	grid-template-columns: 5fr 7fr;
	gap: 40px;
	padding: 10px 0 32px;
}

.product-single__main-image {
	background: var(--color-bg-soft);
	border-radius: var(--radius);
	overflow: hidden;
	aspect-ratio: 1 / 1;
}

.product-single__main-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.product-single__thumbs {
	display: flex;
	gap: 10px;
	margin-top: 12px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 6px;
	-webkit-overflow-scrolling: touch;
}

.product-single__thumbs img {
	flex: 0 0 calc((100% - 4 * 10px) / 5);
	width: calc((100% - 4 * 10px) / 5);
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 8px;
	border: 1px solid var(--color-border);
	cursor: pointer;
	opacity: 0.85;
	scroll-snap-align: start;
	transition: border-color 0.2s ease, opacity 0.2s ease;
}

.product-single__thumbs img.is-active {
	border-color: var(--color-accent);
	opacity: 1;
}

.product-single__thumbs img:hover {
	opacity: 1;
}

.product-single__category {
	font-size: 13px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--color-accent);
	font-weight: 600;
}

.product-single__title {
	margin: 8px 0;
	font-size: 30px;
	color: var(--color-navy);
}

.product-single__sku {
	color: var(--color-text-muted);
	font-size: 15px;
}

.product-single__price {
	margin: 10px 0 0;
	font-size: 26px;
	font-weight: 700;
	color: var(--color-accent);
}

.product-single__variation-sku {
	color: var(--color-text-muted);
	font-size: 15px;
	margin: 6px 0 0;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.product-single__variation-color {
	color: var(--color-navy);
	font-weight: 600;
}

.variation-picker {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 16px 0;
}

.variation-picker__option {
	border: 1px solid var(--color-border);
	background: #fff;
	border-radius: 999px;
	padding: 8px 16px;
	font-size: 14px;
	color: var(--color-navy);
	cursor: pointer;
	transition: border-color .15s, color .15s, background .15s;
}

.variation-picker__option:hover {
	border-color: var(--color-accent);
}

.variation-picker__option.is-active {
	border-color: var(--color-accent);
	color: #fff;
	background: var(--color-accent);
}

.product-single__excerpt {
	font-size: 16px;
	color: var(--color-text-muted);
	margin: 16px 0;
}

.product-single__b2b {
	list-style: none;
	margin: 20px 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
}

.product-single__b2b li {
	border: 1px solid var(--color-border);
	border-radius: 10px;
	padding: 12px 14px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.product-single__b2b span {
	font-size: 12px;
	color: var(--color-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.product-single__b2b strong {
	font-size: 15px;
	color: var(--color-navy);
}

.product-single__cta {
	margin-top: 8px;
}

.product-single__content {
	padding: 24px 0 40px;
	display: flex;
	flex-direction: column;
	gap: 36px;
}

.section-title {
	font-size: 22px;
	color: var(--color-navy);
	margin: 0 0 16px;
}

.product-description__body {
	color: var(--color-text);
}

/* ---------- Spec table ---------- */

.spec-table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	overflow: hidden;
}

.spec-table th,
.spec-table td {
	padding: 12px 16px;
	border-bottom: 1px solid var(--color-border);
	text-align: left;
	font-size: 15px;
}

.spec-table th {
	width: 32%;
	color: var(--color-text-muted);
	font-weight: 600;
	background: var(--color-bg-soft);
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
	border-bottom: none;
}

/* ---------- Inquiry form ---------- */

.inquiry-form {
	background: var(--color-bg-soft);
	border-radius: var(--radius);
	padding: 28px;
}

.inquiry-form__title {
	margin: 0 0 6px;
	color: var(--color-navy);
}

.inquiry-form__note {
	margin: 0 0 20px;
	color: var(--color-text-muted);
}

.inquiry-form__fields {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.form-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.form-field label {
	font-size: 14px;
	font-weight: 600;
}

.form-field input,
.form-field textarea {
	padding: 12px 14px;
	border: 1px solid var(--color-border);
	border-radius: 10px;
	font-family: inherit;
	font-size: 15px;
	background: #fff;
}

.form-field input:focus,
.form-field textarea:focus {
	outline: 2px solid var(--color-navy);
	outline-offset: 1px;
	border-color: var(--color-navy);
}

.inquiry-form__sku {
	margin: 0;
	font-size: 15px;
}

/* ---------- Related ---------- */

.related-products {
	padding: 24px 0 64px;
}

.related-products .product-grid {
	grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 900px) {
	.related-products .product-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ---------- Footer ---------- */

.site-footer {
	background: var(--color-navy-dark);
	color: #d7dee6;
	margin-top: 40px;
}

.site-footer__inner {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 28px;
	padding: 40px 20px;
}

.site-footer__brand .site-brand__name {
	color: #fff;
}

.site-footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.site-footer__list a {
	color: #d7dee6;
}

.site-footer__copy {
	font-size: 13px;
	color: #93a1b0;
	align-self: end;
}

.site-footer__social {
	display: flex;
	gap: 12px;
	margin-top: 16px;
}

.site-footer__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	color: #d7dee6;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 50%;
	transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.site-footer__social a:hover {
	color: #fff;
	border-color: #fff;
	background: rgba(255, 255, 255, 0.08);
}

.site-footer__social svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

/* ---------- Page single ---------- */

.page-single {
	padding: 40px 20px;
}

.page-single__title {
	color: var(--color-navy);
}

/* ---------- Home: Hero ---------- */

.home-hero {
	background: var(--color-navy);
	color: #fff;
	padding: 72px 0;
}

.home-hero__eyebrow {
	margin: 0 0 12px;
	font-size: 14px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #f3b58f;
}

.home-hero__title {
	margin: 0 0 14px;
	font-size: 40px;
	line-height: 1.2;
	color: #fff;
	max-width: 720px;
}

.home-hero__subtitle {
	margin: 0 0 26px;
	font-size: 17px;
	color: #d7dee6;
	max-width: 620px;
}

.home-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.home-hero .btn--outline {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.5);
}

.home-hero .btn--outline:hover {
	background: #fff;
	color: var(--color-navy);
}

/* ---------- Home: Sections ---------- */

.home-section {
	padding: 56px 0;
}

.home-section--soft {
	background: var(--color-bg-soft);
}

.home-section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 26px;
}

.home-section__title {
	margin: 0;
	font-size: 28px;
	color: var(--color-navy);
}

.home-section__more {
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
}

/* ---------- Category cards ---------- */

.category-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 20px;
}

.category-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 22px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	background: #fff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
	border-color: var(--color-navy);
	box-shadow: var(--shadow-card-hover);
}

.category-card__name {
	font-size: 18px;
	font-weight: 600;
	color: var(--color-navy);
}

.category-card__count {
	font-size: 13px;
	color: var(--color-text-muted);
}

/* ---------- Feature cards ---------- */

.feature-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 20px;
}

.feature-card {
	padding: 24px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	background: #fff;
}

.feature-card__title {
	margin: 0 0 8px;
	font-size: 17px;
	color: var(--color-navy);
}

.feature-card__text {
	margin: 0;
	font-size: 14px;
	color: var(--color-text-muted);
}

/* ---------- Home CTA ---------- */

.home-cta {
	background: var(--color-navy-dark);
	color: #fff;
	padding: 56px 0;
}

.home-cta__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 14px;
}

.home-cta__title {
	margin: 0;
	font-size: 28px;
	color: #fff;
	max-width: 640px;
}

.home-cta__text {
	margin: 0;
	color: #d7dee6;
	max-width: 560px;
}

/* ---------- Contact ---------- */

.contact-grid {
	display: grid;
	grid-template-columns: 1fr 1.4fr;
	gap: 32px;
	padding: 40px 20px;
}

.contact-info__title {
	margin: 0 0 16px;
	font-size: 20px;
	color: var(--color-navy);
}

.contact-info__list {
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.contact-info__label {
	display: block;
	font-size: 13px;
	color: var(--color-text-muted);
}

.contact-info__value {
	font-size: 15px;
	color: var(--color-text);
}

.contact-info__value a {
	color: var(--color-navy);
	text-decoration: underline;
}

.contact-info__qr {
	display: inline-block;
	margin-top: 10px;
}

.contact-info__qr img {
	width: 150px;
	height: auto;
	padding: 8px;
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
}

.contact-info__wa {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.contact-info__wa .contact-info__label {
	align-self: flex-start;
}

.contact-info__wa .contact-info__qr {
	margin-top: 0;
}

.contact-info__wa-link {
	text-align: center;
}

/* ---------- Insights ---------- */

.insights-list {
	display: flex;
	flex-direction: column;
	gap: 22px;
	padding: 40px 20px 64px;
}

.insight-card {
	padding: 26px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	background: #fff;
}

.insight-card__date {
	font-size: 13px;
	color: var(--color-text-muted);
}

.insight-card__title {
	margin: 8px 0;
	font-size: 22px;
}

.insight-card__title a {
	color: var(--color-navy);
}

.insight-card__excerpt {
	margin: 0 0 12px;
	color: var(--color-text-muted);
}

.insight-card__more {
	font-size: 14px;
	font-weight: 600;
}

.page-hero__date {
	display: block;
	margin-top: 8px;
	color: var(--color-text-muted);
	font-size: 14px;
}

.insight-back {
	margin-top: 24px;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
	.product-single {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.site-footer__inner {
		grid-template-columns: 1fr;
	}

	.site-header__inner {
		flex-wrap: wrap;
		gap: 14px;
	}

	.site-header__cta {
		margin-left: 0;
	}

	.contact-grid {
		grid-template-columns: 1fr;
	}

	.product-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 600px) {
	.form-row {
		grid-template-columns: 1fr;
	}

	.product-single__b2b {
		grid-template-columns: 1fr;
	}

	.page-hero__title {
		font-size: 26px;
	}

	.home-hero__title {
		font-size: 28px;
	}

	.home-section__title,
	.home-cta__title {
		font-size: 22px;
	}

	.product-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}

	.product-single__thumbs img {
		flex-basis: calc((100% - 2 * 10px) / 3);
		width: calc((100% - 2 * 10px) / 3);
	}
}

@media (max-width: 420px) {
	.product-grid {
		grid-template-columns: 1fr;
	}

	.product-single__thumbs img {
		flex-basis: calc((100% - 10px) / 2);
		width: calc((100% - 10px) / 2);
	}
}
