/* =========================================================================
   Hexinxiang Corp — main stylesheet
   ========================================================================= */

:root {
	--ink: #0f1216;
	--graphite: #20262e;
	--steel: #39424d;
	--muted: #6d7681;
	--line: #e3e6ea;
	--paper: #ffffff;
	--sand: #f4f1eb;
	--accent: #e2591f;
	--accent-dark: #c4471a;
	--radius: 4px;
	--wrap: 1240px;
	--shadow: 0 18px 40px rgba(15, 18, 22, .12);
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--font-head: "Barlow Condensed", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.7;
	color: var(--steel);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent-dark); }

h1, h2, h3, h4 {
	font-family: var(--font-head);
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: .01em;
	color: var(--ink);
	margin: 0 0 .5em;
	text-transform: none;
}

h1 { font-size: clamp(2.2rem, 4.4vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1.1em; }

.hx-wrap {
	width: min(100% - 2.5rem, var(--wrap));
	margin-inline: auto;
}

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px;
}

.hx-skip {
	position: absolute; left: -9999px; top: 0; z-index: 999;
	background: var(--ink); color: #fff; padding: .75rem 1rem;
}
.hx-skip:focus { left: 1rem; top: 1rem; color: #fff; }

/* Buttons ----------------------------------------------------------------- */
.hx-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	padding: .95rem 1.6rem;
	font-family: var(--font-body);
	font-size: .9rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
	border: 1px solid transparent; border-radius: var(--radius);
	cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.hx-btn:hover { transform: translateY(-1px); }

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

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

.hx-btn--light { background: #fff; color: var(--ink); }
.hx-btn--light:hover { background: var(--sand); color: var(--ink); }

.hx-btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.hx-btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

.hx-btn--ghost-dark { border-color: var(--line); color: var(--ink); background: transparent; }
.hx-btn--ghost-dark:hover { border-color: var(--ink); color: var(--ink); background: var(--sand); }

.hx-link-arrow {
	display: inline-flex; align-items: center; gap: .35rem;
	font-weight: 600; font-size: .88rem; letter-spacing: .04em; text-transform: uppercase;
	color: var(--ink);
}
.hx-link-arrow:hover { color: var(--accent); }
.hx-link-arrow--light { color: rgba(255,255,255,.8); }
.hx-link-arrow--light:hover { color: #fff; }

.hx-eyebrow {
	margin: 0 0 .6rem;
	font-size: .76rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
	color: var(--accent);
}
.hx-eyebrow--light { color: #f3a077; }

/* Top bar & header -------------------------------------------------------- */
.hx-topbar {
	background: var(--ink); color: rgba(255,255,255,.7);
	font-size: .78rem; letter-spacing: .03em;
}
.hx-topbar-inner {
	display: flex; justify-content: space-between; align-items: center; gap: 1rem;
	padding: .55rem 0;
}
.hx-topbar a { color: rgba(255,255,255,.85); }
.hx-topbar a:hover { color: #fff; }
.hx-topbar-sep { margin: 0 .6rem; opacity: .35; }

.hx-topbar-contact { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.hx-topbar-item {
	display: inline-flex; align-items: center; gap: .5rem;
	font-size: .8rem; letter-spacing: .02em; color: rgba(255,255,255,.82);
}
.hx-topbar-item svg { color: var(--accent); flex: none; }
.hx-topbar-right { display: flex; align-items: center; }

.hx-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255,255,255,.97);
	border-bottom: 1px solid var(--line);
	backdrop-filter: saturate(180%) blur(8px);
	transition: box-shadow .25s ease;
}
.hx-header.is-stuck { box-shadow: 0 8px 24px rgba(15,18,22,.08); }
.hx-header-inner {
	display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
	min-height: 76px;
}

.hx-logo { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); }
.hx-logo:hover { color: var(--ink); }
.hx-logo-mark {
	display: inline-grid; place-items: center;
	width: 42px; height: 42px; border-radius: 3px;
	background: var(--ink); color: #fff;
	font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; letter-spacing: .02em;
}
.hx-logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.hx-logo-text strong { font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; letter-spacing: .06em; }
.hx-logo-text small { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

.hx-nav { display: flex; align-items: center; gap: 1.5rem; }
.hx-nav-list {
	display: flex; align-items: center; gap: 1.7rem;
	list-style: none; margin: 0; padding: 0;
}
.hx-nav-list li { position: relative; }
.hx-nav-list a {
	display: inline-block; padding: .45rem .15rem;
	font-size: .9rem; font-weight: 600; letter-spacing: .01em; text-transform: none;
	white-space: nowrap;
	color: var(--ink);
}
.hx-nav-list a:hover { color: var(--accent); }
.hx-nav-list .current-menu-item > a,
.hx-nav-list .current_page_item > a { color: var(--accent); }

.hx-nav-list .sub-menu {
	position: absolute; top: 100%; left: -1rem;
	min-width: 220px; margin: 0; padding: .5rem 0;
	list-style: none; background: #fff; border: 1px solid var(--line);
	box-shadow: var(--shadow); border-radius: var(--radius);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: all .18s ease; z-index: 60;
}
.hx-nav-list li:hover > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.hx-nav-list .sub-menu a { display: block; padding: .5rem 1.1rem; font-size: .82rem; text-transform: none; letter-spacing: 0; }

.hx-nav-cta { padding: .7rem 1.1rem; font-size: .8rem; }

.hx-nav-toggle {
	display: none; flex-direction: column; gap: 5px;
	width: 44px; height: 44px; align-items: center; justify-content: center;
	background: none; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
}
.hx-nav-toggle-bar { width: 20px; height: 2px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }

/* Hero -------------------------------------------------------------------- */
.hx-hero {
	position: relative; isolation: isolate;
	min-height: clamp(520px, 62vh, 720px);
	display: flex; align-items: center;
	background-size: cover; background-position: center;
	color: #fff;
}
.hx-hero-overlay {
	position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(90deg, rgba(10,13,16,.86) 0%, rgba(10,13,16,.55) 55%, rgba(10,13,16,.25) 100%);
}
.hx-hero-inner { padding: 5rem 0; max-width: none; }
.hx-hero h1 { color: #fff; max-width: 18ch; }
.hx-hero-sub { max-width: 620px; font-size: 1.05rem; color: rgba(255,255,255,.82); }
.hx-hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

/* Stats ------------------------------------------------------------------- */
.hx-stats { border-bottom: 1px solid var(--line); background: #fff; }
.hx-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.hx-stat {
	padding: 1.6rem 1.2rem; text-align: center;
	border-left: 1px solid var(--line);
}
.hx-stat:first-child { border-left: 0; }
.hx-stat strong { display: block; font-family: var(--font-head); font-size: 2rem; line-height: 1; color: var(--ink); }
.hx-stat span { display: block; margin-top: .4rem; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* Sections ---------------------------------------------------------------- */
.hx-section { padding: 5rem 0; }
.hx-section--sand { background: var(--sand); }
.hx-section--dark { background: var(--graphite); color: rgba(255,255,255,.72); }
.hx-section--dark h2 { color: #fff; }

.hx-section-head {
	display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem;
	margin-bottom: 2.4rem;
}
.hx-section-head h2 { margin-bottom: 0; max-width: 22ch; }
.hx-section-head--light h2 { color: #fff; }

/* Category grid ----------------------------------------------------------- */
.hx-cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.hx-cat-card {
	position: relative; display: block; overflow: hidden;
	border-radius: var(--radius); background: var(--sand);
	color: var(--ink); aspect-ratio: 4 / 3;
}
.hx-cat-card img {
	width: 100%; height: 100%; object-fit: cover;
	transition: transform .5s ease;
}
.hx-cat-card::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(10,13,16,0) 35%, rgba(10,13,16,.82) 100%);
}
.hx-cat-card:hover img { transform: scale(1.05); }
.hx-cat-card-body {
	position: absolute; left: 1rem; right: 1rem; bottom: .9rem; z-index: 2;
	display: flex; flex-direction: column; color: #fff;
}
.hx-cat-card-body strong { font-family: var(--font-head); font-size: 1.2rem; font-weight: 600; line-height: 1.1; }
.hx-cat-card-body em { font-style: normal; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.7); }

/* Product cards ----------------------------------------------------------- */
.hx-product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.hx-product-card {
	display: flex; flex-direction: column;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	overflow: hidden; transition: box-shadow .25s ease, transform .25s ease;
}
.hx-product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.hx-product-thumb {
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #fff;
	padding: 8px;
}
.hx-product-thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	transition: transform .5s ease;
}
.hx-product-card:hover .hx-product-thumb img { transform: scale(1.02); }
.hx-product-body { display: flex; flex-direction: column; gap: .45rem; padding: 1.1rem 1.2rem 1.3rem; flex: 1; }
.hx-product-cat { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.hx-product-body h3 { font-size: 1.12rem; margin: 0; line-height: 1.25; }
.hx-product-body h3 a { color: var(--ink); }
.hx-product-body h3 a:hover { color: var(--accent); }
.hx-product-body .hx-link-arrow { margin-top: auto; padding-top: .8rem; }

/* About ------------------------------------------------------------------- */
.hx-about { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.hx-about-media img { width: 100%; border-radius: var(--radius); }
.hx-about-body h2 { max-width: 20ch; }
.hx-about-body .hx-btn { margin-top: .6rem; }

/* Applications ------------------------------------------------------------ */
.hx-app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.hx-app-card {
	position: relative; display: block; overflow: hidden; border-radius: var(--radius);
	aspect-ratio: 3 / 4; color: #fff;
}
.hx-app-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hx-app-card:hover img { transform: scale(1.05); }
.hx-app-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,13,16,0) 30%, rgba(10,13,16,.88) 100%); }
.hx-app-card span { position: absolute; left: 1.3rem; right: 1.3rem; bottom: 1.2rem; z-index: 2; display: flex; flex-direction: column; gap: .3rem; }
.hx-app-card strong { font-family: var(--font-head); font-size: 1.45rem; color: #fff; }
.hx-app-card em { font-style: normal; font-size: .88rem; color: rgba(255,255,255,.72); }

/* Blog cards -------------------------------------------------------------- */
.hx-post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.hx-post-grid--list { grid-template-columns: repeat(2, 1fr); }
.hx-post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.hx-post-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand); }
.hx-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hx-post-body { padding: 1.2rem 1.3rem 1.5rem; }
.hx-post-body time { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.hx-post-body h2, .hx-post-body h3 { font-size: 1.25rem; margin: .5rem 0; line-height: 1.3; }
.hx-post-body h2 a, .hx-post-body h3 a { color: var(--ink); }
.hx-post-body h2 a:hover, .hx-post-body h3 a:hover { color: var(--accent); }
.hx-post-body p { margin: 0; font-size: .94rem; color: var(--muted); }

/* Page head / content ----------------------------------------------------- */
.hx-page-head {
	padding: 3.4rem 0 2.6rem;
	background: var(--sand);
	border-bottom: 1px solid var(--line);
}
.hx-page-head h1 { margin-bottom: .4rem; }
.hx-page-desc { max-width: 760px; color: var(--muted); }
.hx-content { padding: 3.2rem 0 4.5rem; }
.hx-content--narrow { max-width: 880px; }

.hx-prose { font-size: 1.02rem; }
.hx-prose h2 { margin-top: 2rem; font-size: 1.9rem; }
.hx-prose h3 { margin-top: 1.6rem; }
.hx-prose ul, .hx-prose ol { padding-left: 1.2rem; }
.hx-prose img, .hx-prose iframe { border-radius: var(--radius); }
.hx-prose table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; }
.hx-prose th, .hx-prose td { border: 1px solid var(--line); padding: .55rem .7rem; text-align: left; }
.hx-prose th { background: var(--sand); }

/* Breadcrumbs & chips ----------------------------------------------------- */
.hx-crumbs { font-size: .78rem; letter-spacing: .04em; color: var(--muted); margin-bottom: .9rem; }
.hx-crumbs a { color: var(--muted); }
.hx-crumbs a:hover { color: var(--accent); }
.hx-crumbs span { margin: 0 .35rem; opacity: .5; }
.hx-crumbs-current { color: var(--ink); }

.hx-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.hx-chip {
	padding: .5rem .9rem; border: 1px solid var(--line); border-radius: 999px;
	font-size: .8rem; font-weight: 600; color: var(--steel); background: #fff;
}
.hx-chip:hover { border-color: var(--ink); color: var(--ink); }
.hx-chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.hx-pagination { margin-top: 2.5rem; }
.hx-pagination .page-numbers {
	display: inline-grid; place-items: center; min-width: 40px; height: 40px;
	margin-right: .35rem; padding: 0 .6rem;
	border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); font-weight: 600;
}
.hx-pagination .page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; }

.hx-archive-cta {
	margin-top: 3.5rem; padding: 2.6rem;
	background: var(--sand); border-radius: var(--radius); text-align: center;
}
.hx-archive-cta h2 { font-size: 1.9rem; }
.hx-archive-cta p { color: var(--muted); }

/* Product page ------------------------------------------------------------ */
.hx-product-page { padding: 2.6rem 0 4.5rem; }
.hx-product-top { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: start; }

.hx-gallery-main {
	aspect-ratio: 1 / 1; background: var(--sand); border-radius: var(--radius); overflow: hidden;
}
.hx-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.hx-gallery-thumbs { display: flex; gap: .6rem; margin-top: .7rem; flex-wrap: wrap; }
.hx-gallery-thumb {
	width: 78px; height: 78px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius);
	overflow: hidden; background: var(--sand); cursor: pointer;
}
.hx-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hx-gallery-thumb.is-active { border-color: var(--accent); }

.hx-product-summary h1 { margin-bottom: .5rem; }
.hx-product-lede { font-size: 1.05rem; color: var(--muted); }
.hx-product-points { list-style: none; margin: 1.4rem 0; padding: 0; }
.hx-product-points li {
	position: relative; padding-left: 1.6rem; margin-bottom: .45rem; font-size: .95rem;
}
.hx-product-points li::before {
	content: ""; position: absolute; left: 0; top: .55em;
	width: 8px; height: 8px; background: var(--accent); border-radius: 50%;
}
.hx-product-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.6rem 0; }
.hx-product-note {
	display: flex; flex-direction: column; gap: .2rem;
	padding: 1rem 1.1rem; background: var(--sand); border-left: 3px solid var(--accent);
	font-size: .88rem;
}
.hx-product-note strong { color: var(--ink); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }

.hx-product-detail { display: grid; grid-template-columns: 1.3fr .7fr; gap: 3rem; margin-top: 4rem; }
.hx-product-side { position: sticky; top: 100px; }

.hx-related { margin-top: 4rem; }
.hx-related h2 { margin-bottom: 1.5rem; }

/* Inquiry form ------------------------------------------------------------ */
.hx-inquiry {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	padding: 1.6rem;
}
.hx-inquiry h2, .hx-inquiry h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.hx-form { display: flex; flex-direction: column; gap: 1rem; }
.hx-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hx-field { display: flex; flex-direction: column; gap: .35rem; }
.hx-field label { font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hx-field input, .hx-field textarea {
	width: 100%; padding: .8rem .9rem;
	border: 1px solid var(--line); border-radius: var(--radius);
	font-family: inherit; font-size: .95rem; color: var(--ink); background: #fff;
}
.hx-field input:focus, .hx-field textarea:focus { outline: none; border-color: var(--accent); }
.hx-hp { position: absolute; left: -9999px; }

.hx-alert { padding: .8rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: .92rem; }
.hx-alert--ok { background: #e8f5ec; color: #1c6b3a; border: 1px solid #bfe3cb; }
.hx-alert--err { background: #fdeceb; color: #8a2a21; border: 1px solid #f3c1bc; }

/* CTA band ---------------------------------------------------------------- */
.hx-cta { background: var(--accent); color: #fff; }
.hx-cta-inner {
	display: flex; align-items: center; justify-content: space-between; gap: 2rem;
	padding: 3rem 0;
}
.hx-cta h2 { color: #fff; margin: 0; max-width: 30ch; font-size: clamp(1.5rem, 2.4vw, 2rem); }

/* Footer ------------------------------------------------------------------ */
.hx-footer { background: var(--ink); color: rgba(255,255,255,.62); padding: 3.5rem 0 1.5rem; }
.hx-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.hx-footer h3 {
	color: #fff; font-family: var(--font-body); font-size: .78rem; font-weight: 700;
	letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.1rem;
}
.hx-footer ul { list-style: none; margin: 0; padding: 0; }
.hx-footer li { margin-bottom: .55rem; font-size: .9rem; }
.hx-footer a { color: rgba(255,255,255,.62); }
.hx-footer a:hover { color: #fff; }
.hx-footer-brand .hx-logo-mark { background: #fff; color: var(--ink); }
.hx-footer-brand .hx-logo-text strong { color: #fff; }
.hx-footer-brand .hx-logo-text small { color: rgba(255,255,255,.45); }
.hx-footer-brand p { margin-top: 1.2rem; font-size: .9rem; max-width: 34ch; }
.hx-contact-list li { display: flex; flex-direction: column; gap: .1rem; margin-bottom: 1rem; }
.hx-contact-list span { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.4); }
.hx-footer-bottom {
	display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
	margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.12);
	font-size: .78rem;
}
.hx-footer-bottom p { margin: 0; }

/* Single post ------------------------------------------------------------- */
.hx-single-head { margin-bottom: 1.8rem; }
.hx-single-media img { width: 100%; border-radius: var(--radius); margin-bottom: 2rem; }
.hx-single-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.hx-tags a { display: inline-block; margin-right: .4rem; padding: .25rem .6rem; border: 1px solid var(--line); border-radius: 999px; font-size: .78rem; color: var(--muted); }

.hx-404 { text-align: center; }
.hx-404 h1 { margin-top: .3rem; }

.search-form { display: flex; gap: .5rem; margin-top: 1rem; }
.search-form input[type="search"] {
	flex: 1; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: var(--radius); font-family: inherit;
}
.search-form input[type="submit"], .search-form button {
	padding: .75rem 1.2rem; border: 0; border-radius: var(--radius); background: var(--ink); color: #fff; cursor: pointer; font-weight: 600;
}

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1080px) {
	.hx-cat-grid, .hx-product-grid { grid-template-columns: repeat(3, 1fr); }
	.hx-footer-grid { grid-template-columns: 1fr 1fr; }
	.hx-product-top { grid-template-columns: 1fr; gap: 2rem; }
	.hx-product-detail { grid-template-columns: 1fr; }
	.hx-product-side { position: static; }
}

@media (max-width: 860px) {
	.hx-topbar-inner { flex-direction: column; align-items: flex-start; gap: .2rem; }
	.hx-topbar-links { flex-wrap: wrap; gap: .1rem .5rem; max-width: 100%; }
	.hx-topbar-links > span { min-width: 0; white-space: normal; }
	.hx-topbar .yibao-lang { margin-left: .2rem; }

	.hx-nav-toggle { display: flex; }
	.hx-nav {
		position: absolute; top: 100%; left: 0; right: 0;
		flex-direction: column; align-items: stretch; gap: 1rem;
		padding: 1.2rem;
		background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
		display: none;
	}
	.hx-nav.is-open { display: flex; }
	.hx-nav-list { flex-direction: column; align-items: stretch; gap: .2rem; }
	.hx-nav-list a { padding: .7rem 0; border-bottom: 1px solid var(--line); }
	.hx-nav-list .sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none;
		box-shadow: none; border: 0; padding-left: .8rem;
	}
	.hx-nav-cta { align-self: flex-start; }

	.hx-stats-grid { grid-template-columns: 1fr 1fr; }
	.hx-stat:nth-child(3) { border-left: 0; }
	.hx-stat:nth-child(n+3) { border-top: 1px solid var(--line); }

	.hx-cat-grid, .hx-product-grid { grid-template-columns: repeat(2, 1fr); }
	.hx-about { grid-template-columns: 1fr; gap: 2rem; }
	.hx-app-grid { grid-template-columns: 1fr; }
	.hx-post-grid, .hx-post-grid--list { grid-template-columns: 1fr 1fr; }
	.hx-section-head { flex-direction: column; align-items: flex-start; gap: 1rem; }
	.hx-cta-inner { flex-direction: column; align-items: flex-start; }
	.hx-footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 560px) {
	.hx-hero .hx-eyebrow { font-size: .66rem; letter-spacing: .1em; }
	.hx-hero h1 { font-size: clamp(1.9rem, 9vw, 2.4rem); }
	.hx-hero-sub { font-size: .95rem; }
	.hx-cat-grid, .hx-product-grid, .hx-post-grid, .hx-post-grid--list { grid-template-columns: 1fr; }
	.hx-form-row { grid-template-columns: 1fr; }
	.hx-hero-inner { padding: 3.5rem 0; }
	.hx-hero-actions { flex-direction: column; align-items: stretch; }
	.hx-gallery-thumb { width: 64px; height: 64px; }
	.hx-single-foot { flex-direction: column; align-items: flex-start; }
}

/* =========================================================================
   Hero slideshow
   ========================================================================= */
.hx-hero { background-color: var(--ink); }
.hx-hero-inner { text-align: left; }
.hx-eyebrow { text-align: left; }

.hx-hero-slide {
	position: absolute;
	inset: 0;
	z-index: -2;
	background-size: cover;
	background-position: center;
	opacity: 0;
	transition: opacity 1.2s ease;
}
.hx-hero-slide.is-active { opacity: 1; }
.hx-hero-overlay { z-index: -1; }

.hx-hero-dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 1.5rem;
	z-index: 3;
	display: flex;
	justify-content: center;
	gap: .55rem;
}
.hx-hero-dot {
	width: 11px;
	height: 11px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .75);
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	transition: background .2s ease, transform .2s ease;
}
.hx-hero-dot.is-active { background: #fff; transform: scale(1.1); }

/* =========================================================================
   Back to top
   ========================================================================= */
.hx-to-top {
	position: fixed;
	right: 22px;
	bottom: 24px;
	z-index: 90;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border: 0;
	border-radius: 50%;
	background: var(--ink);
	color: #fff;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity .25s ease, transform .25s ease, background .2s ease, visibility .25s;
	box-shadow: 0 12px 28px rgba(15, 18, 22, .22);
}
.hx-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.hx-to-top:hover { background: var(--accent); color: #fff; }

@media (max-width: 767px) {
	.hx-to-top { right: 14px; bottom: 78px; width: 42px; height: 42px; }
}

/* =========================================================================
   Yibao Multilingual switcher (inside dark top bar)
   ========================================================================= */
.hx-topbar-links {
	display: inline-flex;
	align-items: center;
	gap: .55rem;
	flex-wrap: wrap;
}
.hx-topbar-lang { display: inline-flex; align-items: center; }
.hx-topbar .yibao-lang { display: inline-flex; align-items: center; margin-left: .35rem; }
.hx-topbar .yibao-lang__toggle {
	font-family: var(--font-body);
	font-size: .74rem;
	letter-spacing: .1em;
	color: rgba(255, 255, 255, .78);
}
.hx-topbar .yibao-lang__toggle:hover { color: #fff; }
.hx-topbar .yibao-lang__toggle svg { color: var(--accent); }
.hx-topbar .yibao-lang__menu { top: calc(100% + 10px); border-top-color: var(--accent); }
.hx-topbar .yibao-lang__menu a,
.hx-topbar .yibao-lang__menu a span,
.hx-topbar .yibao-lang__menu a em {
	color: var(--ink);
	font-family: var(--font-body);
}
.hx-topbar .yibao-lang__menu a em { color: var(--muted); }
.hx-topbar .yibao-lang__menu a:hover,
.hx-topbar .yibao-lang__menu a:hover span { color: var(--accent); }
.hx-topbar .yibao-lang__menu a:hover { background: var(--sand); }

/* =========================================================================
   WebForms (unionwell-forms) inside the theme
   ========================================================================= */
.hx-inquiry--uwf { padding: 1.6rem; }
.hx-inquiry--uwf .uwf-wrap { margin: 0; }
.hx-inquiry--uwf .uwf-form { display: flex; flex-direction: column; gap: 1rem; }
.hx-inquiry--uwf .uwf-row { display: flex; flex-direction: column; gap: .35rem; }
.hx-inquiry--uwf .uwf-label {
	font-size: .76rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--muted);
}
.hx-inquiry--uwf .uwf-req { color: var(--accent); }
.hx-inquiry--uwf input[type="text"],
.hx-inquiry--uwf input[type="email"],
.hx-inquiry--uwf input[type="tel"],
.hx-inquiry--uwf textarea {
	width: 100%;
	padding: .8rem .9rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	font-family: inherit;
	font-size: .95rem;
	color: var(--ink);
	background: #fff;
}
.hx-inquiry--uwf input:focus,
.hx-inquiry--uwf textarea:focus { outline: none; border-color: var(--accent); }
.hx-inquiry--uwf .uwf-hint { font-size: .74rem; color: var(--muted); }
.hx-inquiry--uwf .uwf-submit,
.hx-inquiry--uwf button[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: .95rem 1.6rem;
	border: 0;
	border-radius: var(--radius);
	background: var(--accent);
	color: #fff;
	font-family: var(--font-body);
	font-size: .9rem;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background .2s ease;
}
.hx-inquiry--uwf .uwf-submit:hover { background: var(--accent-dark); }
.hx-inquiry--uwf .uwf-notice { padding: .8rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: .92rem; }
.hx-inquiry--uwf .uwf-notice--ok { background: #e8f5ec; color: #1c6b3a; border: 1px solid #bfe3cb; }
.hx-inquiry--uwf .uwf-notice--err { background: #fdeceb; color: #8a2a21; border: 1px solid #f3c1bc; }

/* =========================================================================
   Contact page
   ========================================================================= */
.hx-contact-layout {
	display: grid;
	grid-template-columns: 1fr 1.05fr;
	gap: 3.5rem;
	align-items: start;
}
.hx-contact-left { min-width: 0; }
.hx-contact-intro { margin-bottom: 1.8rem; }
.hx-contact-cards { display: grid; gap: .8rem; }
.hx-contact-card {
	display: flex; align-items: flex-start; gap: 1rem;
	padding: 1.1rem 1.2rem;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	color: var(--steel);
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
a.hx-contact-card:hover {
	border-color: var(--accent); color: var(--steel);
	box-shadow: 0 12px 26px rgba(15,18,22,.08); transform: translateY(-1px);
}
.hx-contact-icon {
	display: grid; place-items: center; flex: none;
	width: 44px; height: 44px; border-radius: 50%;
	background: var(--sand); color: var(--accent);
}
.hx-contact-body { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.hx-contact-body em {
	font-style: normal; font-size: .7rem; font-weight: 700;
	letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.hx-contact-body strong { font-weight: 600; color: var(--ink); font-size: .97rem; line-height: 1.45; }
.hx-contact-form { position: sticky; top: 100px; }
.hx-contact-form .hx-inquiry { padding: 1.8rem; }

/* =========================================================================
   Long-form content (About / FAQ)
   ========================================================================= */
.hx-lead { font-size: 1.15rem; color: var(--steel); line-height: 1.75; }
.hx-prose h2 {
	padding-top: 1.4rem;
	border-top: 1px solid var(--line);
}
.hx-prose h2:first-child { border-top: 0; padding-top: 0; }

.hx-values {
	display: grid; grid-template-columns: repeat(2, 1fr);
	gap: 1rem; margin: 1.6rem 0 2rem;
}
.hx-value {
	padding: 1.1rem 1.25rem;
	background: #fff; border: 1px solid var(--line);
	border-left: 3px solid var(--accent); border-radius: var(--radius);
}
.hx-value strong {
	display: block; font-family: var(--font-head); font-size: 1.2rem;
	line-height: 1.2; color: var(--ink); margin-bottom: .2rem;
}
.hx-value span { font-size: .92rem; color: var(--muted); }

.hx-faq {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	padding: 1rem 1.2rem; margin-bottom: .7rem;
}
.hx-faq summary {
	display: flex; justify-content: space-between; align-items: center; gap: 1rem;
	cursor: pointer; font-weight: 600; color: var(--ink);
	list-style: none;
}
.hx-faq summary::-webkit-details-marker { display: none; }
.hx-faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.hx-faq[open] summary::after { content: "−"; }
.hx-faq p { margin: .8rem 0 0; color: var(--muted); font-size: .96rem; }

.hx-about-gallery {
	display: grid; grid-template-columns: repeat(3, 1fr);
	gap: .8rem; margin: 1.8rem 0;
}
.hx-about-gallery img { display: block; width: 100%; height: 190px; object-fit: cover; border-radius: var(--radius); }

@media (max-width: 900px) {
	.hx-contact-layout { grid-template-columns: 1fr; gap: 2rem; }
	.hx-contact-form { position: static; }
}
@media (max-width: 560px) {
	.hx-values, .hx-about-gallery { grid-template-columns: 1fr; }
	.hx-about-gallery img { height: 200px; }
}

/* =========================================================================
   Applications page tiles
   ========================================================================= */
.hx-app-tiles {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.4rem;
	margin: 2rem 0 2.8rem;
}
.hx-app-tile {
	display: flex; flex-direction: column;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	overflow: hidden;
	transition: box-shadow .25s ease, transform .25s ease;
}
.hx-app-tile:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.hx-app-tile-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand); }
.hx-app-tile-media img {
	display: block; width: 100%; height: 100%; object-fit: cover;
	transition: transform .5s ease;
}
.hx-app-tile:hover .hx-app-tile-media img { transform: scale(1.05); }
.hx-app-tile-body { display: flex; flex-direction: column; gap: .45rem; padding: 1.2rem 1.3rem 1.5rem; }
.hx-app-tile-tag {
	font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
	color: var(--accent);
}
.hx-app-tile-body h3 { margin: 0; font-size: 1.3rem; line-height: 1.2; }
.hx-app-tile-body p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.6; }
.hx-app-tile-links { display: flex; flex-wrap: wrap; gap: .3rem .85rem; margin-top: .35rem; }
.hx-app-tile-links a {
	font-size: .82rem; font-weight: 600; color: var(--ink);
	border-bottom: 1px solid var(--line); padding-bottom: 1px;
}
.hx-app-tile-links a:hover { color: var(--accent); border-color: var(--accent); }

@media (max-width: 1080px) {
	.hx-app-tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.hx-app-tiles { grid-template-columns: 1fr; }
}

/* =========================================================================
   Top bar language pill
   ========================================================================= */
.hx-topbar-right { display: flex; align-items: center; }
.hx-lang-box {
	display: inline-flex; align-items: center; gap: .55rem;
	padding: .3rem .75rem .3rem .85rem;
	border: 1px solid rgba(255,255,255,.22);
	border-radius: 999px;
	background: rgba(255,255,255,.05);
	transition: border-color .2s ease, background .2s ease;
}
.hx-lang-box:hover { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.08); }
.hx-lang-label {
	font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
	color: rgba(255,255,255,.55); white-space: nowrap;
}
.hx-topbar .hx-lang-box .yibao-lang { margin-left: 0; }
.hx-topbar .hx-lang-box .yibao-lang__toggle {
	padding: 0; border: 0; background: transparent;
	font-size: .8rem; letter-spacing: .06em;
	color: #fff;
}
.hx-topbar .hx-lang-box .yibao-lang__toggle:hover { color: #fff; }
.hx-topbar .hx-lang-box .yibao-lang__toggle svg { color: var(--accent); }
.hx-topbar .hx-lang-box .yibao-lang__chevron { color: rgba(255,255,255,.7) !important; }

@media (max-width: 860px) {
	.hx-topbar-right { width: 100%; justify-content: center; padding-top: .15rem; }
	.hx-lang-box { padding: .32rem .9rem; }
}

/* Category SEO content block */
.hx-cat-seo {
	max-width: 920px;
	margin-top: 3.2rem;
	padding-top: 2.6rem;
	border-top: 1px solid var(--line);
}
.hx-cat-seo h2 { font-size: 1.8rem; margin-top: 2rem; }
.hx-cat-seo h2:first-child { margin-top: 0; }
.hx-cat-seo h3 { font-size: 1.2rem; margin-top: 1.5rem; }
.hx-cat-seo table { margin: 1.2rem 0; }

/* Coverage calculator */
.hx-calc {
	max-width: 560px;
	margin: 1.8rem 0;
	padding: 1.4rem 1.5rem;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
}
.hx-calc-row { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.hx-calc-row label {
	font-size: .76rem; font-weight: 700; letter-spacing: .08em;
	text-transform: uppercase; color: var(--muted);
}
.hx-calc-row input, .hx-calc-row select {
	width: 100%; padding: .75rem .9rem;
	border: 1px solid var(--line); border-radius: var(--radius);
	font-family: inherit; font-size: 1rem; color: var(--ink); background: #fff;
}
.hx-calc-row input:focus, .hx-calc-row select:focus { outline: none; border-color: var(--accent); }
.hx-calc-result {
	padding: .9rem 1rem;
	background: var(--sand);
	border-left: 3px solid var(--accent);
	border-radius: var(--radius);
	color: var(--ink); font-size: .98rem;
}
.hx-calc-note { margin: .8rem 0 0; font-size: .78rem; color: var(--muted); }

/* Anchor for WebForms redirect (#contact-form) */
#contact-form.hx-anchor { display: block; height: 0; scroll-margin-top: 110px; }

/* Mobile top bar: keep phone + email on one line */
@media (max-width: 420px) {
	.hx-topbar-contact {
		flex-wrap: nowrap;
		width: 100%;
		justify-content: space-between;
		gap: .4rem;
	}
	.hx-topbar-item {
		font-size: .72rem;
		letter-spacing: 0;
		gap: .3rem;
		white-space: nowrap;
	}
	.hx-topbar-item svg { width: 12px; height: 12px; }
}

/* WeChat QR modal */
.hx-qr-modal {
	position: fixed;
	inset: 0;
	z-index: 1000001;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 1.2rem;
	background: rgba(10, 13, 16, .62);
}
.hx-qr-modal.is-open { display: flex; }
.hx-qr-dialog {
	position: relative;
	background: #fff;
	border-radius: 12px;
	padding: 1.5rem 1.5rem 1.1rem;
	text-align: center;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
}
.hx-qr-dialog img {
	display: block;
	width: 260px;
	max-width: 68vw;
	height: auto;
	margin: 0 auto .7rem;
	border-radius: 6px;
}
.hx-qr-dialog p {
	margin: 0 0 .3rem;
	font-size: .86rem;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--muted);
}
.hx-qr-close {
	position: absolute;
	top: 4px;
	right: 10px;
	border: 0;
	background: none;
	font-size: 1.7rem;
	line-height: 1;
	color: var(--muted);
	cursor: pointer;
}
.hx-qr-close:hover { color: var(--ink); }
body.hx-qr-lock { overflow: hidden; }

/* Footer: COMPANY links stacked, wider CONTACT column */
.hx-footer-grid { grid-template-columns: 1.5fr 1fr .9fr 1.4fr; }
.hx-footer .hx-nav-list { display: block; }
.hx-footer .hx-nav-list li { display: block; margin-bottom: .55rem; }
.hx-footer .hx-nav-list a {
	display: inline;
	padding: 0;
	border: 0;
	font-size: .9rem;
	letter-spacing: 0;
	text-transform: none;
	white-space: normal;
	color: rgba(255, 255, 255, .62);
}
.hx-footer .hx-nav-list a:hover { color: #fff; }

/* Restore footer responsive columns after the desktop grid override */
@media (max-width: 1080px) {
	.hx-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
	.hx-footer-grid { grid-template-columns: 1fr; }
}
