/**
 * EVExport Theme — main.css
 * 移动端优先 / 8px 网格 / 无第三方库 / 零 jQuery。
 * 性能：仅系统字体栈（零外链字体请求，LCP 友好）；固定宽高比防 CLS。
 */

/* ---------- Tokens ---------- */
:root {
	--ev-navy: #0b1f33;
	--ev-navy-soft: #122c47;
	--ev-blue: #1a73e8;
	--ev-blue-dark: #1557b0;
	--ev-bg: #ffffff;
	--ev-bg-alt: #f4f7fa;
	--ev-text: #1c2b3a;
	--ev-text-soft: #5a6b7d;
	--ev-border: #e3e9ef;
	--ev-radius: 8px;
	--ev-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	--ev-container: 1200px;
	--ev-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
		Arial, "Noto Sans", sans-serif;
}

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

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

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

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

a { color: var(--ev-blue); text-decoration: none; }
a:hover { color: var(--ev-blue-dark); text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.25; color: var(--ev-navy); margin: 0 0 16px; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }

.ev-container {
	max-width: var(--ev-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);
}
.skip-link:focus {
	position: fixed; top: 8px; left: 8px; z-index: 100;
	width: auto; height: auto; clip: auto;
	background: var(--ev-navy); color: #fff; padding: 8px 16px; border-radius: 4px;
}

/* ---------- Header / Nav ---------- */
.ev-header {
	position: sticky; top: 0; z-index: 50;
	background: var(--ev-navy);
	color: #fff;
}
.ev-header-inner {
	display: flex; align-items: center; gap: 24px;
	min-height: 64px;
}
.ev-logo-text {
	color: #fff; font-weight: 700; font-size: 1.15rem; letter-spacing: 0.02em;
}
.ev-logo-text:hover { text-decoration: none; color: #fff; }
.custom-logo { max-height: 40px; width: auto; }

.ev-nav { flex: 1; }
.ev-nav-list {
	display: none; /* 移动端默认收起 */
	list-style: none; margin: 0; padding: 0;
	flex-direction: column;
	background: var(--ev-navy-soft);
	position: absolute; left: 0; right: 0; top: 64px;
	box-shadow: var(--ev-shadow);
}
.ev-nav-list li { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.ev-nav-list a {
	display: block; padding: 12px 20px;
	color: #e8eef5; font-weight: 500;
}
.ev-nav-list a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); text-decoration: none; }
.ev-nav-list .sub-menu {
	list-style: none; margin: 0; padding: 0 0 0 16px;
}
.ev-nav-list .menu-item-has-children:hover > .sub-menu { display: block; }
.ev-nav.is-open .ev-nav-list { display: flex; }

.ev-header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.ev-nav-toggle {
	display: inline-flex; flex-direction: column; gap: 4px;
	background: none; border: 0; padding: 8px; cursor: pointer;
}
.ev-nav-toggle-bar {
	width: 22px; height: 2px; background: #fff; border-radius: 2px;
}

.ev-btn {
	display: inline-block;
	padding: 10px 20px;
	border-radius: var(--ev-radius);
	font-weight: 600; font-size: 0.95rem;
	text-align: center;
	transition: background 0.2s ease, transform 0.2s ease;
}
.ev-btn:hover { text-decoration: none; transform: translateY(-1px); }
.ev-btn-primary { background: var(--ev-blue); color: #fff; }
.ev-btn-primary:hover { background: var(--ev-blue-dark); color: #fff; }
.ev-btn-ghost {
	background: transparent; color: var(--ev-blue);
	border: 1.5px solid var(--ev-blue);
}
.ev-btn-ghost:hover { background: rgba(26, 115, 232, 0.08); }
.ev-header .ev-btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.ev-btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.ev-btn-block { display: block; margin-top: 8px; }

/* ---------- Hero ---------- */
.ev-hero { position: relative; }
.ev-hero-img {
	display: block; width: 100%; height: auto;
	object-fit: cover; aspect-ratio: 16 / 9;
}
.ev-hero-overlay {
	position: absolute; inset: 0;
	display: flex; align-items: center;
	background: linear-gradient(90deg, rgba(6, 18, 30, 0.82) 0%, rgba(6, 18, 30, 0.45) 60%, rgba(6, 18, 30, 0.15) 100%);
	color: #fff;
}
.ev-hero-overlay .ev-container { width: 100%; }
.ev-hero-title { color: #fff; font-size: clamp(1.6rem, 4.5vw, 2.8rem); max-width: 640px; }
.ev-hero-sub { color: #dbe6f1; max-width: 560px; font-size: 1.05rem; }
.ev-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.ev-hero-cta .ev-btn-ghost { color: #fff; border-color: #fff; }
.ev-hero-cta .ev-btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- Sections / Grids ---------- */
.ev-main { min-height: 60vh; }
.ev-section { padding: 56px 0; }
.ev-section-alt { background: var(--ev-bg-alt); }
.ev-section-title { text-align: center; margin-bottom: 32px; font-size: 1.6rem; }
.ev-section-more { text-align: center; margin: 28px 0 0; }

.ev-grid { display: grid; gap: 24px; }
.ev-grid-2 { grid-template-columns: 1fr; }
.ev-grid-3, .ev-grid-4 { grid-template-columns: 1fr; }

/* ---------- Cards ---------- */
.ev-card, .ev-brand-card {
	background: #fff;
	border: 1px solid var(--ev-border);
	border-radius: var(--ev-radius);
	overflow: hidden;
	box-shadow: var(--ev-shadow);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ev-card:hover, .ev-brand-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}
.ev-card-link { display: block; color: inherit; }
.ev-card-link:hover { text-decoration: none; }
.ev-card-media {
	margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ev-bg-alt);
}
.ev-card-media img {
	width: 100%; height: 100%; object-fit: cover; display: block;
}
.ev-card-body { padding: 16px; }
.ev-card-type {
	display: inline-block;
	font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
	color: var(--ev-blue); margin-bottom: 6px;
}
.ev-card-title { font-size: 1.05rem; margin-bottom: 8px; }
.ev-card-excerpt { color: var(--ev-text-soft); font-size: 0.92rem; margin: 0 0 10px; }
.ev-card-cta { color: var(--ev-blue); font-weight: 600; font-size: 0.9rem; }
.ev-card-time { color: var(--ev-text-soft); font-size: 0.8rem; }

.ev-brand-media { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; }
.ev-brand-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-brand-body { padding: 20px; }

.ev-market-card {
	display: block; padding: 24px;
	background: #fff; border: 1px solid var(--ev-border);
	border-radius: var(--ev-radius);
}
.ev-market-card:hover { text-decoration: none; border-color: var(--ev-blue); }
.ev-market-card p { margin: 0; color: var(--ev-text-soft); font-size: 0.9rem; }

/* ---------- CTA band ---------- */
.ev-cta-band {
	background: var(--ev-navy);
	color: #fff;
	padding: 48px 0;
}
.ev-cta-inner { text-align: center; max-width: 640px; }
.ev-cta-band h2 { color: #fff; }
.ev-cta-band p { color: #c7d6e4; }
.ev-cta-band .ev-btn-primary { margin-top: 8px; }

/* ---------- Breadcrumb ---------- */
.ev-breadcrumb { padding: 16px 0 8px; font-size: 0.85rem; color: var(--ev-text-soft); }
.ev-breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.ev-breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--ev-border); }
.ev-breadcrumb a { color: var(--ev-text-soft); }

/* ---------- Single / Prose ---------- */
.ev-single { padding: 24px 0 56px; }
.ev-prose p { margin: 0 0 16px; }
.ev-prose ul, .ev-prose ol { margin: 0 0 16px; padding-left: 24px; }
.ev-prose h2 { margin-top: 36px; }

.ev-product-layout, .ev-brand-layout, .ev-article-layout, .ev-quote-layout, .ev-list-layout {
	display: grid; gap: 40px; grid-template-columns: 1fr;
	margin-top: 24px;
}
.ev-product-media { margin: 0 0 24px; border-radius: var(--ev-radius); overflow: hidden; }
.ev-product-media img { width: 100%; display: block; aspect-ratio: 16 / 9; object-fit: cover; }
.ev-product-title { font-size: 1.8rem; }
.ev-product-lede { color: var(--ev-text-soft); font-size: 1.05rem; }
.ev-article-media { margin: 0 0 24px; }
.ev-article-media img { width: 100%; border-radius: var(--ev-radius); display: block; }

/* Spec table */
.ev-specs { margin: 32px 0; }
.ev-table-wrap { overflow-x: auto; } /* 移动端表格横向滚动，防布局爆裂 */
.ev-spec-table {
	width: 100%; border-collapse: collapse;
	border: 1px solid var(--ev-border);
	border-radius: var(--ev-radius);
	overflow: hidden;
}
.ev-spec-table th, .ev-spec-table td {
	padding: 10px 14px; text-align: left;
	border-bottom: 1px solid var(--ev-border);
	font-size: 0.95rem;
}
.ev-spec-table tbody th { background: var(--ev-bg-alt); font-weight: 600; width: 38%; }
.ev-spec-table thead th { background: var(--ev-navy); color: #fff; }

/* FAQ */
.ev-faq { margin: 32px 0; }
.ev-faq-item {
	border: 1px solid var(--ev-border); border-radius: var(--ev-radius);
	margin-bottom: 10px; background: #fff;
}
.ev-faq-item summary {
	cursor: pointer; padding: 14px 16px; font-weight: 600; color: var(--ev-navy);
	list-style-position: inside;
}
.ev-faq-a { padding: 0 16px 14px; color: var(--ev-text-soft); }

/* Aside / inquiry box */
.ev-inquiry-box {
	background: var(--ev-bg-alt);
	border: 1px solid var(--ev-border);
	border-radius: var(--ev-radius);
	padding: 20px;
}
.ev-inquiry-box h2 { font-size: 1.15rem; }
.ev-price-line { color: var(--ev-text-soft); font-size: 0.95rem; }
.ev-aside-nav { margin-top: 24px; }
.ev-aside-nav ul { list-style: none; margin: 0; padding: 0; }
.ev-aside-nav li { border-bottom: 1px solid var(--ev-border); }
.ev-aside-nav a { display: block; padding: 10px 0; font-weight: 500; }
.ev-aside-nav .ev-btn { margin-top: 16px; }

/* Brand page */
.ev-brand-hero {
	background: var(--ev-navy-soft); color: #fff;
	padding: 48px 0;
}
.ev-brand-hero h1 { color: #fff; }
.ev-brand-hero .ev-product-lede { color: #c7d6e4; margin-bottom: 16px; }
.ev-market-block {
	background: #fff; border: 1px solid var(--ev-border);
	border-radius: var(--ev-radius); padding: 20px;
}
.ev-market-models { list-style: none; margin: 12px 0 0; padding: 0; }
.ev-market-models li { padding: 6px 0; border-bottom: 1px dashed var(--ev-border); }
.ev-market-models li:last-child { border-bottom: 0; }

/* Market landing */
.ev-market-hero {
	background: linear-gradient(135deg, var(--ev-navy) 0%, var(--ev-navy-soft) 100%);
	color: #fff; padding: 56px 0;
}
.ev-market-hero h1 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.ev-market-hero .ev-product-lede { color: #c7d6e4; margin-bottom: 16px; }
.ev-guide-list { list-style: none; margin: 0; padding: 0; }
.ev-guide-list li { padding: 10px 0; border-bottom: 1px solid var(--ev-border); }

/* Inquiry form */
.ev-inquiry-form {
	background: #fff; border: 1px solid var(--ev-border);
	border-radius: var(--ev-radius); padding: 20px;
}
.ev-inquiry-form label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.ev-inquiry-form input, .ev-inquiry-form select, .ev-inquiry-form textarea {
	width: 100%; padding: 10px 12px;
	border: 1px solid var(--ev-border); border-radius: var(--ev-radius);
	font-family: inherit; font-size: 0.95rem;
}
.ev-inquiry-form input:focus, .ev-inquiry-form select:focus, .ev-inquiry-form textarea:focus {
	outline: 2px solid var(--ev-blue); outline-offset: 1px; border-color: var(--ev-blue);
}
.ev-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; } /* honeypot 对人隐藏 */
.ev-form-success { background: #e8f5ee; border: 1px solid #b7dfc8; border-radius: var(--ev-radius); padding: 20px; }
.ev-form-error { background: #fdeeee; border: 1px solid #f0bcbc; border-radius: var(--ev-radius); padding: 12px 16px; margin-bottom: 16px; color: #a33; }
.ev-quote-layout { align-items: start; }
.ev-quote-form { position: sticky; top: 84px; }

/* Blog list / archive */
.ev-archive-wrap { padding: 24px 0 56px; }
.ev-archive-head { margin-bottom: 32px; }
.ev-grid-blog .ev-post-item {
	border: 1px solid var(--ev-border); border-radius: var(--ev-radius);
	padding: 20px;
}
.ev-post-title { font-size: 1.15rem; margin-bottom: 8px; }
.ev-card-meta { color: var(--ev-text-soft); font-size: 0.85rem; margin: 0 0 8px; }
.ev-pagination { margin-top: 32px; text-align: center; }
.ev-pagination .page-numbers {
	display: inline-block; padding: 8px 14px; margin: 0 4px;
	border: 1px solid var(--ev-border); border-radius: var(--ev-radius);
}
.ev-pagination .current { background: var(--ev-blue); border-color: var(--ev-blue); color: #fff; }

/* 资讯卡片 / 侧栏 / 相关文章 */
.ev-post-card-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.ev-post-card-meta .ev-card-time { margin-left: auto; }
.ev-article-topics { margin: 0 0 12px; }
.ev-article-tags { margin: 24px 0 8px; }
.ev-article-tags a {
	display: inline-block; margin: 0 8px 8px 0; padding: 4px 12px;
	border: 1px solid var(--ev-border); border-radius: 999px;
	font-size: 0.85rem; color: var(--ev-text-soft);
}
.ev-article-tags a:hover { border-color: var(--ev-blue); color: var(--ev-blue); text-decoration: none; }
.ev-related { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--ev-border); }
.ev-related h2 { margin-bottom: 20px; }
.ev-term-count { color: var(--ev-text-soft); font-weight: 400; font-size: 0.85rem; }
.ev-aside-more { display: inline-block; margin-top: 12px; font-weight: 600; color: var(--ev-blue); font-size: 0.9rem; }

.ev-page-wrap { padding: 24px 0 56px; max-width: 840px; }
.ev-404-links { padding-left: 20px; }

/* Footer */
.ev-footer { background: var(--ev-navy); color: #b9c8d6; padding: 48px 0 24px; font-size: 0.92rem; }
.ev-footer a { color: #dbe6f1; }
.ev-footer-grid {
	display: grid; gap: 32px; grid-template-columns: 1fr;
	padding-bottom: 32px;
}
.ev-footer-title { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.ev-footer ul { list-style: none; margin: 0; padding: 0; }
.ev-footer li { padding: 5px 0; }
.ev-footer-meta { font-size: 0.85rem; }
.ev-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding-top: 20px; font-size: 0.82rem;
}

/* ---------- Breakpoints ---------- */
@media (min-width: 640px) {
	.ev-grid-2 { grid-template-columns: repeat(2, 1fr); }
	.ev-grid-3 { grid-template-columns: repeat(2, 1fr); }
	.ev-grid-4 { grid-template-columns: repeat(2, 1fr); }
	.ev-footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
	h1 { font-size: 2.2rem; }
	.ev-nav-list {
		display: flex !important;
		flex-direction: row;
		position: static;
		background: none;
		box-shadow: none;
		gap: 4px;
	}
	.ev-nav-list li { border-top: 0; position: relative; }
	.ev-nav-list a { padding: 10px 12px; }
	.ev-nav-list .sub-menu {
		display: none;
		position: absolute; top: 100%; left: 0;
		min-width: 200px;
		background: var(--ev-navy-soft);
		padding: 0;
		box-shadow: var(--ev-shadow);
		border-radius: 0 0 var(--ev-radius) var(--ev-radius);
		overflow: hidden;
	}
	.ev-nav-list .menu-item-has-children:hover > .sub-menu,
	.ev-nav-list .menu-item-has-children:focus-within > .sub-menu { display: block; }
	.ev-nav-toggle { display: none; }
	.ev-grid-3 { grid-template-columns: repeat(3, 1fr); }
	.ev-grid-4 { grid-template-columns: repeat(4, 1fr); }
	.ev-footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
	.ev-product-layout { grid-template-columns: 2fr 1fr; }
	.ev-brand-layout { grid-template-columns: 2fr 1fr; }
	.ev-article-layout { grid-template-columns: 2.2fr 1fr; }
	.ev-list-layout { grid-template-columns: 2.4fr 1fr; }
	.ev-quote-layout { grid-template-columns: 1fr 1fr; }
	.ev-sidebar { position: sticky; top: 84px; }
}

/* Reduced motion（可访问性 + INP 稳定） */
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; animation: none !important; }
}

/* ---------- Floating WhatsApp button ---------- */
.ev-wa-float {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 9999;
	display: flex;
	align-items: center;
	gap: 10px;
	width: 56px;
	height: 56px;
	justify-content: center;
	background: #25d366;
	color: #fff;
	border-radius: 999px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.ev-wa-float svg { flex: 0 0 auto; display: block; }
.ev-wa-float:hover,
.ev-wa-float:focus-visible {
	background: #1eb857;
	transform: translateY(-2px) scale(1.05);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
	color: #fff;
}
/* 呼吸光环（吸引点击；reduced-motion 用户自动静默） */
.ev-wa-float::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: rgba(37, 211, 102, 0.45);
	animation: ev-wa-pulse 2.2s ease-out infinite;
	z-index: -1;
}
@keyframes ev-wa-pulse {
	0%   { transform: scale(1);   opacity: 0.6; }
	70%  { transform: scale(1.5); opacity: 0; }
	100% { transform: scale(1.5); opacity: 0; }
}
/* 带文案的胶囊形态 */
.ev-wa-float--text {
	width: auto;
	padding: 0 20px 0 16px;
	height: 52px;
}
.ev-wa-float-label {
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
}
/* 移动端适配：小屏收窄为纯图标 */
@media (max-width: 600px) {
	.ev-wa-float {
		width: 48px;
		height: 48px;
		right: 14px;
		bottom: 14px;
	}
	.ev-wa-float svg { width: 24px; height: 24px; }
	.ev-wa-float--text { width: auto; padding: 0 14px; }
	.ev-wa-float-label { display: none; }
}

/* --------------------------------------
   语言切换器（Polylang，header 右侧，下拉形态）
--------------------------------------- */
.ev-lang-switcher { position: relative; }
.ev-lang-switcher summary {
	list-style: none;
	cursor: pointer;
	user-select: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 8px;
	font-size: 0.78rem;
	line-height: 1;
	color: var(--ev-text-soft);
	text-transform: uppercase;
	transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.ev-lang-switcher summary::-webkit-details-marker { display: none; }
.ev-lang-switcher summary:hover { color: #fff; border-color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.06); }
.ev-lang-switcher summary img { display: block; width: 18px; height: auto; border-radius: 2px; }
.ev-lang-caret { flex: none; transition: transform 0.15s ease; opacity: 0.7; }
.ev-lang-switcher[open] .ev-lang-caret { transform: rotate(180deg); }

.ev-lang-menu {
	position: absolute;
	right: 0;
	top: calc(100% + 8px);
	z-index: 60;
	min-width: 200px;
	margin: 0;
	padding: 6px;
	list-style: none;
	background: #fff;
	border: 1px solid var(--ev-border);
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}
.ev-lang-menu li + li { margin-top: 2px; }
.ev-lang-menu a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 10px;
	border-radius: 6px;
	font-size: 0.85rem;
	line-height: 1.2;
	color: var(--ev-text);
	text-transform: none;
	white-space: nowrap;
	transition: background 0.15s ease, color 0.15s ease;
}
.ev-lang-menu a:hover { background: rgba(26, 115, 232, 0.08); color: var(--ev-blue); }
.ev-lang-menu a img { display: block; width: 18px; height: auto; border-radius: 2px; box-shadow: 0 0 0 1px var(--ev-border); }
.ev-lang-menu .ev-lang-name { flex: 1; }
.ev-lang-menu .ev-lang-code { font-size: 0.7rem; color: var(--ev-text-soft); }
.ev-lang-menu a[aria-current="true"] { color: var(--ev-blue); font-weight: 600; }
.ev-lang-menu a[aria-current="true"] .ev-lang-code { color: var(--ev-blue); }
.ev-lang-menu a[data-no-translation="1"] .ev-lang-code { opacity: 0.55; }
