/**
 * 产品详情页样式 - 独立设计
 * 适用于：product.html
 */

/* ==================== 产品详情页基础 ==================== */
/* CSS变量定义在 :root 避免冲突 */
:root {
	--pd-primary: #0066CC;
	--pd-primary-light: #1b263b;
	--pd-accent: #0066CC;
	--pd-accent-light: #0066CC;
	--pd-gray-50: #f8fafc;
	--pd-gray-100: #f1f5f9;
	--pd-gray-200: #e2e8f0;
	--pd-gray-300: #cbd5e1;
	--pd-gray-400: #94a3b8;
	--pd-gray-500: #64748b;
	--pd-gray-600: #475569;
	--pd-gray-700: #334155;
	--pd-gray-800: #1e293b;
	--pd-gray-900: #0f172a;
}
/* 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;
}

/* ==================== 面包屑导航 ==================== */
.pd-breadcrumb-section {
	padding: 20px 0;
	background: var(--pd-gray-50);
	border-bottom: 1px solid var(--pd-gray-200);
}

.pd-breadcrumb-nav {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 14px;
	color: var(--pd-gray-500);
}

.pd-breadcrumb-nav a {
	color: var(--pd-gray-600);
	text-decoration: none;
	transition: color 0.2s;
}

.pd-breadcrumb-nav a:hover {
	color: var(--pd-accent);
}

.pd-breadcrumb-nav i {
	font-size: 10px;
	color: var(--pd-gray-400);
}

.pd-breadcrumb-nav span {
	color: var(--pd-gray-900);
	font-weight: 500;
}

/* ==================== 产品详情主体 ==================== */
.product-detail-section {
	padding: 50px 0;
	background: #fff;
}

.product-detail-wrapper {
	display: grid;
	grid-template-columns: 1fr 1.3fr;
	gap: 60px;
	align-items: start;
}

/* ==================== 产品图片区域 ==================== */
.product-media {
	position: sticky;
	top: 100px;
}

.image-gallery {
	background: var(--pd-gray-50);
	border-radius: 16px;
	padding: 25px;
}

.main-image-wrapper {
	position: relative;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 20px;
	border: 1px solid var(--pd-gray-200);
}

.main-image {
	position: relative;
	aspect-ratio: 4 / 3;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 30px;
	cursor: crosshair;
}

.main-image img {
	max-width: 90%;
	max-height: 90%;
	object-fit: contain;
}

/* 图片悬停放大效果 */
.main-image {
	overflow: hidden;
}

.main-image img {
	transition: transform 0.4s ease;
}

.main-image:hover img {
	transform: scale(1.5);
}

/* 图片标签 */
.image-badge {
	position: absolute;
	top: 15px;
	left: 15px;
	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: var(--pd-accent);
	color: #fff;
}

/* 缩略图轮播 */
.thumbnail-carousel {
	display: flex;
	align-items: center;
	gap: 10px;
}

.thumbs-wrapper {
	flex: 1;
	overflow: hidden;
}

.thumbs-list {
	display: flex;
	gap: 10px;
	transition: transform 0.3s ease;
}

.thumb-item {
	width: 80px;
	height: 80px;
	background: #fff;
	border: 2px solid transparent;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	transition: all 0.2s;
	flex-shrink: 0;
}

.thumb-item:hover {
	border-color: var(--pd-gray-300);
}

.thumb-item.active {
	border-color: var(--pd-accent);
}

.thumb-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.thumb-nav {
	width: 36px;
	height: 36px;
	background: #fff;
	border: 1px solid var(--pd-gray-200);
	border-radius: 8px;
	color: var(--pd-gray-600);
	cursor: pointer;
	transition: all 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
}

.thumb-nav:hover {
	border-color: var(--pd-accent);
	color: var(--pd-accent);
}

/* ==================== 产品信息面板 ==================== */
.product-info-panel {
	padding: 10px 0;
}

.product-header-info {
	margin-bottom: 25px;
}

.product-category-tag {
	display: inline-block;
	padding: 6px 14px;
	background: var(--pd-accent);
	color: #fff;
	border-radius: 50px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 15px;
}

.product-info-panel .product-name {
	font-size: 32px;
	font-weight: 800;
	color: var(--pd-gray-900);
	margin: 0 0 12px;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.product-subtitle {
	font-size: 16px;
	color: var(--pd-gray-500);
	line-height: 1.6;
}

/* 元信息栏 */
.product-meta-bar {
	display: flex;
	align-items: center;
	gap: 30px;
	padding: 20px 0;
	border-top: 1px solid var(--pd-gray-200);
	border-bottom: 1px solid var(--pd-gray-200);
	margin-bottom: 25px;
}

.meta-item {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.meta-label {
	font-size: 12px;
	color: var(--pd-gray-400);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.meta-value {
	font-size: 15px;
	font-weight: 600;
	color: var(--pd-gray-900);
}

.meta-value.model-code {
	font-family: monospace;
	color: var(--pd-accent);
}

.meta-divider {
	width: 1px;
	height: 40px;
	background: var(--pd-gray-200);
}

/* 关键参数展示 */
.specs-highlight {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 15px;
	margin-bottom: 25px;
}

.spec-highlight-item {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 18px;
	background: var(--pd-gray-50);
	border-radius: 12px;
	border: 1px solid var(--pd-gray-100);
}

.spec-icon {
	width: 48px;
	height: 48px;
	background: var(--pd-accent);
	color: #fff;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	flex-shrink: 0;
}

.spec-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.spec-info .spec-label {
	font-size: 12px;
	color: var(--pd-gray-400);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.spec-info .spec-value {
	font-size: 16px;
	font-weight: 700;
	color: var(--pd-gray-900);
}

/* 产品简介 */
.product-brief {
	background: var(--pd-gray-50);
	border-radius: 12px;
	padding: 25px;
	margin-bottom: 25px;
}

.product-brief h3 {
	font-size: 14px;
	font-weight: 700;
	color: var(--pd-gray-900);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin: 0 0 15px;
}

.product-brief p {
	font-size: 15px;
	color: var(--pd-gray-600);
	line-height: 1.7;
	margin: 0;
}

/* 操作按钮 */
.product-actions {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.action-primary {
	display: flex;
	gap: 12px;
}

.btn-inquiry,
.btn-sample {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 16px 28px;
	border-radius: 50px;
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
	transition: all 0.3s ease;
}

.btn-inquiry {
	background: var(--pd-accent);
	color: #fff;
}

.btn-inquiry:hover {
	background: var(--pd-accent-light);
	transform: translateY(-2px);
	box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.btn-sample {
	background: var(--pd-gray-100);
	color: var(--pd-gray-700);
	border: 1px solid var(--pd-gray-200);
}

.btn-sample:hover {
	background: var(--pd-gray-200);
	border-color: var(--pd-gray-300);
}

.action-secondary {
	display: flex;
	gap: 10px;
}

.action-btn {
	width: 48px;
	height: 48px;
	background: #fff;
	border: 1px solid var(--pd-gray-200);
	border-radius: 50%;
	color: var(--pd-gray-600);
	cursor: pointer;
	transition: all 0.2s;
}

.action-btn:hover {
	border-color: var(--pd-accent);
	color: var(--pd-accent);
}

/* ==================== 内容标签页 ==================== */
.product-content-section {
	padding: 60px 0;
	background: var(--pd-gray-50);
}

.content-tabs {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.05);
	overflow: hidden;
}

.tabs-nav {
	display: flex;
	border-bottom: 1px solid var(--pd-gray-200);
	background: var(--pd-gray-50);
}

.tab-item {
	flex: 1;
	padding: 20px 24px;
	background: transparent;
	border: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	font-size: 15px;
	font-weight: 600;
	color: var(--pd-gray-500);
	cursor: pointer;
	transition: all 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.tab-item:hover {
	color: var(--pd-gray-700);
}

.tab-item.active {
	color: var(--pd-accent);
	border-bottom-color: var(--pd-accent);
	background: #fff;
}

.tabs-content {
	padding: 40px;
}

.tab-panel {
	display: none;
}

.tab-panel.active {
	display: block;
}

.panel-title {
	font-size: 20px;
	font-weight: 700;
	color: var(--pd-gray-900);
	margin: 0 0 25px;
}

/* 内容编辑器 */
.content-editor {
	font-size: 16px;
	line-height: 1.8;
	color: var(--pd-gray-700);
}

.content-editor p {
	margin-bottom: 20px;
}

.content-editor img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
	margin: 30px 0;
}

/* 参数表格 */
.specs-table-wrapper {
	overflow-x: auto;
}

.data-table {
	width: 100%;
	border-collapse: collapse;
}

.data-table tr {
	border-bottom: 1px solid var(--pd-gray-200);
}

.data-table tr:last-child {
	border-bottom: none;
}

.param-name {
	width: 20%;
	padding: 16px 20px;
	background: var(--pd-gray-50);
	font-weight: 600;
	color: var(--pd-gray-700);
	font-size: 14px;
}

.param-value {
	width: 30%;
	padding: 16px 20px;
	color: var(--pd-gray-900);
	font-size: 15px;
}

/* 应用场景 */
.app-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 25px;
}

.app-card {
	background: var(--pd-gray-50);
	border-radius: 16px;
	padding: 35px;
	text-align: center;
	transition: all 0.3s ease;
	border: 1px solid var(--pd-gray-100);
}

.app-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 35px rgba(0,0,0,0.1);
	border-color: var(--pd-accent);
}

.app-icon {
	width: 70px;
	height: 70px;
	background: var(--pd-accent);
	color: #fff;
	border-radius: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	margin: 0 auto 20px;
}

.app-card h4 {
	font-size: 18px;
	font-weight: 700;
	color: var(--pd-gray-900);
	margin: 0 0 12px;
}

.app-card p {
	font-size: 14px;
	color: var(--pd-gray-500);
	line-height: 1.6;
	margin: 0;
}

/* 下载列表 */
.download-list {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.download-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 25px;
	background: var(--pd-gray-50);
	border-radius: 12px;
	border: 1px solid var(--pd-gray-100);
}

.file-info {
	display: flex;
	align-items: center;
	gap: 18px;
}

.file-icon {
	width: 52px;
	height: 52px;
	background: #fff;
	border: 1px solid var(--pd-gray-200);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	color: var(--pd-accent);
}

.file-detail {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.file-name {
	font-weight: 600;
	color: var(--pd-gray-900);
}

.file-size {
	font-size: 13px;
	color: var(--pd-gray-400);
}

.btn-download {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	background: var(--pd-accent);
	color: #fff;
	border-radius: 50px;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	transition: all 0.2s;
}

.btn-download:hover {
	background: var(--pd-accent-light);
}

/* ==================== 相关产品 ==================== */
.related-products-section {
	padding: 80px 0;
	background: #fff;
}

.related-section-header {
	text-align: center;
	margin-bottom: 50px;
}

.related-section-title {
	font-size: 32px;
	font-weight: 800;
	color: var(--pd-gray-900);
	margin: 0 0 12px;
}

.related-section-title span {
	color: var(--pd-accent);
}

.related-section-desc {
	font-size: 16px;
	color: var(--pd-gray-500);
}

.related-products-slider {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 25px;
}

.related-product-card {
	background: var(--pd-gray-50);
	border-radius: 16px;
	overflow: hidden;
	transition: all 0.3s ease;
	border: 1px solid var(--pd-gray-100);
}

.related-product-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 35px rgba(0,0,0,0.1);
	border-color: var(--pd-accent);
}

.related-image {
	aspect-ratio: 1;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 25px;
}

.related-image img {
	max-width: 80%;
	max-height: 80%;
	object-fit: contain;
}

.related-content {
	padding: 20px;
}

.related-category {
	font-size: 11px;
	font-weight: 600;
	color: var(--pd-accent);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 8px;
}

.related-content h4 {
	font-size: 15px;
	font-weight: 700;
	color: var(--pd-gray-900);
	margin: 0 0 8px;
	line-height: 1.3;
}

.related-content h4 a {
	color: inherit;
	text-decoration: none;
}

.related-content h4 a:hover {
	color: var(--pd-accent);
}

.related-model {
	font-family: monospace;
	font-size: 12px;
	color: var(--pd-gray-400);
}

/* ==================== 上下篇导航 ==================== */
.post-navigation {
	padding: 50px 0;
	background: var(--pd-gray-50);
	border-top: 1px solid var(--pd-gray-200);
}

.post-nav-wrapper {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 25px;
}

.post-nav-item {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 25px;
	background: #fff;
	border-radius: 16px;
	border: 1px solid var(--pd-gray-200);
	text-decoration: none;
	transition: all 0.3s ease;
}

.post-nav-item:hover {
	border-color: var(--pd-accent);
	box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.post-nav-item.next {
	flex-direction: row-reverse;
	text-align: right;
}

.post-nav-thumb {
	width: 90px;
	height: 90px;
	background: var(--pd-gray-50);
	border-radius: 12px;
	overflow: hidden;
	flex-shrink: 0;
}

.post-nav-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post-nav-info {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.post-nav-label {
	font-size: 12px;
	color: var(--pd-gray-400);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.post-nav-title {
	font-size: 15px;
	font-weight: 600;
	color: var(--pd-gray-900);
	line-height: 1.4;
}

/* ==================== 浮动按钮 ==================== */
.float-actions {
	position: fixed;
	bottom: 25px;
	right: 25px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	z-index: 1000;
	opacity: 0;
	transform: translateY(20px);
	transition: all 0.3s ease;
	pointer-events: none;
}

.float-actions.visible {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.float-btn {
	width: 60px;
	height: 60px;
	background: #fff;
	border: 1px solid var(--pd-gray-200);
	border-radius: 50%;
	color: var(--pd-gray-600);
	cursor: pointer;
	transition: all 0.2s;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	text-decoration: none;
}

.float-btn:hover {
	border-color: var(--pd-accent);
	color: var(--pd-accent);
	transform: translateY(-2px);
}

.float-btn.primary {
	background: var(--pd-accent);
	border-color: var(--pd-accent);
	color: #fff;
}

.float-btn.primary:hover {
	background: var(--pd-accent-light);
}

.float-btn span {
	font-size: 11px;
	font-weight: 600;
}

/* Toast提示 */
.toast-message {
	position: fixed;
	bottom: 100px;
	left: 50%;
	transform: translateX(-50%) translateY(20px);
	background: var(--pd-gray-900);
	color: #fff;
	padding: 16px 28px;
	border-radius: 50px;
	font-size: 14px;
	font-weight: 500;
	opacity: 0;
	transition: all 0.3s ease;
	z-index: 1001;
}

.toast-message.show {
	transform: translateX(-50%) translateY(0);
	opacity: 1;
}

/* ==================== 响应式 ==================== */
@media (max-width: 1024px) {
	.product-detail-wrapper {
		grid-template-columns: 1fr;
		gap: 40px;
	}
	
	.product-media {
		position: relative;
		top: 0;
	}
	
	.zoom-result {
		display: none !important;
	}
	
	.app-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	
	.related-products-slider {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.product-info-panel .product-name {
		font-size: 24px;
	}
	
	.specs-highlight {
		grid-template-columns: 1fr;
	}
	
	.product-meta-bar {
		flex-wrap: wrap;
		gap: 20px;
	}
	
	.meta-divider {
		display: none;
	}
	
	.action-primary {
		flex-direction: column;
	}
	
	.tabs-nav {
		flex-wrap: wrap;
	}
	
	.tab-item {
		flex: 1 1 50%;
		padding: 15px;
		font-size: 14px;
	}
	
	.tabs-content {
		padding: 25px;
	}
	
	.app-grid {
		grid-template-columns: 1fr;
	}
	
	.nav-wrapper {
		grid-template-columns: 1fr;
	}
	
	.related-products-slider {
		grid-template-columns: 1fr;
	}
	
	.download-item {
		flex-direction: column;
		gap: 15px;
		align-items: flex-start;
	}
}
