@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700;900&display=swap');

:root {
	--primary-color: #0B3C5D;
	--secondary-color: #FF7A00;
	--accent-color: #FFD700;
	--dark-bg: #1D2B36;
	--light-text: #F4F4F4;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: 'Noto Sans SC', sans-serif;
	color: #333;
	overflow-x: hidden;
}

.text-shadow {
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.bg-gradient-primary {
	background: linear-gradient(135deg, var(--primary-color), #003366);
}

.bg-gradient-dark {
	background: linear-gradient(135deg, var(--dark-bg), #2D3E4E);
}

.service-card {
	transition: all 0.3s ease;
}

.service-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.car-card {
	transition: all 0.3s ease;
}

.car-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 15px -5px rgba(0, 0, 0, 0.1), 0 5px 5px -5px rgba(0, 0, 0, 0.04);
}

.banner-slide {
	transition: transform 0.5s ease-in-out;
}

.mobile-menu {
	transition: transform 0.3s ease-in-out;
}

.mobile-menu.hidden {
	transform: translateX(-100%);
}

/* 轮播指示器 */
.carousel-dots {
	display: flex;
	justify-content: center;
	margin-top: 1rem;
}

.carousel-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.5);
	margin: 0 5px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.carousel-dot.active {
	background-color: white;
	width: 20px;
	border-radius: 5px;
}

/* 车型展示轮播 */
.car-carousel-container {
	overflow: hidden;
	position: relative;
}

.car-carousel-track {
	display: flex;
	transition: transform 0.5s ease;
}

.car-carousel-item {
	flex: 0 0 33.333%;
	padding: 0 10px;
}

@media (max-width: 768px) {
	.car-carousel-item {
		flex: 0 0 50%;
	}
}

@media (max-width: 640px) {
	.car-carousel-item {
		flex: 0 0 100%;
	}
}

.car-carousel-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	background-color: rgba(255, 255, 255, 0.8);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 10;
	transition: all 0.3s ease;
}

.car-carousel-btn:hover {
	background-color: white;
}

.car-carousel-btn.prev {
	left: 10px;
}

.car-carousel-btn.next {
	right: 10px;
}

/* 痛点卡片样式 */
.pain-point-card {
	position: relative;
	overflow: hidden;
	border-radius: 12px;
	height: 200px;
	transition: all 0.3s ease;
}

.pain-point-card:hover {
	transform: translateY(-5px);
}

.pain-point-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.pain-point-card:hover img {
	transform: scale(1.1);
}

.pain-point-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 1.5rem;
	z-index: 10;
}

/* 服务优势标签切换 */
.advantage-tab {
	cursor: pointer;
	transition: all 0.3s ease;
	color: white;
}

.advantage-tab.active {
	background-color: var(--secondary-color);
	color: white;
}

.advantage-content {
	opacity: 0;
	transform: translateY(20px);
	transition: all 0.5s ease;
}

.advantage-content.active {
	opacity: 1;
	transform: translateY(0);
	z-index: 1;
}

#advantage-bg {
	transition: background-image 0.5s ease;
}

/* 滚动指示器 */
.scroll-indicator {
	animation: bounce 2s infinite;
}

@keyframes bounce {
	0%, 20%, 50%, 80%, 100% {
		transform: translateY(0);
	}
	40% {
		transform: translateY(-20px);
	}
	60% {
		transform: translateY(-10px);
	}
}

/* 新增的动画效果 */
.fade-in-up {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
	opacity: 1;
	transform: translateY(0);
}

/* 数字增长动画 */
.counter {
	font-weight: bold;
	color: var(--secondary-color);
}

/* 3D翻转卡片效果 */
.flip-card {
	perspective: 1000px;
	height: 300px;
}

.flip-card-inner {
	position: relative;
	width: 100%;
	height: 100%;
	text-align: center;
	transition: transform 0.6s;
	transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
	transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
	position: absolute;
	width: 100%;
	height: 100%;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	border-radius: 12px;
	overflow: hidden;
}

.flip-card-front {
	background-color: #fff;
	color: black;
}

.flip-card-back {
	background-color: var(--primary-color);
	color: white;
	transform: rotateY(180deg);
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 2rem;
}
