/* 新闻详情页面样式 */

/* 新闻详情Banner */
.news-detail-banner {
	width: 100%;
	height: 280px;
	overflow: hidden;
	position: relative;
	background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.news-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;
}

.news-detail-banner .banner-title {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: white;
	font-size: 2.8rem;
	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;
}

/* 新闻详情主要内容 */
.news-detail-container {
	padding: 50px 0;
	min-height: 600px;
	background: #fff;
}

.news-detail-main {
	max-width: 1000px;
	margin: 0 auto;
	padding: 0 20px;
}

/* 新闻标题区域 */
.news-detail-header {
	text-align: center;
	margin-bottom: 40px;
	padding-bottom: 30px;
	border-bottom: 2px solid var(--light-color);
	position: relative;
}

.news-detail-title {
	font-size: 2.2rem;
	color: var(--dark-color);
	font-weight: bold;
	margin-bottom: 20px;
	line-height: 1.4;
}

/* 发布日期样式 */
.news-date-info {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 30px;
	margin-top: 20px;
	flex-wrap: wrap;
}

.news-date-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 1rem;
	color: var(--light-text);
}

.news-date-item i {
	color: var(--primary-color);
	font-size: 1.1rem;
}

.news-date {
	font-size: 1.1rem;
	font-weight: 500;
	color: var(--primary-color);
}

/* 新闻详情内容区域 */
.news-detail-content {
	max-width: 900px;
	margin: 0 auto;
	padding: 30px 0;
}

/* 编辑器内容样式 */
.news-editor-content {
	font-size: 1.1rem;
	line-height: 1.8;
	color: var(--text-color);
}

.news-editor-content p {
	margin-bottom: 24px;
	text-align: justify;
	font-size: 1.05rem;
}

.news-editor-content h2 {
	font-size: 1.8rem;
	color: var(--primary-color);
	font-weight: bold;
	margin: 40px 0 25px;
	padding-bottom: 15px;
	border-bottom: 2px solid var(--light-color);
	position: relative;
}

.news-editor-content h2::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 60px;
	height: 2px;
	background: var(--accent-color);
}

.news-editor-content h3 {
	font-size: 1.5rem;
	color: var(--primary-color);
	font-weight: 600;
	margin: 35px 0 20px;
	padding-left: 10px;
	border-left: 4px solid var(--primary-color);
}

.news-editor-content h4 {
	font-size: 1.3rem;
	color: var(--dark-color);
	font-weight: 600;
	margin: 30px 0 18px;
}

.news-editor-content strong {
	color: var(--primary-color);
	font-weight: 600;
}

.news-editor-content em {
	font-style: italic;
	color: #555;
}

.news-editor-content a {
	color: var(--primary-color);
	text-decoration: underline;
	transition: all 0.3s ease;
	padding: 0 2px;
}

.news-editor-content a:hover {
	color: var(--accent-color);
	background-color: rgba(219, 37, 30, 0.05);
	text-decoration: none;
}

/* 列表样式 */
.news-editor-content ul,
.news-editor-content ol {
	margin: 25px 0;
	padding-left: 35px;
}

.news-editor-content ul li,
.news-editor-content ol li {
	margin-bottom: 15px;
	line-height: 1.7;
	padding-left: 10px;
}

.news-editor-content ul li {
	list-style-type: disc;
}

.news-editor-content ol li {
	list-style-type: decimal;
}

.news-editor-content ul li ul,
.news-editor-content ol li ol {
	margin: 12px 0;
	padding-left: 25px;
}

/* 引用样式 */
.news-editor-content blockquote {
	background: linear-gradient(135deg, var(--light-color), #f8f9ff);
	border-left: 4px solid var(--primary-color);
	padding: 28px 32px;
	margin: 40px 0;
	border-radius: 0 12px 12px 0;
	position: relative;
	box-shadow: 0 5px 20px rgba(23, 55, 130, 0.08);
}

.news-editor-content blockquote::before {
	content: '"';
	font-size: 4rem;
	color: var(--primary-color);
	opacity: 0.1;
	position: absolute;
	top: 10px;
	left: 20px;
	font-family: serif;
	font-weight: bold;
}

.news-editor-content blockquote p {
	margin: 0;
	padding-left: 30px;
	font-size: 1.15rem;
	font-style: italic;
	color: var(--dark-color);
}

/* 表格样式 */
.news-editor-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 35px 0;
	box-shadow: 0 5px 20px rgba(23, 55, 130, 0.1);
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid var(--border-color);
}

.news-editor-content table thead {
	background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.news-editor-content table th {
	color: white;
	font-weight: 600;
	text-align: left;
	padding: 20px 25px;
	font-size: 1.05rem;
	border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.news-editor-content table tbody tr {
	border-bottom: 1px solid var(--border-color);
	transition: all 0.3s ease;
}

.news-editor-content table tbody tr:hover {
	background: var(--light-color);
	transform: translateY(-2px);
	box-shadow: 0 3px 10px rgba(23, 55, 130, 0.1);
}

.news-editor-content table tbody tr:last-child {
	border-bottom: none;
}

.news-editor-content table td {
	padding: 18px 25px;
	color: var(--text-color);
	line-height: 1.6;
}

.news-editor-content table tr:nth-child(even) {
	background: rgba(240, 243, 255, 0.3);
}

/* 图片样式 */
.news-editor-content img {
	max-width: 100%;
	height: auto;
	border-radius: 10px;
	margin: 30px auto;
	display: block;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
	transition: transform 0.3s ease;
}

.news-editor-content img:hover {
	transform: scale(1.01);
}

.news-editor-content figure {
	margin: 30px 0;
	text-align: center;
}

.news-editor-content figcaption {
	font-size: 0.9rem;
	color: var(--light-text);
	font-style: italic;
	margin-top: 10px;
	text-align: center;
}

/* 代码块样式 */
.news-editor-content pre {
	background: #f8f9ff;
	border: 1px solid #e0e6ff;
	border-radius: 10px;
	padding: 25px;
	margin: 30px 0;
	overflow-x: auto;
	font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
	font-size: 0.95rem;
	line-height: 1.6;
}

.news-editor-content code {
	background: rgba(23, 55, 130, 0.08);
	padding: 3px 8px;
	border-radius: 5px;
	font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
	font-size: 0.95rem;
	color: var(--primary-color);
}

/* 分割线 */
.news-editor-content hr {
	border: none;
	height: 1px;
	background: linear-gradient(to right, transparent, var(--light-color), transparent);
	margin: 50px 0;
	position: relative;
}

.news-editor-content hr::before {
	content: '';
	position: absolute;
	top: -4px;
	left: 50%;
	transform: translateX(-50%);
	width: 8px;
	height: 8px;
	background: var(--primary-color);
	border-radius: 50%;
}

/* 响应式设计 */
@media (max-width: 1200px) {
	.news-detail-banner {
		height: 260px;
	}

	.news-detail-banner .banner-title {
		font-size: 2.5rem;
	}

	.news-detail-title {
		font-size: 2rem;
	}
}

@media (max-width: 992px) {
	.news-detail-banner {
		height: 240px;
	}

	.news-detail-banner .banner-title {
		font-size: 2.2rem;
	}

	.banner-subtitle {
		font-size: 1.1rem;
	}

	.news-detail-container {
		padding: 40px 0;
	}

	.news-detail-title {
		font-size: 1.8rem;
	}

	.news-editor-content h2 {
		font-size: 1.6rem;
	}

	.news-editor-content h3 {
		font-size: 1.4rem;
	}
}

@media (max-width: 768px) {
	.news-detail-banner {
		height: 220px;
	}

	.news-detail-banner .banner-title {
		font-size: 1.8rem;
	}

	.banner-subtitle {
		font-size: 1rem;
		margin-top: 15px;
	}

	.news-detail-title {
		font-size: 1.6rem;
	}

	.news-date-info {
		gap: 20px;
	}

	.news-date-item {
		font-size: 0.95rem;
	}

	.news-date {
		font-size: 1rem;
	}

	.news-editor-content {
		font-size: 1.05rem;
		line-height: 1.7;
	}

	.news-editor-content h2 {
		font-size: 1.5rem;
		margin: 35px 0 20px;
	}

	.news-editor-content h3 {
		font-size: 1.3rem;
		margin: 30px 0 18px;
	}

	.news-editor-content p {
		margin-bottom: 20px;
	}

	.news-editor-content ul,
	.news-editor-content ol {
		padding-left: 25px;
	}

	.news-editor-content blockquote {
		padding: 22px 25px;
		margin: 30px 0;
	}

	.news-editor-content table th,
	.news-editor-content table td {
		padding: 15px 18px;
		font-size: 0.95rem;
	}
}

@media (max-width: 576px) {
	.news-detail-banner {
		height: 200px;
	}

	.news-detail-banner .banner-title {
		font-size: 1.6rem;
	}

	.news-detail-title {
		font-size: 1.4rem;
	}

	.news-detail-header {
		margin-bottom: 30px;
		padding-bottom: 20px;
	}

	.news-date-info {
		flex-direction: column;
		gap: 15px;
		align-items: center;
	}

	.news-editor-content h2 {
		font-size: 1.4rem;
	}

	.news-editor-content h3 {
		font-size: 1.2rem;
	}

	.news-editor-content blockquote {
		padding: 18px 20px;
	}

	.news-editor-content blockquote p {
		padding-left: 20px;
		font-size: 1.05rem;
	}
}

@media (max-width: 480px) {
	.news-detail-banner {
		height: 180px;
	}

	.news-detail-banner .banner-title {
		font-size: 1.4rem;
	}

	.banner-subtitle {
		display: none;
	}

	.news-detail-title {
		font-size: 1.3rem;
	}

	.news-editor-content {
		font-size: 1rem;
		line-height: 1.7;
	}

	.news-editor-content p {
		font-size: 1rem;
		line-height: 1.7;
	}

	.news-editor-content ul,
	.news-editor-content ol {
		padding-left: 20px;
	}

	.news-editor-content ul li,
	.news-editor-content ol li {
		margin-bottom: 12px;
		padding-left: 8px;
	}

	.news-editor-content table {
		font-size: 0.9rem;
	}

	.news-editor-content table th,
	.news-editor-content table td {
		padding: 12px 15px;
	}
}