/* 新闻中心页面样式 */

/* 页面基础样式 */
.news-page {
	font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	background-color: #f8f9fa;
}

/* 新闻中心头部 */
.news-hero {
	position: relative;
	min-height: 60vh;
	background:    url('./newsbg1.jpg');
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: white;
	overflow: hidden;
}

.news-hero::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, rgba(26, 54, 93, 0.8) 0%, rgba(44, 82, 130, 0.5) 50%, rgba(49, 130, 206, 0.1) 100%);
	z-index: 1;
}

.news-hero .container {
	position: relative;
	z-index: 2;
}

.news-hero .hero-content {
	/* padding-top: 120px; */
}

.news-hero .breadcrumb {
	margin-bottom: 20px;
	font-size: 14px;
	opacity: 0.9;
}

.news-hero .breadcrumb a {
	color: white;
	text-decoration: none;
	transition: opacity 0.3s ease;
}

.news-hero .breadcrumb a:hover {
	opacity: 0.8;
}

.news-hero .breadcrumb .separator {
	margin: 0 10px;
	opacity: 0.7;
}

.news-hero .breadcrumb .current {
	opacity: 0.8;
}

.news-hero h1 {
	font-size: clamp(36px, 6vw, 40px);
	font-weight: 700;
	margin-bottom: 20px;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.news-hero p {
	font-size: clamp(18px, 3vw, 24px);
	opacity: 0.9;
	max-width: 600px;
	margin: 0 auto;
	line-height: 1.6;
	font-weight: 300;
}

/* 新闻内容区域 */
.news-content {
	padding: 0 0 10px 0;
	background: #f8f9fa;
}


/* 新闻分类标签 */
.news-tabs {
	display: flex;
	justify-content: center;
	margin-bottom: 60px;
	gap: 40px;
}

.tab-item {
	padding: 12px 24px;
	font-size: 16px;
	font-weight: 500;
	color: #666;
	cursor: pointer;
	position: relative;
	transition: color 0.3s ease;
	border: none;
	background: transparent;
}

.tab-item:hover {
	color: #e7d280;
	background: transparent;
}

.tab-item.active {
	color: #e7d280;
	background: transparent;
}

.tab-item::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background-color: #e7d280;
	transition: width 0.3s ease;
}

.tab-item:hover::after,
.tab-item.active::after {
	width: 100%;
}

/* Tab内容区域 */
.tab-content {
	width: 100%;
}

/* 推荐新闻部分 */
.recommended-news {
	margin-bottom: 80px;
}

.recommended-news .section-header {
	text-align: center;
	margin-bottom: 40px;
	position: relative;
}

 
.recommended-news .section-bg-text-right {
	position: absolute;
	top: 50%;
	right: -20px;
	transform: translateY(-50%);
	width: 200px;
	height: 2px;
	background: linear-gradient(90deg, transparent 0%, #e7d280 50%, transparent 100%);
	z-index: 1;
}

 

.recommended-news .section-description {
	font-size: 12px;
	color: rgba(138, 138, 138, 1);
	max-width: 600px;
	margin: 0 auto;
	line-height: 1.6;
	position: relative;
	z-index: 2;
}

/* 推荐新闻三列布局 */
.recommended-layout {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 30px;
	margin-top: 60px;
}

.recommended-card {
	background: white;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	transition: all 0.3s ease;
}

.recommended-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.recommended-card .card-image {
	height: 300px;
	overflow: hidden;
	position: relative;
}

.recommended-card .card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.recommended-card:hover .card-image img {
	transform: scale(1.05);
}

.recommended-card.focus .card-image {
	background: linear-gradient(135deg, #dc3545, #c82333);
	display: flex;
	align-items: center;
	justify-content: center;
}

.focus-bg {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.focus-text {
	font-size: 48px;
	font-weight: 700;
	color: white;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 图片覆盖层样式 */
.image-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
	padding: 30px 20px 20px;
	color: white;
}

.overlay-date {
	font-size: 14px;
	color: #e7d280;
	font-weight: 600;
	margin-bottom: 10px;
	display: flex;
	align-items: center;
}

.overlay-date::before {
	content: '📅';
	margin-right: 8px;
}

.overlay-title {
	font-size: 16px;
	font-weight: 700;
	color: white;
	line-height: 1.4;
	margin: 0;
}

/* 右侧列表区域 */
.recommended-lists {
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.news-list {
	background: white;
	border-radius: 16px;
	padding: 25px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.list-title {
	font-size: 18px;
	font-weight: 700;
	color: #1a365d;
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 2px solid #e7d280;
}

.list-item {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	padding: 30px 0;
	border-bottom: 1px solid #f0f0f0;
	transition: all 0.3s ease;
	cursor: pointer;
}

.list-item:last-child {
	border-bottom: none;
}

.list-item:hover {
	background: rgba(231, 210, 128, 0.05);
	margin: 0 -15px;
	padding: 30px 15px;
	border-radius: 8px;
}

.item-date {
	font-size: 12px;
	color: #e7d280;
	font-weight: 600;
	white-space: nowrap;
	min-width: 80px;
	display: block;
	width: 100%;
	margin-bottom: 8px;
}

.item-title {
	font-size: 14px;
	font-weight: 500;
	color: #333;
	line-height: 1.4;
	margin: 0;
	transition: color 0.3s ease;
}

.list-item:hover .item-title {
	color: #1a365d;
}

/* 响应式设计 */
@media (max-width: 1200px) {
	.recommended-layout {
		grid-template-columns: 1fr 1fr;
		gap: 25px;
	}
	
	.recommended-lists {
		grid-column: 1 / -1;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 25px;
		margin-top: 20px;
	}
}

@media (max-width: 768px) {
	.recommended-layout {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	
	.recommended-lists {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	
	.recommended-card .card-image {
		height: 250px;
	}
	
	.overlay-title {
		font-size: 14px;
	}
	
	.list-item {
		gap: 6px;
	}
	
	.item-date {
		min-width: auto;
	}
}

/* 全部新闻部分 */
.all-news {
	margin-bottom: 60px;
}

.all-news .section-header {
	text-align: center;
	margin-bottom: 50px;
}
 
.all-news .section-description {
	font-size: 12px;
	color: rgba(138, 138, 138, 1);
	max-width: 600px;
	margin: 0 auto;
	line-height: 1.6;
}

.news-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
	gap: 30px;
	margin-bottom: 60px;
}

.news-card {
	background: white;
	border-radius: 12px;
	padding: 30px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	transition: all 0.3s ease;
	position: relative;
	cursor: pointer;
}

.news-card:hover {
	background: #f8f9fa;
	transform: translateY(-4px);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* 新闻卡片选中状态 */
.news-card.selected {
	background: #fff8e1;
	border: 2px solid #e7d280;
	box-shadow: 0 6px 25px rgba(231, 210, 40, 0.2);
}

/* 选中状态下的悬停效果 */
.news-card.selected:hover {
	background: #fff3c4;
	transform: translateY(-3px);
	box-shadow: 0 10px 35px rgba(231, 210, 40, 0.25);
}



.news-card .card-title {
	font-size: 18px;
	font-weight: 700;
	color: #1a365d;
	margin-bottom: 15px;
	line-height: 1.4;
}

.news-card .card-description {
	font-size: 14px;
	color: #666;
	line-height: 1.6;
	margin-bottom: 20px;
}

.news-card .card-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.news-card .card-date {
	font-size: 14px;
	color: #000;
	font-weight: 600;
}

/* 分页样式 */
.pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	margin-top: 60px;
}


/* 平滑滚动 */
html {
	scroll-behavior: smooth;
}

/* 分页按钮样式 - 支持button和a标签 */
.page-btn {
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 50%;
	background: white;
	color: #666;
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	text-decoration: none;
}

.page-btn:hover:not(:disabled) {
	background: #e7d280;
	color: white;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(231, 210, 128, 0.3);
	text-decoration: none;
}

.page-btn.active {
	background: #e7d280;
	color: white;
	box-shadow: 0 4px 12px rgba(231, 210, 128, 0.3);
}

.page-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.page-btn.prev,
.page-btn.next {
	background: white;
	color: #666;
}

.page-btn.prev:hover:not(:disabled),
.page-btn.next:hover:not(:disabled) {
	background: #e7d280;
	color: white;
}

/* 按钮样式 - 新闻页面专用，提高优先级 */
.news-content .btn.primary,
.news-item .btn.primary {
	background: #fff !important;
	color: #e7d280 !important;
	border: 2px solid #e7d280 !important;
	padding: 12px 20px;
	font-size: 16px;
	font-weight: 700;
	border-radius: 999px;
	cursor: pointer;
	transition: all 0.3s ease;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
}

.news-content .btn.primary:hover,
.news-item .btn.primary:hover {
	background: #e7d280 !important;
	color: #fff !important;
	border-color: #e7d280 !important;
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(231, 210, 40, 0.3);
}

.news-content .btn.primary svg,
.news-item .btn.primary svg {
	transition: transform 0.3s ease;
}

.news-content .btn.primary:hover svg,
.news-item .btn.primary:hover svg {
	transform: translateX(4px);
}

/* 响应式设计 */
@media (max-width: 768px) {
	.news-hero {
		min-height: 40vh;
		padding: 100px 0 60px 0;
	}
	
	.news-hero h1 {
		font-size: clamp(32px, 8vw, 48px);
	}
	
	.news-hero p {
		font-size: 16px;
	}
	
	.news-content {
		padding: 60px 0;
	}
	
	.news-tabs {
		gap: 20px;
		margin-bottom: 40px;
	}
	
	.tab-item {
		padding: 10px 16px;
		font-size: 14px;
	}
	
	.recommended-grid {
		grid-template-columns: 1fr;
		gap: 30px;
		margin-top: 40px;
	}
	
	.recommended-card .card-content {
		padding: 20px;
	}
	
	.recommended-card .card-title {
		font-size: 18px;
	}
	
	.news-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	
	.news-card {
		padding: 20px;
	}
	
	.news-card .card-title {
		font-size: 16px;
	}
	
	.pagination {
		gap: 8px;
		margin-top: 40px;
	}
	
	.page-btn {
		width: 36px;
		height: 36px;
		font-size: 14px;
	}
}

@media (max-width: 480px) {
	.news-hero {
		min-height: 35vh;
		padding-top: 80px;
	}
	
	.news-hero .breadcrumb {
		font-size: 12px;
	}
	
	.news-tabs {
		flex-direction: column;
		gap: 15px;
		align-items: center;
	}
	
	.recommended-news .section-bg-text {
		font-size: clamp(40px, 15vw, 80px);
	}
	
	.recommended-card .card-content {
		padding: 15px;
	}
	
	.recommended-card .card-title {
		font-size: 16px;
	}
	
	.focus-text {
		font-size: 36px;
	}
	
	.news-card {
		padding: 15px;
	}
	
	.news-card .card-title {
		font-size: 15px;
	}
	
	.news-card .card-footer {
		flex-direction: column;
		gap: 15px;
		align-items: flex-start;
	}
	
	.news-content .btn.primary,
	.news-item .btn.primary {
		padding: 10px 16px;
		font-size: 14px;
	}
}
