/* ============================================================
   万可官网 · 首页样式
   ============================================================ */

/* ---------- 入场 ---------- */
[data-reveal] {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	[data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- 1. 首屏 ---------- */
.hero {
	position: relative;
	overflow: hidden;
	padding: 72px 0 0;
	background: linear-gradient(180deg, #f4f9ff 0%, #eaf4ff 58%, #fff 100%);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-grid {
	position: absolute; inset: 0;
	background-image:
		linear-gradient(rgba(11, 99, 197, .06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(11, 99, 197, .06) 1px, transparent 1px);
	background-size: 56px 56px;
	mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 30%, transparent 78%);
	-webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 30%, transparent 78%);
}
.hero-glow {
	position: absolute; top: -180px; right: -120px;
	width: 620px; height: 620px; border-radius: 50%;
	background: radial-gradient(circle, rgba(41, 168, 224, .30), transparent 68%);
	filter: blur(20px);
}
.hero-inner {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1.05fr;
	gap: 56px;
	align-items: center;
	padding-bottom: 56px;
}
.hero-eyebrow {
	display: inline-block;
	margin-bottom: 20px;
	padding: 7px 18px;
	font-size: 14px;
	font-weight: 700;
	color: var(--blue-700);
	background: #fff;
	border-radius: 999px;
	box-shadow: var(--shadow-sm);
}
.hero-title {
	font-size: clamp(34px, 5vw, 60px);
	line-height: 1.16;
	margin-bottom: 22px;
	letter-spacing: -.02em;
}
.hero-title .hl {
	background: linear-gradient(120deg, var(--blue-700), var(--blue-300));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.hero-sub { font-size: clamp(16px, 1.5vw, 19px); color: var(--gray-600); margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-visual { position: relative; }
.hero-demo {
	background: #fff;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg);
	overflow: hidden;
	border: 1px solid rgba(11, 99, 197, .1);
}
.hd-head { display: flex; align-items: center; gap: 8px; padding: 14px 18px; background: var(--blue-900); }
.hd-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .3); }
.hd-dot:first-child { background: #ff5f57; }
.hd-dot:nth-child(2) { background: #febc2e; }
.hd-dot:nth-child(3) { background: #28c840; }
.hd-title { margin-left: 10px; font-size: 13px; color: #9dc0e4; font-weight: 600; }
.hero-demo canvas { display: block; width: 100%; height: auto; }

.hero-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0;
	border-top: 1px solid rgba(11, 99, 197, .12);
}
.hero-stats li {
	padding: 26px 16px;
	text-align: center;
	border-right: 1px solid rgba(11, 99, 197, .12);
}
.hero-stats li:last-child { border-right: 0; }
.hero-stats b {
	display: block;
	font-size: clamp(24px, 2.6vw, 34px);
	font-weight: 900;
	background: linear-gradient(135deg, var(--blue-700), var(--blue-300));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	line-height: 1.2;
}
.hero-stats span { display: block; margin-top: 6px; font-size: 14px; color: var(--gray-600); }

/* ---------- 2. 痛点横条 ---------- */
.pain-strip { padding: 46px 0; background: var(--ink); }
.pain-lead {
	margin: 0 0 20px;
	font-size: clamp(18px, 2vw, 23px);
	font-weight: 800;
	color: #fff;
	text-align: center;
}
.pain-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
}
.pain-tags li {
	padding: 11px 22px;
	font-size: 15px;
	font-weight: 600;
	color: #ffd9a8;
	background: rgba(255, 160, 60, .12);
	border: 1px solid rgba(255, 160, 60, .28);
	border-radius: 999px;
}

/* ---------- 3. 算账 ---------- */
.calc {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	background: #fff;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
	overflow: hidden;
	border: 1px solid var(--line);
}
.calc-inputs { padding: 44px 42px; }
.calc-field { margin-bottom: 30px; }
.calc-field label { display: block; margin-bottom: 12px; font-weight: 700; color: var(--ink); font-size: 15px; }
.calc-slider { display: flex; align-items: center; gap: 18px; }
.calc-slider input[type="range"] {
	flex: 1; -webkit-appearance: none; appearance: none;
	height: 6px; border-radius: 999px; background: var(--blue-100); outline: none;
}
.calc-slider input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%;
	background: linear-gradient(135deg, var(--blue-700), var(--blue-300));
	cursor: pointer; box-shadow: 0 3px 10px rgba(11, 99, 197, .4);
}
.calc-slider input[type="range"]::-moz-range-thumb {
	width: 22px; height: 22px; border: 0; border-radius: 50%;
	background: linear-gradient(135deg, var(--blue-700), var(--blue-300)); cursor: pointer;
}
.calc-slider output {
	min-width: 96px; text-align: right;
	font-size: 19px; font-weight: 900; color: var(--blue-700);
	font-variant-numeric: tabular-nums;
}
.calc-note { font-size: 13px; color: var(--gray-400); margin: 0; }
.calc-result {
	padding: 44px 42px;
	background: linear-gradient(160deg, var(--blue-800), var(--blue-900));
	color: #cfe3f7;
	display: flex; flex-direction: column; justify-content: center; gap: 20px;
}
.calc-line { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.calc-label { font-size: 15px; }
.calc-value { font-size: 20px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.calc-line-big { padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .16); }
.calc-line-big .calc-value { font-size: clamp(26px, 3vw, 34px); }
.calc-value.hl { color: #7fd4ff; }
.calc-cta { margin-top: 8px; }

/* ---------- 4. 演示区 ---------- */
.showcase { background: var(--blue-900); padding: 96px 0 84px; }

.demo { padding: 68px 0; }
.demo.dark { background: var(--blue-900); }
.demo.light { background: var(--bg-soft); }
.showcase > .demo:first-of-type { border-top: 1px solid rgba(255, 255, 255, .08); }

.demo-inner {
	display: grid;
	grid-template-columns: 0.86fr 1.14fr;
	gap: 52px;
	align-items: center;
}
.demo-inner-rev .demo-copy { order: 2; }
.demo-inner-rev .demo-stage { order: 1; }

.demo-no {
	display: inline-block;
	margin-bottom: 10px;
	font-size: 13px;
	font-weight: 900;
	letter-spacing: .14em;
	color: var(--blue-300);
}
.demo.light .demo-no { color: var(--blue-700); }

.demo-copy h3 {
	font-size: clamp(26px, 3.2vw, 40px);
	margin-bottom: 16px;
	letter-spacing: -.02em;
}
.demo.light .demo-copy h3 { color: var(--ink); }
.demo.dark .demo-copy h3 { color: #fff; }
.demo-one-line {
	font-size: clamp(17px, 1.7vw, 21px);
	line-height: 1.6;
	margin-bottom: 14px;
}
.demo.dark .demo-one-line { color: #cfe3f7; }
.demo.light .demo-one-line { color: var(--ink-2); }
.demo-one-line b { color: #7fd4ff; }
.demo.light .demo-one-line b { color: var(--blue-700); }
.demo-desc { font-size: 15px; line-height: 1.8; margin-bottom: 24px; }
.demo.dark .demo-desc { color: #9dc0e4; }
.demo.light .demo-desc { color: var(--gray-600); }

.demo-stage {
	background: #061f3d;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: 0 24px 60px rgba(6, 31, 61, .28);
	border: 1px solid rgba(120, 180, 240, .16);
}
.demo.light .demo-stage { border-color: rgba(11, 99, 197, .12); }
.demo-stage canvas { display: block; width: 100%; height: auto; }
.demo-hint { margin: 0; padding: 14px 18px; font-size: 13px; color: #7fa3c8; background: rgba(255, 255, 255, .04); }
.demo.light .demo-hint { color: var(--gray-400); background: #eef4fa; }

.demo-switch { display: flex; flex-wrap: wrap; gap: 8px; }
.demo-tab {
	padding: 11px 18px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	color: #9dc0e4;
	background: rgba(255, 255, 255, .07);
	border: 1px solid transparent;
	border-radius: 10px;
	cursor: pointer;
	transition: all .25s var(--ease);
}
.demo.light .demo-tab { color: var(--gray-600); background: #fff; border-color: var(--line); }
.demo-tab:hover { color: #fff; }
.demo.light .demo-tab:hover { color: var(--blue-700); }
.demo-tab.is-active { color: #fff; background: linear-gradient(135deg, var(--blue-700), var(--blue-300)); }
.demo.light .demo-tab.is-active {
	color: #fff;
	border-color: transparent;
	background: linear-gradient(135deg, var(--blue-700), var(--blue-300));
	box-shadow: 0 6px 18px rgba(11, 99, 197, .28);
}

.demo-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 13px 26px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	color: #fff;
	background: linear-gradient(135deg, var(--blue-700), var(--blue-300));
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	box-shadow: 0 8px 22px rgba(11, 99, 197, .32);
	transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.demo-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(11, 99, 197, .42); }

.demo-tag {
	display: inline-block;
	margin-left: 12px;
	padding: 8px 16px;
	font-size: 14px;
	font-weight: 700;
	color: var(--gray-600);
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 999px;
	vertical-align: middle;
}
.demo-tag.is-scan { color: var(--blue-700); border-color: var(--blue-300); }
.demo-tag.is-ok { color: #12864a; background: #e7f8ee; border-color: #b6e6cb; }

.demo-range { display: flex; align-items: center; gap: 14px; font-size: 14px; color: #9dc0e4; }
.demo-range input[type="range"] {
	flex: 1; -webkit-appearance: none; appearance: none;
	height: 6px; border-radius: 999px; background: rgba(120, 180, 240, .25); outline: none;
}
.demo-range input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%;
	background: linear-gradient(135deg, var(--blue-300), #7fd4ff); cursor: pointer;
}
.showcase-more { margin-top: 44px; text-align: center; }

/* 真车实拍样式已移至 main.css（全站共用） */

/* ---------- 5. 产品 ---------- */
.prod-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 22px;
}
.prod-card {
	padding: 32px 28px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.prod-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--blue-100); }
.prod-series {
	display: inline-block;
	margin-bottom: 14px;
	padding: 4px 12px;
	font-size: 12px;
	font-weight: 700;
	color: var(--blue-700);
	background: var(--blue-100);
	border-radius: 999px;
}
.prod-card h3 { font-size: 21px; margin-bottom: 10px; }
.prod-desc { font-size: 15px; color: var(--gray-600); min-height: 44px; margin-bottom: 18px; }
.prod-load {
	display: inline-block;
	font-size: 15px;
	font-weight: 800;
	color: var(--blue-700);
	padding-top: 16px;
	border-top: 1px dashed var(--line);
	width: 100%;
}
.prod-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 48px; }

/* ---------- 6. 对比表 ---------- */
.cmp-table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); background: #fff; }
.cmp-table { width: 100%; min-width: 720px; border-collapse: collapse; }
.cmp-table th, .cmp-table td { padding: 18px 20px; text-align: center; font-size: 15px; border-bottom: 1px solid var(--line); }
.cmp-table thead th { font-size: 15px; font-weight: 800; color: var(--ink); background: var(--bg-soft); line-height: 1.5; }
.cmp-table thead th span { display: block; margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--gray-400); }
.cmp-table thead th.cmp-hl { color: #fff; background: linear-gradient(135deg, var(--blue-700), var(--blue-500)); }
.cmp-table thead th.cmp-hl span { color: #cfe3f7; }
.cmp-table tbody th { text-align: left; font-weight: 700; color: var(--ink); background: #fff; white-space: nowrap; }
.cmp-table td.no { color: var(--gray-400); }
.cmp-table td.no::before { content: "✕ "; color: #f0a5a5; font-weight: 700; }
.cmp-table td.yes { font-weight: 800; color: var(--blue-700); background: var(--blue-50); }
.cmp-table td.yes::before { content: "✓ "; color: var(--ok); }
.cmp-table tbody tr:last-child th, .cmp-table tbody tr:last-child td { border-bottom: 0; }

/* 行动区 / 金句 样式已移至 main.css（全站共用） */

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
	.hero-inner { grid-template-columns: 1fr; gap: 42px; }
	.hero-visual { order: -1; }
	.demo-inner, .demo-inner-rev { grid-template-columns: 1fr; gap: 32px; }
	.demo-inner-rev .demo-copy { order: 1; }
	.demo-inner-rev .demo-stage { order: 2; }
	.calc { grid-template-columns: 1fr; }
	.showcase { padding: 68px 0 56px; }
	.demo { padding: 48px 0; }
}

@media (max-width: 700px) {
	.hero-stats { grid-template-columns: repeat(2, 1fr); }
	.hero-stats li:nth-child(2) { border-right: 0; }
	.hero-stats li:nth-child(1), .hero-stats li:nth-child(2) { border-bottom: 1px solid rgba(11, 99, 197, .12); }
}

@media (max-width: 560px) {
	.wrap { padding: 0 18px; }
	.hero { padding-top: 48px; }
	.calc-inputs, .calc-result { padding: 30px 22px; }
	.calc-slider { flex-wrap: wrap; }
	.calc-slider output { min-width: auto; width: 100%; text-align: left; }
	.prod-card { padding: 26px 22px; }
	.cmp-table th, .cmp-table td { padding: 14px 12px; font-size: 14px; }
	.demo-switch { width: 100%; }
	.demo-tab { flex: 1; padding: 11px 10px; font-size: 13px; }
	.cta-tel strong { font-size: 20px; }
}
