﻿@charset "utf-8";

:root {
	--bg: #f6f7f5;
	--card-bg: #ffffff;
	--text: #1f2a24;
	--text-sub: #6b766f;
	--accent: #2f6f4f;
	--accent-soft: #e6efe9;
	--radius: 10px;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, "PingFang SC",
		"Microsoft YaHei", "Helvetica Neue", sans-serif;
	background: var(--bg);
	color: var(--text);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

.hero {
	max-width: 1200px;
	margin: 0 auto;
	padding: 48px 24px 20px;
	text-align: center;
}

.hero .eyebrow {
	display: inline-block;
	font-size: 13px;
	letter-spacing: 2px;
	color: var(--accent);
	background: var(--accent-soft);
	padding: 5px 14px;
	border-radius: 100px;
	margin-bottom: 16px;
	font-weight: 500;
}

.hero h1 {
	font-size: clamp(26px, 3.5vw, 38px);
	font-weight: 700;
	letter-spacing: -0.5px;
	margin-bottom: 10px;
}

.hero p {
	font-size: 15px;
	color: var(--text-sub);
}

.stats {
	max-width: 1200px;
	margin: 0 auto;
	padding: 10px 24px 28px;
	display: flex;
	justify-content: center;
}

.stat .num {
	font-size: clamp(28px, 3.5vw, 36px);
	font-weight: 700;
	color: var(--accent);
	line-height: 1.1;
}

.stat .num small {
	font-size: 0.6em;
	font-weight: 500;
	margin-left: 2px;
}

.stat .label {
	font-size: 13px;
	color: var(--text-sub);
	margin-top: 2px;
	text-align: center;
}

.case-wall {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 16px 60px;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 10px;
}

.case-item {
	background: var(--card-bg);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(31, 42, 36, 0.06);
	transition: transform .3s ease, box-shadow .3s ease;
	cursor: pointer;
	text-decoration: none;
	color: inherit;
	display: block;
}

.case-item:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 16px rgba(31, 42, 36, 0.12);
}

.case-item .thumb {
	width: 100%;
	aspect-ratio: 1/1;
	overflow: hidden;
	background: #e9ece9;
}

.case-item .thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .4s ease;
}

.case-item:hover .thumb img {
	transform: scale(1.08);
}

.case-item .name {
	padding: 8px 10px;
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-align: center;
}

.case-item .name .plate {
	color: var(--text-sub);
	font-weight: 400;
	font-size: 12px;
	margin-left: 4px;
}

/* ========== 详情页 ========== */
.detail-view {
	display: none;
}

.detail-view.active {
	display: block;
}

/* 顶部品牌条 */
.detail-topbar {
	background: #fff;
	border-bottom: 1px solid #e8eae8;
	padding: 14px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: none;
}

.detail-topbar .brand {
	font-weight: 700;
	font-size: 16px;
	color: var(--accent);
	letter-spacing: 0.5px;
}

.detail-topbar a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--accent);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
}

.detail-topbar a:hover {
	text-decoration: underline;
}

.detail-inner {
	max-width: 860px;
	margin: 0 auto;
	padding: 32px 24px 60px;
}

/* 大图卡片 */
.detail-img {
	width: 100%;
	aspect-ratio: 16/10;
	border-radius: 14px;
	background: #e9ece9;
	margin-bottom: 28px;
	box-shadow: 0 4px 20px rgba(31, 42, 36, 0.1);
}

.detail-img img {
	width: 100%;
	height: auto;
	object-fit: cover;
	display: block;
}

/* 信息卡片 */
.detail-card {
	background: #fff;
	border-radius: 14px;
	padding: 28px 30px;
	box-shadow: 0 1px 3px rgba(31, 42, 36, 0.06);
}

.detail-tags {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}

.detail-tag {
	display: inline-block;
	font-size: 12px;
	letter-spacing: 0.5px;
	color: var(--accent);
	background: var(--accent-soft);
	padding: 5px 14px;
	border-radius: 100px;
	font-weight: 500;
}

.detail-tag.oil {
	color: #b8732a;
	background: #fdf2e4;
}

.detail-title {
	font-size: clamp(22px, 3vw, 30px);
	font-weight: 700;
	margin-bottom: 8px;
	color: var(--text);
}

.detail-plate {
	font-size: 14px;
	color: var(--text-sub);
	margin-bottom: 20px;
	padding-bottom: 18px;
	border-bottom: 1px solid #f0f1f0;
}

.detail-desc {
	font-size: 16px;
	line-height: 2;
	color: var(--text);
	white-space: pre-line;
}

/* 底部 CTA */
.detail-cta {
	margin-top: 32px;
	text-align: center;
}

.detail-cta p {
	font-size: 14px;
	color: var(--text-sub);
	margin-bottom: 16px;
}

.detail-cta a {
	display: inline-block;
	background: var(--accent);
	color: #fff;
	padding: 12px 32px;
	border-radius: 100px;
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	transition: background .3s;
}

.detail-cta a:hover {
	background: #245a3f;
}

@media ( max-width :768px) {
	.case-wall {
		gap: 8px;
		padding: 0 10px 40px;
	}
	.hero {
		padding: 36px 16px 14px;
	}
	.case-item .name {
		font-size: 12px;
		padding: 6px 8px;
	}
	.detail-inner {
		padding: 20px 16px 40px;
	}
	.detail-card {
		padding: 20px 18px;
	}
	.detail-desc {
		font-size: 15px;
		line-height: 1.85;
	}
	.detail-topbar {
		padding: 12px 16px;
	}
}

@media ( max-width :480px) {
	.case-wall {
		grid-template-columns: repeat(3, 1fr);
		gap: 6px;
	}
	.case-item .name {
		font-size: 11px;
		padding: 5px 6px;
		white-space: normal;
	}
	.case-item .name .plate {
		display: none;
	}
	.detail-img {
		aspect-ratio: 4/3;
		border-radius: 10px;
	}
}

.footer {
	text-align: center;
	padding: 50px 20px 50px;
	color: var(--text-sub);
	font-size: 13px;
	border: none;
}