/**
 * 电子连接器企业网站 - 主样式文件
 * 设计风格：科技蓝 + 深蓝 + 橙色点缀
 */

/* ==================== CSS 变量 ==================== */
:root {
	--primary-dark: #0a2540;
	--primary-blue: #0066CC;
	--accent-orange: #FF6B35;
	--text-dark: #1a1a2e;
	--text-gray: #6b7280;
	--bg-light: #f8fafc;
	--border-light: #e5e7eb;
}

/* ==================== 基础样式 ==================== */
body {
	font-family: "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
	color: var(--text-dark);
}

/* ==================== 导航样式 ==================== */
.navbar-tech {
	background: transparent;
	padding: 0;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1030;
	transition: all 0.3s ease;
}

.navbar-tech.scrolled {
	background: #fff;
	box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.navbar-tech.scrolled .nav-link {
	color: var(--text-dark) !important;
	padding: 20px 20px !important;
}

.navbar-tech.scrolled .dropdown-toggle::after {
	border-top-color: var(--text-dark);
}

.navbar-tech.scrolled .lang-switch a {
	color: var(--text-dark);
}

.navbar-tech.scrolled .lang-switch .divider {
	color: var(--text-gray);
}

.navbar-tech .navbar-brand {
	padding: 20px 0;
	transition: all 0.3s ease;
}

.navbar-tech.scrolled .navbar-brand {
	padding: 15px 0;
}

.navbar-tech .navbar-brand img {
	height: 50px;
	width: auto;
	transition: all 0.3s ease;
}

.navbar-tech.scrolled .navbar-brand img {
	height: 40px;
}

.navbar-tech .nav-link {
	color: #fff !important;
	font-weight: 500;
	padding: 30px 20px !important;
	font-size: 15px;
	transition: all 0.3s ease;
	position: relative;
}

.navbar-tech .nav-link:hover,
.navbar-tech .nav-item.active .nav-link {
	opacity: 0.8;
}

.navbar-tech.scrolled .nav-link:hover,
.navbar-tech.scrolled .nav-item.active .nav-link {
	color: var(--primary-blue) !important;
	opacity: 1;
}

.navbar-tech .nav-link::after {
	display: none;
}

.navbar-tech .dropdown-toggle::after {
	border-top-color: #fff;
	margin-left: 8px;
	transition: all 0.3s ease;
}

.navbar-tech.scrolled .dropdown-toggle::after {
	border-top-color: var(--text-dark);
}

/* 下拉菜单 - 悬停显示 */
.navbar-tech .dropdown-menu {
	border: none;
	box-shadow: 0 10px 40px rgba(0,0,0,0.15);
	border-radius: 8px;
	margin-top: 0;
	padding: 10px 0;
	min-width: 220px;
	display: block;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: all 0.3s ease;
}

.navbar-tech .dropdown:hover .dropdown-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.navbar-tech .dropdown:hover .dropdown-toggle::after {
	transform: rotate(180deg);
}

.navbar-tech .dropdown-item {
	padding: 12px 25px;
	font-size: 14px;
	color: var(--text-dark);
	transition: all 0.2s ease;
	border-left: 3px solid transparent;
}

.navbar-tech .dropdown-item:hover {
	background: var(--bg-light);
	color: var(--primary-blue);
	border-left-color: var(--primary-blue);
	padding-left: 30px;
}

/* 语言切换 */
.lang-switch {
	display: flex;
	align-items: center;
	gap: 15px;
}

.lang-switch a {
	color: #fff;
	font-size: 14px;
	text-decoration: none;
	opacity: 0.8;
	transition: opacity 0.3s;
}

.lang-switch a:hover,
.lang-switch a.active {
	opacity: 1;
	font-weight: 600;
}

.lang-switch .divider {
	color: rgba(255,255,255,0.5);
}

/* 占位 */
.nav-placeholder {
	display: none;
}

@media (max-width: 991px) {
	.navbar-tech {
		background: rgba(10,37,64,0.95);
	}
	
	.navbar-tech.scrolled {
		background: #fff;
	}
	
	.navbar-tech.scrolled .nav-link {
		color: var(--text-dark) !important;
	}
	
	.navbar-tech .nav-link {
		padding: 15px !important;
	}
}

/* ==================== 首页 Banner ==================== */
.hero-section {
	position: relative;
	height: 600px;
	overflow: hidden;
}

.hero-section .swiper-container {
	width: 100%;
	height: 100%;
}

.hero-section .swiper-slide {
	position: relative;
	display: flex;
	align-items: center;
	background-size: cover;
	background-position: center;
}

.hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(90deg, 
		rgba(10,37,64,0.95) 0%, 
		rgba(10,37,64,0.8) 40%, 
		rgba(0,102,204,0.6) 70%, 
		rgba(0,102,204,0.3) 100%);
	z-index: 1;
}

.hero-slide-content {
	position: relative;
	z-index: 2;
	width: 100%;
}

.hero-slide-inner {
	display: flex;
	align-items: center;
}

.hero-text {
	flex: 1;
	color: #fff;
	max-width: 600px;
}

.hero-text h1 {
	font-size: 42px;
	font-weight: 700;
	margin-bottom: 20px;
	line-height: 1.3;
	color: #fff;
}

.hero-text .subtitle {
	font-size: 16px;
	font-weight: 500;
	margin-bottom: 15px;
	opacity: 0.9;
	color: #fff;
	letter-spacing: 1px;
}

.hero-text .subtitle::before {
	content: '';
	display: inline-block;
	width: 40px;
	height: 2px;
	background: var(--primary-blue);
	margin-right: 15px;
	vertical-align: middle;
}

.hero-text .desc {
	font-size: 16px;
	line-height: 1.8;
	margin-bottom: 30px;
	opacity: 0.85;
}

.hero-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 30px;
	background: var(--primary-blue);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	border-radius: 4px;
	text-decoration: none;
	transition: all 0.3s ease;
	border: 2px solid var(--primary-blue);
}

.hero-btn:hover {
	background: transparent;
	color: #fff;
	text-decoration: none;
	transform: translateY(-2px);
	box-shadow: 0 5px 20px rgba(0,102,204,0.4);
}

/* 轮播分页器 */
.hero-section .swiper-pagination {
	bottom: 30px;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
}

.hero-section .swiper-pagination-bullet {
	width: 40px;
	height: 4px;
	background: rgba(255,255,255,0.3);
	opacity: 1;
	border-radius: 2px;
	margin: 0;
	transition: all 0.3s ease;
}

.hero-section .swiper-pagination-bullet-active {
	background: var(--primary-blue);
	height: 6px;
}

/* 轮播箭头 */
.hero-section .swiper-button-next,
.hero-section .swiper-button-prev {
	width: 50px;
	height: 50px;
	background: rgba(255,255,255,0.15);
	border-radius: 4px;
	transition: all 0.3s ease;
	border: 2px solid rgba(255,255,255,0.3);
}

.hero-section .swiper-button-prev {
	left: 20px;
}

.hero-section .swiper-button-next {
	right: 20px;
}

.hero-section .swiper-button-next:hover,
.hero-section .swiper-button-prev:hover {
	background: #0080ff;
	border-color: #0080ff;
	transform: scale(1.05);
	box-shadow: 0 5px 20px rgba(0,128,255,0.4);
}

/* 箭头图标 */
.hero-section .swiper-button-prev::after,
.hero-section .swiper-button-next::after {
	font-family: 'FontAwesome';
	font-size: 28px;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.hero-section .swiper-button-prev::after {
	content: '\f104';
}

.hero-section .swiper-button-next::after {
	content: '\f105';
}

@media (max-width: 991px) {
	.hero-section {
		height: 500px;
	}
	
	.hero-text h1 {
		font-size: 32px;
	}
	
	.hero-text {
		max-width: 100%;
		text-align: center;
	}
	
	.hero-text .subtitle::before {
		display: none;
	}
}

@media (max-width: 767px) {
	.hero-section {
		height: 450px;
	}
	
	.hero-text h1 {
		font-size: 24px;
	}
	
	.hero-section .swiper-button-next,
	.hero-section .swiper-button-prev {
		display: none;
	}
}

/* ==================== 通用区块标题 ==================== */
.section-header {
	text-align: center;
	margin-bottom: 60px;
}

.section-header h2 {
	font-size: 36px;
	font-weight: 700;
	color: var(--primary-dark);
	margin-bottom: 15px;
}

.section-header h2 span {
	color: var(--primary-blue);
}

.section-header p {
	font-size: 16px;
	color: var(--text-gray);
	max-width: 600px;
	margin: 0 auto;
}

.section-header .line {
	width: 60px;
	height: 4px;
	background: var(--accent-orange);
	margin: 20px auto 0;
	border-radius: 2px;
}

/* ==================== 核心优势 ==================== */
.section-advantages {
	padding: 80px 0;
	background: #fff;
}

.advantage-card {
	text-align: center;
	padding: 40px 30px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 5px 30px rgba(0,0,0,0.05);
	transition: all 0.4s ease;
	border: 1px solid var(--border-light);
	height: 100%;
}

.advantage-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 15px 40px rgba(0,0,0,0.1);
	border-color: var(--primary-blue);
}

.advantage-icon {
	width: 80px;
	height: 80px;
	background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
	border-radius: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 25px;
	font-size: 36px;
	color: #fff;
	transition: all 0.4s ease;
}

.advantage-card:hover .advantage-icon {
	transform: rotateY(360deg);
	background: linear-gradient(135deg, var(--accent-orange) 0%, #ff8c5a 100%);
}

.advantage-card h4 {
	font-size: 20px;
	font-weight: 600;
	color: var(--primary-dark);
	margin-bottom: 15px;
}

.advantage-card p {
	font-size: 14px;
	color: var(--text-gray);
	line-height: 1.8;
	margin: 0;
}

/* ==================== 产品分类 - 专业工业风设计 ==================== */
.section-products {
	padding: 100px 0;
	background: #fff;
}

.section-products .section-header {
	margin-bottom: 50px;
}

/* 产品网格布局 */
.product-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

/* 产品卡片 - 简洁专业风格 */
.product-card {
	position: relative;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 4px;
	overflow: hidden;
	transition: all 0.3s ease;
	display: block;
	text-decoration: none;
}

.product-card:hover {
	border-color: #0066cc;
	box-shadow: 0 10px 40px rgba(0,0,0,0.1);
	text-decoration: none;
}

/* 产品图片区域 */
.product-card-image {
	position: relative;
	height: 220px;
	background: #fff;
	overflow: hidden;
}

.product-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.5s ease;
}

.product-card:hover .product-card-image img {
	transform: scale(1.05);
}

/* 产品信息区域 */
.product-card-info {
	padding: 20px 24px;
	background: #fff;
}

.product-card-info h4 {
	font-size: 20px;
	font-weight: 700;
	color: #1f2937;
	margin: 0 0 8px;
	line-height: 1.3;
}

.product-card-subtitle {
	font-size: 13px;
	color: #0066cc;
	font-weight: 600;
	margin: 0 0 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.product-card-desc {
	font-size: 14px;
	color: #6b7280;
	margin: 0;
	line-height: 1.6;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* 底部操作栏 */
.product-card-footer {
	padding: 16px 24px;
	border-top: 1px solid #e5e7eb;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #fafafa;
}

.product-card-link {
	font-size: 14px;
	font-weight: 600;
	color: #0066cc;
	display: flex;
	align-items: center;
	gap: 6px;
	transition: all 0.3s;
}

.product-card:hover .product-card-link {
	color: #ff6b35;
	gap: 10px;
}

.product-card-link i {
	font-size: 14px;
	transition: transform 0.3s;
}

.product-card:hover .product-card-link i {
	transform: translateX(4px);
}

/* 响应式 */
@media (max-width: 992px) {
	.product-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 576px) {
	.product-grid {
		grid-template-columns: 1fr;
	}
	
	.product-card-image {
		height: 180px;
	}
}

/* ==================== 应用领域 ==================== */
.section-applications {
	padding: 80px 0;
	background: #fff;
}

.application-item {
	display: flex;
	align-items: center;
	padding: 25px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 3px 15px rgba(0,0,0,0.05);
	margin-bottom: 20px;
	transition: all 0.3s ease;
	border: 1px solid var(--border-light);
	text-decoration: none;
}

.application-item:hover {
	transform: translateX(10px);
	box-shadow: 0 8px 25px rgba(0,0,0,0.1);
	border-color: var(--primary-blue);
	text-decoration: none;
}

.application-icon {
	width: 60px;
	height: 60px;
	background: var(--bg-light);
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	color: var(--primary-blue);
	margin-right: 20px;
	flex-shrink: 0;
	transition: all 0.3s ease;
}

.application-item:hover .application-icon {
	background: var(--primary-blue);
	color: #fff;
}

.application-info h4 {
	font-size: 18px;
	font-weight: 600;
	color: var(--primary-dark);
	margin-bottom: 5px;
}

.application-info p {
	font-size: 13px;
	color: var(--text-gray);
	margin: 0;
}

.application-arrow {
	margin-left: auto;
	color: var(--text-gray);
	font-size: 18px;
	transition: all 0.3s ease;
}

.application-item:hover .application-arrow {
	color: var(--primary-blue);
	transform: translateX(5px);
}

/* ==================== 关于我们 ==================== */
.section-about {
	padding: 80px 0;
	background: linear-gradient(135deg, var(--primary-dark) 0%, #1a365d 100%);
	color: #fff;
}

.about-content h2 {
	font-size: 36px;
	font-weight: 700;
	margin-bottom: 20px;
}

.about-content h2 span {
	color: var(--accent-orange);
}

.about-content p {
	font-size: 16px;
	line-height: 1.9;
	opacity: 0.9;
	margin-bottom: 30px;
}

.about-stats {
	display: flex;
	gap: 40px;
	margin-top: 40px;
}

.stat-item {
	text-align: center;
}

.stat-number {
	font-size: 42px;
	font-weight: 700;
	color: var(--accent-orange);
	line-height: 1;
}

.stat-label {
	font-size: 14px;
	opacity: 0.8;
	margin-top: 8px;
}

.about-image {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.about-image img {
	width: 100%;
	height: 400px;
	object-fit: cover;
}

.about-image::before {
	content: '';
	position: absolute;
	top: -20px;
	left: -20px;
	width: 100px;
	height: 100px;
	border: 4px solid var(--accent-orange);
	border-radius: 12px;
	z-index: -1;
}

/* ==================== 新闻动态 ==================== */
.section-news {
	padding: 80px 0;
	background: var(--bg-light);
}

.news-card {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 5px 20px rgba(0,0,0,0.05);
	transition: all 0.4s ease;
	height: 100%;
}

.news-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.news-image {
	height: 200px;
	overflow: hidden;
}

.news-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: all 0.5s ease;
}

.news-card:hover .news-image img {
	transform: scale(1.1);
}

.news-content {
	padding: 25px;
	display: flex;
	flex-direction: column;
}

.news-date {
	display: inline-block;
	padding: 5px 15px;
	background: var(--bg-light);
	border-radius: 20px;
	font-size: 12px;
	color: var(--text-gray);
	margin-bottom: 15px;
	align-self: flex-start;
}

.news-content h4 {
	font-size: 18px;
	font-weight: 600;
	color: var(--primary-dark);
	margin-bottom: 12px;
	line-height: 1.5;
	min-height: 54px;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.news-content h4 a {
	color: var(--primary-dark);
	text-decoration: none;
	transition: color 0.3s;
}

.news-content h4 a:hover {
	color: var(--primary-blue);
}

.news-content p {
	font-size: 14px;
	color: var(--text-gray);
	line-height: 1.7;
	margin: 0 0 15px 0;
	min-height: 72px;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	flex-grow: 1;
}

.news-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--primary-blue);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	transition: all 0.3s;
}

.news-link:hover {
	color: var(--accent-orange);
	gap: 12px;
	text-decoration: none;
}

/* ==================== CTA区域 ==================== */
.section-cta {
	padding: 100px 0;
	background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
	text-align: center;
	color: #fff;
}

.section-cta h2 {
	font-size: 42px;
	font-weight: 700;
	margin-bottom: 20px;
}

.section-cta p {
	font-size: 18px;
	opacity: 0.9;
	margin-bottom: 40px;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

/* ==================== 页脚 ==================== */
.footer-tech {
	background: var(--primary-dark);
	color: #fff;
	padding: 80px 0 0;
}

.footer-tech h5 {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 25px;
	color: #fff;
}

.footer-tech p,
.footer-tech a {
	color: rgba(255,255,255,0.7);
	font-size: 14px;
	line-height: 1.8;
	text-decoration: none;
	transition: color 0.3s;
}

.footer-tech a:hover {
	color: var(--accent-orange);
	text-decoration: none;
}

.footer-links {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-links li {
	margin-bottom: 12px;
}

.footer-contact p {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 15px;
}

.footer-contact i {
	color: var(--accent-orange);
	margin-top: 4px;
}

.footer-qr {
	display: flex;
	justify-content: center;
	gap: 30px;
}

.qr-item {
	text-align: center;
	flex: 0 0 120px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.qr-item img,
.qr-item p {
	width: 120px;
	height: 120px;
	border-radius: 8px;
	margin: 0 0 10px;
	flex-shrink: 0;
}

.qr-item p {
	background: #fff;
	padding: 5px;
}

.qr-item span {
	font-size: 13px;
	color: rgba(255,255,255,0.8);
	display: block;
	white-space: nowrap;
	margin-top: auto;
}

.footer-bottom {
	border-top: 1px solid rgba(255,255,255,0.1);
	padding: 20px 0;
	margin-top: 60px;
}

.footer-bottom p {
	margin: 0;
	font-size: 13px;
	color: rgba(255,255,255,0.5);
}

/* ==================== 移动端底部导航 ==================== */
.mobile-nav {
	display: none;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: #fff;
	box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
	z-index: 1040;
	padding: 8px 0;
}

.mobile-nav-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	color: var(--text-gray);
	text-decoration: none;
	font-size: 12px;
	transition: color 0.3s;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
	color: var(--primary-blue);
	text-decoration: none;
}

.mobile-nav-item i {
	font-size: 20px;
	margin-bottom: 4px;
}

@media (max-width: 991px) {
	.mobile-nav {
		display: flex;
		justify-content: space-around;
	}
	
	body {
		padding-bottom: 70px;
	}
}

/* ==================== 返回顶部 ==================== */
.back-to-top {
	position: fixed;
	bottom: 90px;
	right: 20px;
	width: 45px;
	height: 45px;
	background: var(--primary-blue);
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
	z-index: 1030;
	box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.back-to-top.show {
	opacity: 1;
	visibility: visible;
}

.back-to-top:hover {
	background: var(--primary-dark);
	transform: translateY(-3px);
}

/* ==================== 响应式 ==================== */
@media (max-width: 991px) {
	.section-header h2,
	.about-content h2,
	.section-cta h2 {
		font-size: 28px;
	}
	
	.about-stats {
		gap: 20px;
	}
	
	.stat-number {
		font-size: 32px;
	}
	
	.about-image {
		margin-top: 40px;
	}
	
	.about-image::before {
		display: none;
	}
}

@media (max-width: 767px) {
	.hero-text h1 {
		font-size: 26px;
	}
	
	.about-stats {
		flex-wrap: wrap;
		justify-content: center;
	}
	
	.stat-item {
		flex: 0 0 30%;
	}
}
