/**
 * 产品页面样式 V2 - 简洁可靠设计
 * 适用于：productlist.html + product.html
 */

/* ==================== 产品列表页 ==================== */

/* Hero区域 */
.product-hero {
	position: relative;
	padding: 100px 0 60px;
	background: linear-gradient(135deg, #0a1628 0%, #1b263b 50%, #0066cc 100%);
	color: #fff;
	overflow: hidden;
}

.product-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: 
		linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
	background-size: 50px 50px;
}

.product-hero .container {
	position: relative;
	z-index: 1;
}

.hero-breadcrumb {
	background: transparent;
	padding: 0;
	margin: 0 0 20px;
}

.hero-breadcrumb a {
	color: rgba(255,255,255,0.7);
	text-decoration: none;
	font-size: 14px;
}

.hero-breadcrumb a:hover {
	color: #ff6b35;
}

.hero-breadcrumb .active {
	color: #fff;
}

.product-hero h1 {
	font-size: 48px;
	font-weight: 800;
	color: #fff;
	margin: 0 0 15px;
	line-height: 1.1;
}

.product-hero p {
	font-size: 18px;
	color: rgba(255,255,255,0.7);
	max-width: 600px;
	margin: 0 0 40px;
}

.hero-stats {
	display: flex;
	gap: 40px;
}

.hero-stat {
	position: relative;
	padding: 25px 35px;
	background: rgba(255,255,255,0.05);
	border: 1px solid rgba(255,255,255,0.1);
	border-radius: 12px;
}

.hero-stat::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 3px;
	height: 60%;
	background: #ff6b35;
	border-radius: 0 2px 2px 0;
}

.hero-stat-number {
	font-size: 42px;
	font-weight: 700;
	color: #fff;
	line-height: 1;
	margin-bottom: 8px;
}

.hero-stat-label {
	font-size: 14px;
	color: rgba(255,255,255,0.6);
	text-transform: uppercase;
	letter-spacing: 1px;
}

/* 筛选栏 */
.filter-bar {
	position: sticky;
	top: 0;
	z-index: 100;
	padding: 20px 0;
	background: rgba(248, 250, 252, 0.95);
	backdrop-filter: blur(20px);
	border-bottom: 1px solid #e2e8f0;
}

.filter-wrapper {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
}

.filter-left {
	display: flex;
	align-items: center;
	gap: 20px;
}

.filter-label {
	font-size: 14px;
	font-weight: 600;
	color: #1e293b;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.filter-tags {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.filter-tag {
	padding: 8px 20px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 50px;
	font-size: 14px;
	font-weight: 500;
	color: #64748b;
	text-decoration: none;
	transition: all 0.25s ease;
}

.filter-tag:hover {
	border-color: #ff6b35;
	color: #ff6b35;
}

.filter-tag.active {
	background: #ff6b35;
	border-color: #ff6b35;
	color: #fff;
}

.filter-right {
	font-size: 14px;
	color: #64748b;
}

.filter-right strong {
	color: #0f172a;
	font-weight: 600;
}

/* 产品区域 */
.product-section {
	padding: 60px 0;
	background: #f8fafc;
}

.product-grid {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 40px;
}

/* 侧边栏 */
.product-sidebar {
	position: sticky;
	top: 100px;
	height: fit-content;
}

.sidebar-card {
	background: #fff;
	border-radius: 16px;
	padding: 25px;
	margin-bottom: 25px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.05);
	border: 1px solid #e2e8f0;
}

.sidebar-title {
	font-size: 14px;
	font-weight: 700;
	color: #0f172a;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin: 0 0 20px;
	padding-bottom: 15px;
	border-bottom: 2px solid #f1f5f9;
	display: flex;
	align-items: center;
	gap: 10px;
}

.sidebar-title i {
	color: #ff6b35;
}

/* 分类树 */
.category-tree {
	list-style: none;
	padding: 0;
	margin: 0;
}

.category-tree li {
	margin-bottom: 5px;
}

.category-tree a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 15px;
	color: #334155;
	text-decoration: none;
	border-radius: 8px;
	transition: all 0.2s ease;
	font-size: 15px;
}

.category-tree a:hover {
	background: #f8fafc;
	color: #ff6b35;
}

.category-tree a.active {
	background: #0a1628;
	color: #fff;
}

.category-count {
	font-size: 12px;
	font-weight: 600;
	color: #94a3b8;
	background: #f1f5f9;
	padding: 4px 12px;
	border-radius: 50px;
}

.category-tree a.active .category-count {
	background: rgba(255,255,255,0.2);
	color: rgba(255,255,255,0.8);
}

/* 热门产品 */
.hot-product {
	display: flex;
	gap: 15px;
	padding: 15px;
	border-radius: 12px;
	transition: all 0.2s ease;
	text-decoration: none;
	margin-bottom: 10px;
}

.hot-product:hover {
	background: #f8fafc;
}

.hot-product-img {
	width: 60px;
	height: 60px;
	background: #f1f5f9;
	border-radius: 8px;
	overflow: hidden;
	flex-shrink: 0;
}

.hot-product-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hot-product-info {
	flex: 1;
	min-width: 0;
}

.hot-product-title {
	font-size: 14px;
	font-weight: 600;
	color: #0f172a;
	margin-bottom: 4px;
	line-height: 1.4;
}

.hot-product-model {
	font-family: monospace;
	font-size: 12px;
	color: #64748b;
}

/* CTA卡片 */
.sidebar-cta {
	background: linear-gradient(135deg, #0a1628 0%, #1b263b 100%);
	border-radius: 16px;
	padding: 30px;
	color: #fff;
	text-align: center;
}

.sidebar-cta h4 {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 10px;
}

.sidebar-cta p {
	font-size: 14px;
	color: rgba(255,255,255,0.7);
	margin: 0 0 20px;
	line-height: 1.5;
}

.cta-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 25px;
	background: #ff6b35;
	color: #fff;
	border-radius: 50px;
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
	transition: all 0.3s ease;
}

.cta-btn:hover {
	background: #ff8c42;
	transform: translateY(-2px);
}

/* 产品列表 */
.product-list-wrapper {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 30px;
}

.product-item {
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0,0,0,0.05);
	border: 1px solid #e2e8f0;
	transition: all 0.35s ease;
}

.product-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 20px 40px rgba(0,0,0,0.1);
	border-color: #ff6b35;
}

.product-image-wrap {
	position: relative;
	aspect-ratio: 4 / 3;
	background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
	overflow: hidden;
}

.product-image-wrap a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 0;
}

.product-image-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

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

/* 产品标签 */
.product-badges {
	position: absolute;
	top: 15px;
	left: 15px;
	display: flex;
	gap: 8px;
}

.badge {
	padding: 5px 12px;
	border-radius: 50px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.badge-hot {
	background: #ef4444;
	color: #fff;
}

.badge-rec {
	background: #ff6b35;
	color: #fff;
}

/* 产品信息 */
.product-info {
	padding: 25px;
}

.product-category {
	font-size: 12px;
	font-weight: 600;
	color: #ff6b35;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 8px;
}

.product-name {
	font-size: 18px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 10px;
	line-height: 1.3;
}

.product-name a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.product-name a:hover {
	color: #ff6b35;
}

.product-model {
	font-family: monospace;
	font-size: 13px;
	color: #64748b;
	background: #f1f5f9;
	padding: 5px 12px;
	border-radius: 4px;
	display: inline-block;
	margin-bottom: 12px;
}

.product-specs {
	margin-bottom: 15px;
}

.product-spec {
	font-size: 14px;
	color: #475569;
}

.product-spec strong {
	color: #0f172a;
	font-weight: 600;
}

/* 产品底部 */
.product-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 15px;
	border-top: 1px solid #f1f5f9;
}

.product-views {
	font-size: 13px;
	color: #94a3b8;
	display: flex;
	align-items: center;
	gap: 5px;
}

.product-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 18px;
	background: transparent;
	border: 1.5px solid #cbd5e1;
	border-radius: 50px;
	color: #475569;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.3s ease;
}

.product-btn:hover {
	background: #ff6b35;
	border-color: #ff6b35;
	color: #fff;
}

/* 分页 */
.pagination-wrap {
	display: flex;
	justify-content: center;
	margin-top: 50px;
}

.pagination {
	display: flex;
	gap: 8px;
	align-items: center;
	list-style: none;
	padding: 0;
	margin: 0;
}

.pagination a,
.pagination span {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-width:80px !important;
	height: 44px !important;
	padding: 0 0px !important;
	background-color: #fff !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 8px !important;
	color: #334155 !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	text-decoration: none !important;
	transition: all 0.2s ease !important;
	box-shadow: none !important;
}

.pagination a:hover,
.pagination a:focus {
	background-color: #fff !important;
	border-color: #ff6b35 !important;
	color: #ff6b35 !important;
	box-shadow: none !important;
}

.pagination .current {
	background-color: #ff6b35 !important;
	border-color: #ff6b35 !important;
	color: #fff !important;
}

/* 覆盖Bootstrap分页样式 */
.pagination > li > a,
.pagination > li > span,
.page-link {
	background-color: #fff !important;
	border: 1px solid #e2e8f0 !important;
}

.pagination > li > a:hover,
.pagination > li > span:hover,
.page-link:hover {
	background-color: #fff !important;
	border-color: #ff6b35 !important;
	color: #ff6b35 !important;
}

/* 分页统计信息 */
.pagination > *:first-child:not(.current):not(a[href*="page="]) {
	background: transparent !important;
	border: none !important;
	color: #64748b !important;
	cursor: default !important;
	pointer-events: none !important;
	font-weight: 400 !important;
	min-width: auto !important;
	height: auto !important;
	padding: 0 16px !important;
}

/* ==================== 响应式 ==================== */
@media (max-width: 1024px) {
	.product-grid {
		grid-template-columns: 240px 1fr;
		gap: 30px;
	}
	
	.product-list-wrapper {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.product-hero {
		padding: 80px 0 50px;
	}
	
	.product-hero h1 {
		font-size: 32px;
	}
	
	.hero-stats {
		flex-direction: column;
		gap: 15px;
	}
	
	.filter-wrapper {
		flex-direction: column;
		align-items: flex-start;
		gap: 15px;
	}
	
	.product-grid {
		grid-template-columns: 1fr;
	}
	
	.product-sidebar {
		position: relative;
		top: 0;
		order: 2;
	}
	
	.product-list-wrapper {
		grid-template-columns: 1fr;
	}
	
	.filter-bar {
		position: relative;
	}
}
