/* ==========================================================================
   Wanhe Testing — main stylesheet
   Structure: tokens → base → layout → header → sections → components → footer → pages → responsive
   ========================================================================== */

/* ------------------------------------------------------------- Tokens */
:root {
	--c-primary: #1E90FF;
	--c-primary-dark: #0d5cb8;
	--c-navy: #0a1f3c;
	--c-navy-2: #10305c;
	--c-accent: #e6a23c;
	--c-red: #ff3b30;
	--c-text: #1c2733;
	--c-muted: #5c6b7a;
	--c-bg: #ffffff;
	--c-bg-soft: #f4f7fb;
	--c-border: #e3e9f0;
	--radius: 14px;
	--radius-sm: 8px;
	--shadow-sm: 0 2px 8px rgba(10, 31, 60, .06);
	--shadow-md: 0 10px 30px rgba(10, 31, 60, .10);
	--shadow-lg: 0 24px 60px rgba(10, 31, 60, .16);
	--container: 1200px;
	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.7;
	color: var(--c-text);
	background: var(--c-bg);
}

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

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

/* Never allow horizontal page scroll on small screens (closed mobile drawer
   is translated off-canvas and would otherwise widen the scroll area). */
html, body { overflow-x: hidden; overflow-x: clip; }

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .6em;
	line-height: 1.25;
	color: var(--c-navy);
	font-weight: 700;
	letter-spacing: -.01em;
}

p { margin: 0 0 1em; }

ul, ol { margin: 0 0 1em; padding-left: 1.25em; }

.container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 20px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
}

.skip-link:focus {
	position: fixed; top: 10px; left: 10px; z-index: 99999;
	background: var(--c-navy); color: #fff; padding: 10px 16px; border-radius: 6px;
	clip: auto; clip-path: none; width: auto; height: auto;
}

/* ------------------------------------------------------------- Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 26px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 15px;
	line-height: 1.2;
	border: 2px solid transparent;
	cursor: pointer;
	transition: all .2s ease;
	text-align: center;
}
.btn-lg { padding: 15px 34px; font-size: 16px; }

.btn-primary { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.btn-primary:hover { background: var(--c-primary-dark); border-color: var(--c-primary-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-light { background: #fff; color: var(--c-navy); border-color: #fff; }
.btn-light:hover { background: #e8f1fc; color: var(--c-navy); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-outline { background: transparent; color: var(--c-primary); border-color: var(--c-primary); }
.btn-outline:hover { background: var(--c-primary); color: #fff; }

.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ------------------------------------------------------------- Header */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: var(--wh-hdr-bg, rgba(255,255,255,.96));
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--c-border);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 24px; }

.site-branding { display: flex; align-items: center; flex-shrink: 0; }
.site-branding .custom-logo { max-height: 52px; width: auto; }

.brand-text { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
	display: inline-flex; align-items: center; justify-content: center;
	width: 42px; height: 42px; border-radius: 50%;
	background: var(--c-navy); color: var(--c-primary);
	font-weight: 800; font-size: 20px; border: 2px solid var(--c-primary);
}
.brand-name { font-size: 19px; font-weight: 800; color: var(--c-navy); letter-spacing: .01em; }

.main-nav { display: flex; align-items: center; gap: 20px; }

.nav-menu { display: flex; list-style: none; margin: 0; padding: 0; gap: 4px; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
	display: block; padding: 10px 14px; color: var(--c-text);
	font-weight: 500; font-size: 15px; border-radius: 8px;
}
.nav-menu > li > a:hover { color: var(--c-primary); background: var(--c-bg-soft); }
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current_page_item > a { color: var(--c-primary); font-weight: 700; }

.nav-menu .sub-menu {
	position: absolute; top: calc(100% + 8px); left: 0; z-index: 50;
	min-width: 240px; background: #fff; border: 1px solid var(--c-border);
	border-radius: 12px; box-shadow: var(--shadow-md);
	list-style: none; margin: 0; padding: 8px;
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: all .2s ease;
}
.nav-menu > li:hover .sub-menu,
.nav-menu > li:focus-within .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-menu .sub-menu a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--c-text); font-size: 14px; }
.nav-menu .sub-menu a:hover { background: var(--c-bg-soft); color: var(--c-primary); }

.nav-cta { white-space: nowrap; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; flex-direction: column; gap: 5px; }
.nav-toggle-bar { width: 24px; height: 2px; background: var(--c-navy); border-radius: 2px; transition: all .25s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------- Hero */
.hero {
	position: relative;
	background:
		radial-gradient(ellipse at 80% 20%, rgba(30, 144, 255, .28) 0%, transparent 55%),
		linear-gradient(135deg, var(--c-navy) 0%, var(--c-navy-2) 60%, #0d2c55 100%);
	color: #fff;
	overflow: hidden;
}
.hero::before {
	content: ""; position: absolute; inset: 0;
	background-image:
		linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
	background-size: 44px 44px;
	pointer-events: none;
}

.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding: 96px 20px 88px; }

.hero-eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 8px 16px; margin-bottom: 22px;
	background: rgba(30,144,255,.14); border: 1px solid rgba(30,144,255,.4);
	color: #9cc8ff; border-radius: 999px; font-size: 14px; font-weight: 600;
}

.hero-title { color: #fff; font-size: clamp(34px, 4.2vw, 54px); font-weight: 800; margin-bottom: 22px; line-height: 1.12; }

.hero-desc { color: rgba(255,255,255,.85); font-size: 18px; max-width: 620px; margin-bottom: 30px; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }

.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; }
.hero-points li {
	padding: 8px 16px; border-radius: 999px;
	background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
	font-size: 14px; font-weight: 500; color: rgba(255,255,255,.92);
}

.hero-visual { position: relative; min-height: 380px; }
.hero-visual-card {
	position: absolute; width: 260px;
	background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
	backdrop-filter: blur(10px);
	border-radius: 20px; padding: 22px;
	box-shadow: 0 20px 50px rgba(0,0,0,.25);
	display: flex; flex-direction: column; gap: 4px;
	animation: float 6s ease-in-out infinite;
}
.hv-card-2 { right: 0; top: 70px; animation-delay: 1.4s; }
.hv-card-3 { left: 40px; top: 230px; animation-delay: 2.6s; }
.hv-icon { font-size: 34px; margin-bottom: 8px; }
.hv-label { color: #fff; font-weight: 700; font-size: 16px; }
.hv-sub { color: rgba(255,255,255,.7); font-size: 13px; }

@keyframes float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-12px); }
}

/* ------------------------------------------------------------- Sections */
.section { padding: 88px 0; }
.section:nth-child(even) { background: var(--c-bg-soft); }

.section-head { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.section-eyebrow {
	display: inline-block; margin-bottom: 12px;
	color: var(--c-primary); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
}
.section-title { font-size: clamp(26px, 3vw, 38px); margin-bottom: 16px; }
.section-desc { color: var(--c-muted); font-size: 17px; }

.section-more { text-align: center; margin-top: 44px; }

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

/* Feature cards */
.feature-card {
	background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
	padding: 30px 24px; box-shadow: var(--shadow-sm);
	transition: transform .25s ease, box-shadow .25s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon { font-size: 32px; display: block; margin-bottom: 16px; }
.feature-title { font-size: 18px; margin-bottom: 10px; }
.feature-desc { color: var(--c-muted); font-size: 15px; margin: 0; }

/* Certification */
.cert-section { background: var(--c-bg-soft); }
.cert-grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: 40px; align-items: center; background: #fff; border: 1px solid var(--c-border); border-radius: 20px; padding: 44px; box-shadow: var(--shadow-sm); }
.cert-card h3 { font-size: 22px; }
.cert-card p { color: var(--c-muted); }
.cert-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; padding: 0; }
.cert-tags li { padding: 8px 16px; border-radius: 999px; background: var(--c-bg-soft); border: 1px solid var(--c-border); font-size: 14px; font-weight: 600; color: var(--c-navy); }

.cert-badges { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0; padding: 0; }
.cert-badges li {
	display: flex; align-items: center; justify-content: center;
	height: 86px; border-radius: 16px;
	background: linear-gradient(135deg, var(--c-navy), var(--c-navy-2));
	color: #fff; font-weight: 800; font-size: 22px; letter-spacing: .04em;
	border: 2px solid rgba(30,144,255,.35);
}

/* Product cards */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.product-card {
	background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
	overflow: hidden; box-shadow: var(--shadow-sm);
	display: flex; flex-direction: column;
	transition: transform .25s ease, box-shadow .25s ease;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.product-card-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-bg-soft); }
.product-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-card-media img { transform: scale(1.05); }

.product-badge {
	position: absolute; top: 14px; left: 14px; z-index: 2;
	background: var(--c-red); color: #fff;
	padding: 5px 14px; border-radius: 999px;
	font-size: 12px; font-weight: 700; letter-spacing: .04em;
}
.product-badge-lg { font-size: 14px; padding: 7px 18px; }

.product-card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; }
.product-card-title { font-size: 19px; margin-bottom: 10px; }
.product-card-title a { color: var(--c-navy); }
.product-card-title a:hover { color: var(--c-primary); }
.product-card-desc { color: var(--c-muted); font-size: 14px; margin-bottom: 16px; }

.product-card-specs { list-style: none; margin: 0 0 18px; padding: 0; border-top: 1px dashed var(--c-border); }
.product-card-specs li {
	display: flex; justify-content: space-between; gap: 12px;
	padding: 9px 0; border-bottom: 1px dashed var(--c-border);
	font-size: 13.5px;
}
.product-card-specs span { color: var(--c-muted); }
.product-card-specs strong { color: var(--c-navy); text-align: right; }

.product-card-link { margin-top: auto; font-weight: 700; font-size: 14.5px; }

/* Solutions */
.sol-card {
	background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
	padding: 32px 28px; box-shadow: var(--shadow-sm);
	transition: transform .25s ease, box-shadow .25s ease;
}
.sol-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.sol-title { font-size: 20px; display: flex; align-items: center; gap: 10px; }
.sol-desc { color: var(--c-muted); font-size: 15px; }
.sol-list { list-style: none; margin: 0; padding: 0; }
.sol-list li {
	position: relative; padding: 7px 0 7px 26px;
	font-size: 15px; color: var(--c-text); border-top: 1px dashed var(--c-border);
}
.sol-list li::before {
	content: "✓"; position: absolute; left: 0; top: 7px;
	color: var(--c-primary); font-weight: 800;
}

/* Service steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin: 0; padding: 0; }
.step {
	position: relative; background: #fff; border: 1px solid var(--c-border);
	border-radius: var(--radius); padding: 28px 22px; text-align: left;
	box-shadow: var(--shadow-sm);
}
.step-num {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border-radius: 12px; margin-bottom: 16px;
	background: var(--c-bg-soft); color: var(--c-primary);
	font-weight: 800; font-size: 16px; border: 1px solid rgba(30,144,255,.3);
}
.step-title { font-size: 17px; margin-bottom: 8px; }
.step-desc { color: var(--c-muted); font-size: 14px; margin: 0; }

/* Case cards */
.case-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.case-card {
	background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
	overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
	transition: transform .25s ease, box-shadow .25s ease;
}
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.case-card-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-navy); }
.case-card-media img { width: 100%; height: 100%; object-fit: cover; }
.case-location {
	position: absolute; left: 12px; bottom: 12px;
	background: rgba(10,31,60,.82); color: #fff;
	padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600;
}
.case-card-body { display: flex; flex-direction: column; flex: 1; padding: 20px; }
.case-year { color: var(--c-primary); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.case-card-title { font-size: 17px; margin-bottom: 8px; }
.case-card-title a { color: var(--c-navy); }
.case-card-title a:hover { color: var(--c-primary); }
.case-card-desc { color: var(--c-muted); font-size: 14px; margin-bottom: 14px; }
.case-card-link { margin-top: auto; font-weight: 700; font-size: 14px; }

/* Stats band */
.stats-band { background: linear-gradient(135deg, var(--c-navy), var(--c-navy-2)); color: #fff; padding: 60px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-num { font-size: clamp(34px, 4vw, 48px); font-weight: 800; color: #fff; }
.stat-label { color: rgba(255,255,255,.72); font-size: 15px; }

/* Factory */
.factory-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.factory-text .section-title { margin-top: 6px; }
.factory-points { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 24px 0 0; padding: 0; }
.factory-points li {
	padding: 12px 16px; background: #fff; border: 1px solid var(--c-border);
	border-radius: 10px; font-weight: 600; font-size: 14.5px; color: var(--c-navy);
}
.factory-visual { min-height: 320px; position: relative; }
.factory-map {
	position: relative; height: 320px; border-radius: 20px; overflow: hidden;
	background:
		radial-gradient(circle at 60% 50%, rgba(30,144,255,.5) 0%, transparent 60%),
		linear-gradient(135deg, #0e2a52, #143a6e);
	border: 1px solid rgba(30,144,255,.3);
	display: flex; align-items: center; justify-content: center;
}
.fm-pin { font-size: 40px; position: absolute; }
.fm-pin-1 { animation: float 3s ease-in-out infinite; }
.fm-label {
	position: absolute; bottom: 24px;
	background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25);
	color: #fff; padding: 8px 18px; border-radius: 999px; font-size: 14px; font-weight: 600;
}

/* FAQ */
.faq-container { max-width: 860px; }
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: #fff; border: 1px solid var(--c-border); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); }
.faq-q { margin: 0; }
.faq-btn {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	width: 100%; padding: 20px 24px;
	background: none; border: 0; cursor: pointer; text-align: left;
	font-family: inherit; font-size: 16.5px; font-weight: 700; color: var(--c-navy);
}
.faq-btn:hover { color: var(--c-primary); }
.faq-icon { position: relative; flex-shrink: 0; width: 22px; height: 22px; }
.faq-icon::before, .faq-icon::after {
	content: ""; position: absolute; top: 50%; left: 50%;
	background: var(--c-primary); border-radius: 2px; transition: all .25s ease;
}
.faq-icon::before { width: 18px; height: 2px; transform: translate(-50%, -50%); }
.faq-icon::after { width: 2px; height: 18px; transform: translate(-50%, -50%); }
.faq-btn[aria-expanded="true"] .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-a { padding: 0 24px 20px; }
.faq-a p { color: var(--c-muted); margin: 0; }

/* CTA */
.cta-section {
	background:
		radial-gradient(ellipse at 20% 0%, rgba(30,144,255,.3) 0%, transparent 55%),
		linear-gradient(120deg, var(--c-navy), var(--c-navy-2));
	color: #fff; padding: 80px 0;
}
.cta-inner { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; }
.cta-title { color: #fff; font-size: clamp(24px, 2.6vw, 34px); margin-bottom: 14px; }
.cta-desc { color: rgba(255,255,255,.82); font-size: 16.5px; }
.cta-contacts { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 26px; }
.cta-contacts a { color: #fff; font-weight: 600; }
.cta-contacts a:hover { color: #9cc8ff; }
.cta-actions { display: flex; flex-direction: column; gap: 14px; }

/* ------------------------------------------------------------- Footer */
/* Styled to match jx486.com product-detail footer: deep slate background
   (#0F172A), gold underline on column titles, round social icons,
   centered copyright bar with Privacy Policy · Sitemap links. */
.site-footer { background: var(--wh-ft-bg, #0F172A); color: #CBD5E1; padding: 65px 0 30px; }
/* Product-detail footer: always force the jx486 slate-black background,
   independently of any section-level background above it. */
body.single-product .site-footer { background: #0F172A; }
.footer-grid {
	display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px;
	margin-bottom: 40px;
}
.footer-title { color: #fff; font-size: 18px; margin: 0 0 22px; position: relative; padding-bottom: 10px; display: inline-block; }
.footer-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background: var(--c-accent, #E6B325); }
.footer-subtitle { color: #fff; font-size: 15px; margin: 18px 0 14px; font-weight: 700; }
.footer-about p { font-size: 14px; line-height: 1.8; margin: 0 0 16px; }
.footer-cert { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; }
.footer-cert li {
	padding: 5px 13px; border-radius: 999px;
	background: #1E293B; border: 1px solid #334155;
	font-size: 12.5px; font-weight: 700; color: #fff;
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #CBD5E1; font-size: 14px; }
.footer-links a:hover { color: var(--c-accent, #E6B325); padding-left: 4px; }
.footer-contact { list-style: none; margin: 0 0 18px; padding: 0; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: 14px; }
.footer-contact a { color: #CBD5E1; font-size: 14px; }
.footer-contact a:hover { color: var(--c-accent, #E6B325); }

.footer-social { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.footer-social .social-link {
	width: 36px; height: 36px; border-radius: 50%;
	background: #334155; border: 0;
	display: inline-flex; align-items: center; justify-content: center;
	color: #CBD5E1; font-size: 12.5px; font-weight: 600; padding: 0;
	transition: all .25s ease;
}
.footer-social .social-link .social-name { display: none; }
.footer-social .social-link:hover { background: var(--c-accent, #E6B325); color: #0F172A; transform: translateY(-2px); }

.footer-bottom { border-top: 1px solid #334155; padding-top: 28px; text-align: center; }
.footer-bottom-inner { display: flex; flex-direction: column; gap: 10px; }
.footer-bottom p { margin: 0; font-size: 13px; color: #94A3B8; }
.footer-bottom a { color: #94A3B8; }
.footer-bottom a:hover { color: var(--c-accent, #E6B325); }

/* ------------------------------------------------------------- Breadcrumbs */
.breadcrumbs { margin-top: 16px; }
.breadcrumbs-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; font-size: 14px; }
.breadcrumbs-item { display: flex; align-items: center; gap: 8px; }
.breadcrumbs-item:not(:last-child)::after { content: "›"; color: rgba(255,255,255,.45); }
.breadcrumbs-item a { color: rgba(255,255,255,.7); }
.breadcrumbs-item a:hover { color: #fff; }
.breadcrumbs-item.is-current span { color: #fff; }

/* ------------------------------------------------------------- Page hero */
.page-hero {
	background:
		radial-gradient(ellipse at 80% 0%, rgba(30,144,255,.22) 0%, transparent 55%),
		linear-gradient(135deg, var(--c-navy), var(--c-navy-2));
	color: #fff; padding: 60px 0 56px;
}
.page-hero-title { color: #fff; font-size: clamp(28px, 3.4vw, 42px); margin: 12px 0 8px; }
.page-hero .hero-eyebrow { margin-bottom: 4px; }
.page-hero-desc { color: rgba(255,255,255,.82); font-size: 17px; max-width: 720px; }
.page-hero .hero-points { margin-top: 18px; }
.hero-model { font-size: .55em; color: #9cc8ff; font-weight: 600; }

.page-body { padding: 64px 0; }
.page-content { max-width: 860px; }

/* Entry content */
.entry-content h2 { font-size: 26px; margin: 2em 0 .7em; }
.entry-content h3 { font-size: 21px; margin: 1.8em 0 .6em; }
.entry-content ul, .entry-content ol { margin-bottom: 1.4em; }
.entry-content li { margin-bottom: 6px; }
.entry-content img { border-radius: 12px; margin: 1.2em 0; }
.entry-content blockquote {
	margin: 1.5em 0; padding: 18px 24px;
	border-left: 4px solid var(--c-primary); background: var(--c-bg-soft);
	border-radius: 0 12px 12px 0;
}
.entry-featured { margin-bottom: 32px; }
.entry-featured img { border-radius: 16px; width: 100%; }

.entry-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 8px 0 0; padding: 0; color: rgba(255,255,255,.75); font-size: 14px; }
.entry-meta a { color: #9cc8ff; }

.entry-tags { margin-top: 32px; display: flex; gap: 8px; flex-wrap: wrap; }
.entry-tags span { font-weight: 700; color: var(--c-navy); }
.entry-tags a { background: var(--c-bg-soft); padding: 6px 14px; border-radius: 999px; font-size: 13px; color: var(--c-primary); }

/* ------------------------------------------------------------- Blog */
.blog-layout { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.post-list { display: grid; grid-template-columns: 1fr; gap: 28px; }
.post-list-3 { grid-template-columns: repeat(3, 1fr); }

.post-card {
	display: grid; grid-template-columns: 300px 1fr; gap: 26px;
	background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
	overflow: hidden; box-shadow: var(--shadow-sm);
	transition: box-shadow .25s ease;
}
.post-card:hover { box-shadow: var(--shadow-md); }
.post-card-media { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--c-bg-soft); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 22px 22px 22px 0; display: flex; flex-direction: column; }
.post-list-3 .post-card { grid-template-columns: 1fr; }
.post-list-3 .post-card-body { padding: 0 20px 20px; }
.post-card-meta { list-style: none; display: flex; gap: 16px; margin: 0 0 10px; padding: 0; font-size: 13px; color: var(--c-muted); }
.post-card-title { font-size: 20px; margin-bottom: 10px; }
.post-card-title a { color: var(--c-navy); }
.post-card-title a:hover { color: var(--c-primary); }
.post-card-excerpt { color: var(--c-muted); font-size: 15px; }
.post-card-link { margin-top: auto; font-weight: 700; font-size: 14px; }

/* Pagination */
.pagination { margin: 48px 0 0; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 42px; height: 42px; padding: 0 12px;
	border: 1px solid var(--c-border); border-radius: 10px;
	color: var(--c-text); font-weight: 600; font-size: 14px;
}
.pagination .page-numbers.current { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.pagination a.page-numbers:hover { border-color: var(--c-primary); color: var(--c-primary); }

/* Sidebar */
.widget { margin-bottom: 32px; }
.widget-title { font-size: 18px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--c-primary); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget ul li { margin-bottom: 10px; font-size: 15px; }
.widget a { color: var(--c-text); }
.widget a:hover { color: var(--c-primary); }

/* ------------------------------------------------------------- Product detail */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; margin-bottom: 48px; }
.product-gallery { position: relative; border-radius: 18px; overflow: hidden; background: var(--c-bg-soft); }
.product-gallery img { width: 100%; border-radius: 18px; }
.product-model { margin: 0 0 10px; font-size: 14px; font-weight: 600; color: var(--c-navy); }
.product-model .pm-label { color: var(--c-muted); font-weight: 500; }
.product-info-title { font-size: 24px; }
.product-info-sub { font-size: 18px; margin: 22px 0 12px; }
.product-desc { color: var(--c-muted); }

.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: 15px; }
.spec-table th, .spec-table td { padding: 12px 14px; border: 1px solid var(--c-border); text-align: left; }
.spec-table th { background: var(--c-bg-soft); color: var(--c-navy); width: 42%; font-weight: 600; }
.spec-table td { color: var(--c-text); }

.product-standards { font-size: 14.5px; color: var(--c-muted); }
.product-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 24px; padding: 0; }
.product-trust li {
	padding: 7px 14px; border-radius: 999px;
	background: var(--c-bg-soft); border: 1px solid var(--c-border);
	font-size: 13px; font-weight: 600; color: var(--c-navy);
}
.product-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.product-content { max-width: 900px; }
.product-faq { margin-top: 56px; }
.product-faq .section-title { text-align: left; }

/* Related */
.related-section { margin-top: 60px; }
.related-title { font-size: 24px; margin-bottom: 26px; }

/* ------------------------------------------------------------- Contact */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-title { font-size: 24px; }
.contact-list { list-style: none; margin: 28px 0 22px; padding: 0; }
.contact-list li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--c-border); }
.contact-ico { font-size: 24px; flex-shrink: 0; }
.contact-list strong { display: block; font-size: 15px; color: var(--c-navy); }
.contact-list span, .contact-list a { font-size: 15px; color: var(--c-muted); }
.contact-list a { color: var(--c-primary); }
.contact-cert { display: flex; flex-wrap: wrap; gap: 8px; }
.contact-cert span {
	padding: 6px 16px; border-radius: 999px;
	background: var(--c-navy); color: #fff; font-weight: 700; font-size: 13px;
}

.contact-form-wrap { background: var(--c-bg-soft); border: 1px solid var(--c-border); border-radius: 18px; padding: 36px; }
.contact-note { color: var(--c-muted); font-size: 14.5px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 7px; color: var(--c-navy); }
.form-field input, .form-field textarea {
	width: 100%; padding: 12px 16px;
	border: 1px solid var(--c-border); border-radius: 10px;
	font-family: inherit; font-size: 15px; color: var(--c-text);
	background: #fff; transition: border-color .2s ease, box-shadow .2s ease;
}
.form-field input:focus, .form-field textarea:focus {
	outline: none; border-color: var(--c-primary);
	box-shadow: 0 0 0 3px rgba(30,144,255,.15);
}
.form-success { color: #15803d; background: #f0fdf4; border: 1px solid #bbf7d0; padding: 12px 16px; border-radius: 10px; font-size: 14.5px; }

/* ------------------------------------------------------------- Search / 404 */
.search-form { display: flex; gap: 12px; margin-bottom: 40px; max-width: 560px; }
.search-form-field { flex: 1; }
.search-field {
	width: 100%; padding: 13px 18px;
	border: 1px solid var(--c-border); border-radius: 999px;
	font-family: inherit; font-size: 15px;
}
.search-field:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(30,144,255,.15); }

.error-404 { padding: 90px 0; text-align: center; }
.error-code { font-size: clamp(80px, 14vw, 150px); font-weight: 800; color: var(--c-bg-soft); line-height: 1; margin: 0; text-shadow: 0 2px 0 var(--c-border); }
.error-title { font-size: 32px; }
.error-desc { color: var(--c-muted); max-width: 520px; margin: 0 auto 28px; }
.error-404 .search-form { margin: 0 auto 36px; }
.error-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ------------------------------------------------------------- Cat filter */
.cat-filter { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 40px; }
.cat-chip {
	padding: 9px 20px; border-radius: 999px;
	background: #fff; border: 1px solid var(--c-border);
	font-size: 14px; font-weight: 600; color: var(--c-text);
	transition: all .2s ease;
}
.cat-chip:hover { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }

/* ------------------------------------------------------------- Comments */
.comments-area { margin-top: 52px; padding-top: 36px; border-top: 1px solid var(--c-border); max-width: 860px; }
.comments-title { font-size: 22px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment-body { padding: 20px 0; border-bottom: 1px solid var(--c-border); }
.comment-meta { font-size: 14px; color: var(--c-muted); margin-bottom: 8px; }
.comment-form label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 6px; }
.comment-form input, .comment-form textarea {
	width: 100%; padding: 11px 14px; border: 1px solid var(--c-border);
	border-radius: 10px; font-family: inherit; font-size: 15px; margin-bottom: 14px;
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--c-primary); }

/* ------------------------------------------------------------- Placeholder */
.wh-ph {
	display: flex; align-items: center; justify-content: center;
	width: 100%; height: 100%; min-height: 200px;
}
.wh-ph-in {
	display: inline-flex; align-items: center; justify-content: center;
	width: 92px; height: 92px; border-radius: 50%;
	background: rgba(255,255,255,.16); border: 2px solid rgba(255,255,255,.4);
	color: #fff; font-size: 34px; font-weight: 800;
}
.wh-ph.light .wh-ph-in { background: rgba(30,144,255,.1); border-color: rgba(30,144,255,.3); }
.ph-detail { min-height: 420px; border-radius: 18px; }

/* Reveal-on-scroll */
.feature-card, .product-card, .sol-card, .step, .case-card {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity .55s ease, transform .55s ease, box-shadow .25s ease;
}
.feature-card.is-visible, .product-card.is-visible, .sol-card.is-visible,
.step.is-visible, .case-card.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* ------------------------------------------------------------- Responsive */
@media (max-width: 1080px) {
	.grid-4 { grid-template-columns: repeat(2, 1fr); }
	.case-grid { grid-template-columns: repeat(2, 1fr); }
	.steps { grid-template-columns: repeat(3, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
	.product-detail { grid-template-columns: 1fr; }
	.hero-inner { grid-template-columns: 1fr; }
	.hero-visual { display: none; }
}

@media (max-width: 900px) {
	.main-nav {
		position: fixed; inset: 0; top: 74px; z-index: 99;
		flex-direction: column; align-items: flex-start;
		background: #fff; padding: 24px;
		transform: translateX(100%); transition: transform .3s ease;
		visibility: hidden;
		overflow-y: auto;
	}
	.main-nav.is-open { transform: translateX(0); visibility: visible; }
	.nav-menu { flex-direction: column; width: 100%; gap: 2px; }
	.nav-menu > li > a { padding: 14px 8px; font-size: 17px; }
	.nav-menu .sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none;
		box-shadow: none; border: 0; border-left: 2px solid var(--c-border);
		border-radius: 0; margin-left: 10px; padding: 4px 0 8px 8px;
	}
	.nav-cta-wrap { width: 100%; padding-top: 16px; }
	.nav-cta { width: 100%; }
	.nav-toggle { display: flex; }
	.grid-3 { grid-template-columns: 1fr; }
	.blog-layout { grid-template-columns: 1fr; }
	.contact-layout { grid-template-columns: 1fr; }
	.cta-inner { grid-template-columns: 1fr; }
	.post-card { grid-template-columns: 1fr; }
	.post-card-media { aspect-ratio: 16/9; }
	.post-card-body { padding: 0 22px 22px; }
	.post-list-3 { grid-template-columns: 1fr; }
	.cert-grid { grid-template-columns: 1fr; padding: 28px; }
	.factory-inner { grid-template-columns: 1fr; }
	.product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
	.section { padding: 60px 0; }
	.hero-inner { padding: 64px 20px 56px; }
	.grid-4 { grid-template-columns: 1fr; }
	.case-grid { grid-template-columns: 1fr; }
	.steps { grid-template-columns: 1fr; }
	.stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
	.product-grid { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; }
	.cert-badges { grid-template-columns: repeat(3, 1fr); gap: 10px; }
	.cert-badges li { height: 70px; font-size: 18px; }
	.contact-form-wrap { padding: 24px; }
	.hero-actions .btn { width: 100%; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
	html { scroll-behavior: auto; }
}

/* ---------------------------------------------------------------
   Product detail page: independent content section + forced table
   beautification. Scoped to the product detail page only.
   --------------------------------------------------------------- */
.product-content-section {
	background: #FFFFFF;
	padding: 64px 0 70px;
	margin-top: 0;
}
.product-content-section .product-content {
	/* jx486.com style: content sits directly on the section background,
	   no white card, no border, no shadow. */
	background: transparent;
	border: 0;
	border-radius: 0;
	padding: 0;
	box-shadow: none;
}
.product-content-section .article-tags { margin-top: 30px; }

/* Forced table beautification — product detail page content ONLY. */
body.wanhe-product-single .product-content table {
	width: 100%; margin: 22px 0 30px;
	border-collapse: separate !important; border-spacing: 0 !important;
	border: 1px solid #E2E8F0 !important; border-radius: 12px;
	overflow: hidden; font-size: 15px; line-height: 1.55;
	background: #fff;
	box-shadow: 0 2px 14px rgba(15, 23, 42, .06);
}
body.wanhe-product-single .product-content table th {
	background: #0A2463 !important; color: #fff !important;
	padding: 14px 18px !important; text-align: left !important;
	font-weight: 600; font-size: 15px;
	border: none !important; border-right: 1px solid rgba(255,255,255,.12) !important;
	letter-spacing: .02em;
}
body.wanhe-product-single .product-content table td {
	padding: 13px 18px !important; text-align: left !important;
	border: none !important; border-bottom: 1px solid #F1F5F9 !important;
	color: #475569; vertical-align: top; font-size: 14.5px;
}
body.wanhe-product-single .product-content table tr:nth-child(even) td { background: #F8FAFC !important; }
body.wanhe-product-single .product-content table tr:hover td { background: #F1F5F9 !important; }
body.wanhe-product-single .product-content table tr:last-child td { border-bottom: none !important; }


/* Product overview section: grey backdrop with independent white cards */
.product-detail .product-gallery {
	background: #fff; border: 1px solid #E9EEF5;
	box-shadow: 0 14px 34px rgba(15, 23, 42, .09);
	padding: 14px; border-radius: 18px;
}
.product-detail .product-gallery img { border-radius: 12px; }
.product-detail .product-info {
	background: #fff; border: 1px solid #E9EEF5;
	box-shadow: 0 14px 34px rgba(15, 23, 42, .09);
	border-radius: 18px; padding: 32px 34px;
}


/* FAQ section on product detail page: white backdrop */
body.wanhe-product-single .product-faq { background: #FFFFFF; }


/* Product gallery: main image + clickable thumbnails (multi-image switcher) */
.pd-main-img-wrap { position: relative; }
.pd-main-img { width: 100%; height: auto; display: block; border-radius: 12px; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.product-gallery .pd-thumb {
	width: 72px; height: 72px; object-fit: cover;
	border: 2px solid #E2E8F0; border-radius: 8px;
	cursor: pointer; transition: border-color .2s, box-shadow .2s;
}
.product-gallery .pd-thumb:hover { border-color: #0A2463; }
.product-gallery .pd-thumb.active { border-color: #0A2463; box-shadow: 0 0 0 2px rgba(10,36,99,.15); }
