/* ============================================================
   万可官网 · 主样式
   1. 变量与基础
   2. 布局与通用组件
   3. 页头 / 页脚
   4. 首页
   5. 内页
   6. 响应式
   ============================================================ */

/* ---------- 1. 变量与基础 ---------- */
:root {
	--blue-900: #0a2f5e;
	--blue-800: #0d4a95;
	--blue-700: #0b63c5;
	--blue-500: #1b7fe0;
	--blue-300: #29a8e0;
	--blue-100: #e8f3fd;
	--blue-50:  #f2f8fe;

	--ink:      #1f2733;
	--ink-2:    #414141;
	--gray-600: #5b6673;
	--gray-400: #8b95a1;
	--line:     #e3e9f0;

	--bg-soft:  #f5f8fc;
	--white:    #ffffff;

	--ok:   #16a34a;
	--warn: #f59e0b;
	--bad:  #dc2626;

	--radius:    18px;
	--radius-sm: 10px;
	--radius-lg: 28px;
	--wrap:      1200px;

	--shadow-sm: 0 2px 10px rgba(16, 48, 88, .06);
	--shadow:    0 12px 34px rgba(16, 48, 88, .10);
	--shadow-lg: 0 28px 70px rgba(16, 48, 88, .16);

	--ease: cubic-bezier(.22, .61, .36, 1);

	--font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Hiragino Sans GB",
	        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { 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(--ink-2);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

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

a { color: var(--blue-700); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--blue-500); }

h1, h2, h3, h4 {
	margin: 0 0 .6em;
	color: var(--ink);
	line-height: 1.25;
	font-weight: 800;
	letter-spacing: -.01em;
}

p { margin: 0 0 1em; }

ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid rgba(27, 127, 224, .5); outline-offset: 3px; border-radius: 4px; }

/* ---------- 2. 布局与通用组件 ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--blue-900); color: #cfe3f7; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }

.section-head { max-width: 780px; margin: 0 auto 52px; text-align: center; }
.section-eyebrow {
	display: inline-block;
	margin-bottom: 14px;
	padding: 6px 16px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .08em;
	color: var(--blue-700);
	background: var(--blue-100);
	border-radius: 999px;
}
.section-title { font-size: clamp(26px, 3.6vw, 42px); margin-bottom: 16px; }
.section-sub { font-size: 17px; color: var(--gray-600); margin: 0; }
.section-dark .section-sub { color: #9dc0e4; }

/* 按钮 */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 30px;
	font-size: 16px;
	font-weight: 700;
	font-family: inherit;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	transition: transform .22s var(--ease), box-shadow .22s var(--ease), background .22s var(--ease);
	white-space: nowrap;
}
.btn-primary {
	color: #fff;
	background: linear-gradient(135deg, var(--blue-700), var(--blue-300));
	box-shadow: 0 8px 22px rgba(11, 99, 197, .32);
}
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 32px rgba(11, 99, 197, .42); }
.btn-light { color: var(--blue-800); background: #fff; box-shadow: var(--shadow-sm); }
.btn-light:hover { color: var(--blue-700); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { color: var(--blue-700); background: transparent; border: 2px solid var(--blue-100); }
.btn-ghost:hover { background: var(--blue-100); }

/* 卡片 */
.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 26px;
}
.card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.card-link { display: block; color: inherit; }
.card-media { aspect-ratio: 16 / 10; background: var(--blue-50); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 22px 24px 26px; }
.card-date { font-size: 13px; color: var(--gray-400); }
.card-title { font-size: 19px; margin: 8px 0 10px; }
.card-excerpt { margin: 0; font-size: 15px; color: var(--gray-600); }
.card-more {
	display: inline-block;
	margin-top: 14px;
	font-size: 14px;
	font-weight: 700;
	color: var(--blue-700);
	transition: transform .22s var(--ease);
}
.card:hover .card-more { transform: translateX(4px); }

/* 数据 */
.stat-row { display: flex; flex-wrap: wrap; gap: 40px; justify-content: center; }
.stat { text-align: center; }
.stat-num {
	display: block;
	font-size: clamp(30px, 4vw, 46px);
	font-weight: 900;
	line-height: 1.1;
	background: linear-gradient(135deg, var(--blue-700), var(--blue-300));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.stat-label { display: block; margin-top: 6px; font-size: 14px; color: var(--gray-600); }
.section-dark .stat-label { color: #9dc0e4; }

/* 分页 / 面包屑 */
.pagination { margin-top: 56px; text-align: center; }
.pagination .page-numbers {
	display: inline-block;
	min-width: 42px;
	margin: 0 4px;
	padding: 9px 14px;
	border-radius: 10px;
	background: #fff;
	border: 1px solid var(--line);
	color: var(--ink-2);
	font-weight: 600;
}
.pagination .current { color: #fff; background: var(--blue-700); border-color: var(--blue-700); }
.breadcrumb { font-size: 14px; color: var(--gray-400); margin-bottom: 14px; }
.breadcrumb a { color: var(--gray-600); }
.breadcrumb span { margin: 0 8px; }

/* ---------- 3. 页头 / 页脚 ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, .92);
	backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid transparent;
	transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 4px 22px rgba(16, 48, 88, .08); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand-logo { height: 38px; width: auto; }
.brand .custom-logo { height: 38px; width: auto; }

.site-nav { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-list > li > a {
	display: block;
	padding: 10px 16px;
	font-size: 15px;
	font-weight: 600;
	color: var(--ink);
	border-radius: 10px;
	transition: background .2s var(--ease), color .2s var(--ease);
}
.nav-list > li > a:hover,
.nav-list > li.current-menu-item > a,
.nav-list > li.current_page_item > a { color: var(--blue-700); background: var(--blue-50); }

.header-actions { display: flex; align-items: center; gap: 16px; }
.header-tel { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; color: var(--ink); font-size: 16px; }
.header-tel svg { color: var(--blue-700); }
.header-cta { padding: 11px 22px; font-size: 15px; }
.nav-mobile-cta { display: none; }

.nav-toggle { display: none; width: 42px; height: 42px; padding: 0; background: none; border: 0; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; margin: 5px auto; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-footer { background: var(--blue-900); color: #9dc0e4; padding: 68px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 44px; }
.footer-logo { height: 36px; width: auto; margin-bottom: 18px; filter: brightness(0) invert(1); opacity: .95; }
.footer-slogan { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.footer-desc { font-size: 14px; line-height: 1.8; margin: 0; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 18px; letter-spacing: .04em; }
.site-footer li { margin-bottom: 11px; }
.site-footer a { color: #9dc0e4; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.footer-tel { display: block; font-size: 24px; font-weight: 900; color: #fff !important; margin-bottom: 10px; }
.footer-addr { font-size: 14px; line-height: 1.7; margin-bottom: 18px; }
.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: space-between;
	margin-top: 56px;
	padding: 22px 24px;
	border-top: 1px solid rgba(255, 255, 255, .1);
	font-size: 13px;
}
.footer-bottom p { margin: 0; }

/* ---------- 4.5 全站通用组件（深色章节 / 行动区 / 金句） ---------- */

/* 深色区块里的章节头 */
.section-dark .section-title,
.section-head-light .section-title { color: #fff; }
.section-dark .section-sub,
.section-head-light .section-sub { color: #9dc0e4; }
.section-head-light .section-eyebrow { color: #7fd4ff; background: rgba(41, 168, 224, .14); }

/* 行动区（首页 / 产品 / 灵犀 / 关于 共用） */
.cta { background: linear-gradient(135deg, var(--blue-800), var(--blue-900)); color: #cfe3f7; }
.cta-inner { text-align: center; max-width: 760px; margin: 0 auto; }
.cta h2 { color: #fff; font-size: clamp(26px, 3.4vw, 40px); }
.cta p { font-size: 17px; margin-bottom: 34px; color: #cfe3f7; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; align-items: center; }
.cta-tel { display: flex; flex-direction: column; text-align: left; color: #cfe3f7; }
.cta-tel:hover { color: #fff; }
.cta-tel span { font-size: 13px; }
.cta-tel strong { font-size: 24px; font-weight: 900; color: #fff; letter-spacing: .02em; }

/* 金句（章节收尾） */
.quote-line {
	margin: 52px 0 0;
	text-align: center;
	font-size: clamp(20px, 2.6vw, 30px);
	font-weight: 900;
	line-height: 1.5;
	letter-spacing: -.01em;
	color: var(--ink);
}
.quote-line::before,
.quote-line::after {
	content: "";
	display: inline-block;
	width: 26px;
	height: 2px;
	margin: 0 14px;
	vertical-align: middle;
	background: var(--blue-300);
	opacity: .75;
	border-radius: 2px;
}
.quote-line-light { color: #fff; }
.quote-line-light::before,
.quote-line-light::after { background: rgba(127, 212, 255, .75); }

/* ---------- 5. 内页 ---------- */
.page-hero {
	padding: 54px 0 32px;
	background: linear-gradient(180deg, var(--blue-50), #fff);
	border-bottom: 1px solid var(--line);
}
.page-title { font-size: clamp(26px, 3.4vw, 40px); margin: 0; }
.page-sub { margin: 12px 0 0; font-size: 17px; color: var(--gray-600); max-width: 780px; }

.page-content { max-width: 880px; font-size: 16.5px; line-height: 1.9; }
.page-content h2 {
	font-size: 27px;
	margin: 46px 0 16px;
	padding-left: 14px;
	border-left: 4px solid var(--blue-500);
}
.page-content h3 { font-size: 20px; margin: 32px 0 12px; }
.page-content ul { list-style: disc; padding-left: 22px; margin-bottom: 18px; }
.page-content ol { padding-left: 22px; margin-bottom: 18px; }
.page-content li { margin-bottom: 8px; }
.page-content img { border-radius: var(--radius); margin: 24px 0; }
.page-content blockquote {
	margin: 24px 0;
	padding: 18px 22px;
	background: var(--blue-50);
	border-left: 4px solid var(--blue-500);
	border-radius: 0 12px 12px 0;
	color: var(--ink-2);
}
.page-content table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
.page-content th, .page-content td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; }
.page-content th { background: var(--bg-soft); font-weight: 700; color: var(--ink); }

.post-meta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 12px; font-size: 14px; color: var(--gray-400); }
.post-cats a { color: var(--blue-700); font-weight: 600; }
.post-prev, .post-next { max-width: 48%; }
.post-prev a, .post-next a { font-weight: 600; }

/* 真车实拍 / 视频（首页 + 灵犀页共用） */
.videos { background: var(--bg-soft); }
.video-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 26px;
}
.video-item {
	margin: 0;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.video-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.video-item video { display: block; width: 100%; height: auto; background: #061f3d; }
.video-item figcaption {
	padding: 16px 20px;
	font-size: 14.5px;
	line-height: 1.7;
	color: var(--gray-600);
}
@media (max-width: 560px) {
	.post-prev, .post-next { max-width: 100%; }
}
.post-cover img { width: 100%; border-radius: var(--radius); }
.post-nav { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; margin: 48px 0 0; padding-top: 24px; border-top: 1px solid var(--line); font-size: 15px; }
.post-back { max-width: 880px; margin: 32px 0 0; }
.empty { color: var(--gray-400); text-align: center; padding: 60px 0; }
.card-media-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--blue-100), var(--blue-50)); }

/* ---------- 6. 响应式 ---------- */
@media (max-width: 1024px) {
	.footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 860px) {
	.section { padding: 64px 0; }
	.header-tel { display: none; }
	.header-cta { display: none; }
	.nav-toggle { display: block; }

	.site-nav {
		position: fixed;
		inset: 72px 0 auto 0;
		display: block;
		padding: 12px 24px 28px;
		background: #fff;
		border-bottom: 1px solid var(--line);
		box-shadow: var(--shadow);
		transform: translateY(-12px);
		opacity: 0;
		pointer-events: none;
		transition: transform .3s var(--ease), opacity .3s var(--ease);
		max-height: calc(100vh - 72px);
		overflow-y: auto;
	}
	.site-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
	.nav-list { display: block; }
	.nav-list > li > a { padding: 14px 8px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 16px; }
	.nav-mobile-cta { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
	.nav-tel { text-align: center; font-weight: 800; font-size: 19px; color: var(--ink); }
}

@media (max-width: 560px) {
	.wrap { padding: 0 18px; }
	.footer-grid { grid-template-columns: 1fr; }
	.stat-row { gap: 26px; }
	.btn { width: 100%; }
	.header-actions .btn { width: auto; }
}
