/* 产品详情页面样式 */

/* 产品详情Banner */
.product-detail-banner {
	width: 100%;
	height: 300px;
	overflow: hidden;
	position: relative;
	background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.product-detail-banner::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: url('https://images.unsplash.com/photo-1581094794329-c8112a89af12?ixlib=rb-4.0.3&auto=format&fit=crop&w=1400&q=80') center/cover no-repeat;
	opacity: 0.15;
}

.product-detail-banner .banner-title {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: white;
	font-size: 3rem;
	font-weight: bold;
	text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.3);
	text-align: center;
	width: 100%;
	padding: 0 20px;
	letter-spacing: 2px;
}

.banner-subtitle {
	position: absolute;
	top: 60%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: rgba(255, 255, 255, 0.9);
	font-size: 1.2rem;
	text-align: center;
	width: 100%;
	padding: 0 20px;
	margin-top: 20px;
	font-weight: 300;
}

/* 面包屑导航 */
.breadcrumb {
	background: #f8f9fa;
	padding: 15px 0;
	border-bottom: 1px solid var(--border-color);
}

.breadcrumb .w1 {
	display: flex;
	align-items: center;
	font-size: 0.95rem;
	color: var(--light-text);
}

.breadcrumb a {
	color: var(--light-text);
	transition: color 0.3s ease;
}

.breadcrumb a:hover {
	color: var(--primary-color);
}

.breadcrumb .separator {
	margin: 0 10px;
	color: #ccc;
}

.breadcrumb .current {
	color: var(--primary-color);
	font-weight: 600;
}

/* 产品详情主要内容 */
.product-detail-container {
	padding: 60px 0;
	min-height: 600px;
	background: #fff;
}

.product-detail-main {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* 产品标题区域 */
.product-detail-header {
	text-align: center;
	margin-bottom: 40px;
	padding-bottom: 30px;
	border-bottom: 2px solid var(--light-color);
}

.product-detail-title {
	font-size: 2.5rem;
	color: var(--primary-color);
	font-weight: bold;
	margin-bottom: 20px;
	line-height: 1.3;
}

.product-detail-subtitle {
	font-size: 1.2rem;
	color: var(--light-text);
	max-width: 800px;
	margin: 0 auto;
	line-height: 1.6;
}

/* 产品图片区域 */
.product-detail-image {
	margin: 0 auto 50px;
	max-width: 800px;
	text-align: center;
}

.product-main-image {
	width: 100%;
	height: auto;
	border-radius: 12px;
	box-shadow: 0 8px 30px rgba(23, 55, 130, 0.15);
	transition: transform 0.3s ease;
}

.product-main-image:hover {
	transform: scale(1.01);
}

/* 产品详情内容区域 */
.product-detail-content {
	max-width: 900px;
	margin: 0 auto;
	padding: 0px 0;
}

/* 编辑器内容样式 */
.editor-content {
	font-size: 1.1rem;
	line-height: 1.8;
	color: var(--text-color);
}

.editor-content p {
	margin-bottom: 20px;
	text-align: justify;
}

.editor-content h2 {
	font-size: 1.8rem;
	color: var(--primary-color);
	font-weight: bold;
	margin: 30px 0 20px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--light-color);
}

.editor-content h3 {
	font-size: 1.5rem;
	color: var(--primary-color);
	font-weight: 600;
	margin: 25px 0 15px;
}

.editor-content h4 {
	font-size: 1.3rem;
	color: var(--dark-color);
	font-weight: 600;
	margin: 20px 0 12px;
}

.editor-content strong {
	color: var(--primary-color);
	font-weight: 600;
}

.editor-content a {
	color: var(--primary-color);
	text-decoration: underline;
	transition: color 0.3s ease;
}

.editor-content a:hover {
	color: var(--accent-color);
}

/* 列表样式 */
.editor-content ul,
.editor-content ol {
	margin: 20px 0;
	padding-left: 30px;
}

.editor-content ul li,
.editor-content ol li {
	margin-bottom: 12px;
	line-height: 1.6;
}

.editor-content ul li {
	list-style-type: disc;
}

.editor-content ol li {
	list-style-type: decimal;
}

/* 引用样式 */
.editor-content blockquote {
	background: var(--light-color);
	border-left: 4px solid var(--primary-color);
	padding: 25px;
	margin: 30px 0;
	border-radius: 0 8px 8px 0;
	font-style: italic;
	position: relative;
}

.editor-content blockquote::before {
	content: '"';
	font-size: 3rem;
	color: var(--primary-color);
	opacity: 0.2;
	position: absolute;
	top: 10px;
	left: 15px;
	font-family: serif;
}

.editor-content blockquote p {
	margin: 0;
	padding-left: 30px;
	font-size: 1.15rem;
}

/* 表格样式 */
.editor-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 30px 0;
	box-shadow: 0 3px 15px rgba(23, 55, 130, 0.1);
	border-radius: 8px;
	overflow: hidden;
}

.editor-content table thead {
	background: var(--primary-color);
}

.editor-content table th {
	color: white;
	font-weight: 600;
	text-align: left;
	padding: 18px 20px;
	font-size: 1.1rem;
}

.editor-content table tbody tr {
	border-bottom: 1px solid var(--border-color);
	transition: background 0.3s ease;
}

.editor-content table tbody tr:hover {
	background: var(--light-color);
}

.editor-content table tbody tr:last-child {
	border-bottom: none;
}

.editor-content table td {
	padding: 16px 20px;
	color: var(--text-color);
}

.editor-content table tr:nth-child(even) {
	background: #f9f9f9;
}

/* 图片样式 */
.editor-content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	margin: 20px 0;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* 代码块样式 */
.editor-content pre {
	background: #f5f7ff;
	border: 1px solid #e0e6ff;
	border-radius: 8px;
	padding: 20px;
	margin: 20px 0;
	overflow-x: auto;
	font-family: 'Courier New', monospace;
	font-size: 0.95rem;
}

.editor-content code {
	background: #f5f7ff;
	padding: 2px 6px;
	border-radius: 4px;
	font-family: 'Courier New', monospace;
	font-size: 0.95rem;
	color: var(--primary-color);
}

/* 分割线 */
.editor-content hr {
	border: none;
	border-top: 2px solid var(--light-color);
	margin: 40px 0;
}

/* 响应式设计 */
@media (max-width: 1200px) {
	.product-detail-banner {
		height: 280px;
	}

	.product-detail-banner .banner-title {
		font-size: 2.5rem;
	}

	.product-detail-title {
		font-size: 2.2rem;
	}
}

@media (max-width: 992px) {
	.product-detail-banner {
		height: 250px;
	}

	.product-detail-banner .banner-title {
		font-size: 2.2rem;
	}

	.banner-subtitle {
		font-size: 1.1rem;
	}

	.product-detail-container {
		padding: 40px 0;
	}

	.product-detail-title {
		font-size: 2rem;
	}

	.product-detail-subtitle {
		font-size: 1.1rem;
	}
}

@media (max-width: 768px) {
	.product-detail-banner {
		height: 220px;
	}

	.product-detail-banner .banner-title {
		font-size: 1.8rem;
	}

	.banner-subtitle {
		font-size: 1rem;
		margin-top: 15px;
	}

	.product-detail-title {
		font-size: 1.8rem;
	}

	.product-detail-subtitle {
		font-size: 1.05rem;
	}

	.product-detail-image {
		margin-bottom: 40px;
	}

	.editor-content {
		font-size: 1.05rem;
	}

	.editor-content h2 {
		font-size: 1.6rem;
	}

	.editor-content h3 {
		font-size: 1.4rem;
	}

	.editor-content table th,
	.editor-content table td {
		padding: 12px 15px;
		font-size: 0.95rem;
	}
}

@media (max-width: 576px) {
	.product-detail-banner {
		height: 200px;
	}

	.product-detail-banner .banner-title {
		font-size: 1.6rem;
	}

	.product-detail-title {
		font-size: 1.6rem;
	}

	.product-detail-header {
		margin-bottom: 30px;
		padding-bottom: 20px;
	}

	.editor-content h2 {
		font-size: 1.4rem;
	}

	.editor-content h3 {
		font-size: 1.3rem;
	}

	.editor-content ul,
	.editor-content ol {
		padding-left: 20px;
	}

	.editor-content blockquote {
		padding: 20px;
	}

	.editor-content blockquote p {
		padding-left: 20px;
	}
}

@media (max-width: 480px) {
	.product-detail-banner {
		height: 180px;
	}

	.product-detail-banner .banner-title {
		font-size: 1.4rem;
	}

	.banner-subtitle {
		display: none;
	}

	.product-detail-title {
		font-size: 1.4rem;
	}

	.editor-content {
		font-size: 1rem;
		line-height: 1.7;
	}
}