@charset "utf-8";

/* 公告列表：布局/侧栏与 /news/?type=index 一致（无 banner）；主色 #BA0001 */

.announcement-index-page {
	background-color: #fff !important;
}

.announcement-page-inner {
	padding: 20px 0 60px;
	min-height: 420px;
}

/* 左侧：对齐 news #tab_menu */
.announcement-sidebar {
	float: left;
	width: 170px;
	margin-top: 20px;
}

.category-menu {
	list-style: none;
	padding: 0;
	margin: 0;
}

.category-item {
	background: url('/node/public/image/new-website/icons/right_arrow.svg') no-repeat 10px center;
	border-left: 5px solid #fff;
	cursor: pointer;
	padding-left: 40px;
	font-size: 0.16rem;
	line-height: 46px;
	color: #727272;
	box-sizing: border-box;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.category-item.active,
.category-item:hover {
	background-color: rgba(186, 0, 1, 0.1);
	border-left: 5px solid rgba(186, 0, 1, 0.3);
	color: #3d3d3d;
}

/* 右侧：对齐 #news-content */
.announcement-content {
	margin-top: 20px;
	padding-top: 20px;
	margin-left: 190px;
	margin-bottom: 60px;
	min-height: 300px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
	padding-left: 24px;
	padding-right: 24px;
	padding-bottom: 24px;
	box-sizing: border-box;
}

.announcement-header {
	margin-bottom: 20px;
	padding-bottom: 12px;
	border-bottom: none;
	border-left: 4px solid #ba0001;
	padding-left: 16px;
}

.announcement-title {
	font-size: 22px;
	font-weight: 700;
	color: #ba0001;
	margin: 0;
	line-height: 1.3;
}

/* 筛选区 */
.filter-section {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 24px;
	margin-bottom: 20px;
	padding: 16px 18px;
	background: #fafafa;
	border: 1px solid #f0f0f0;
	border-radius: 8px;
}

.filter-group {
	display: flex;
	align-items: center;
	gap: 10px;
}

.filter-group label {
	font-size: 14px;
	color: #666;
	white-space: nowrap;
}

.filter-select {
	height: 34px;
	padding: 0 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	background-color: #fff;
	font-size: 14px;
	color: #333;
	outline: none;
	cursor: pointer;
	min-width: 150px;
}

.filter-select:focus {
	border-color: #ba0001;
	box-shadow: 0 0 0 2px rgba(186, 0, 1, 0.12);
}

/* 表格 */
.announcement-table-wrapper {
	margin-bottom: 20px;
	overflow-x: auto;
	border-radius: 6px;
	border: 1px solid #f0f0f0;
}

.announcement-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.announcement-table thead {
	background-color: #fafafa;
}

.announcement-table th {
	padding: 12px 15px;
	text-align: left;
	font-weight: 600;
	color: #333;
	border-bottom: 1px solid #eee;
}

.announcement-table td {
	padding: 12px 15px;
	border-bottom: 1px dashed #ddd;
	color: #666;
}

.announcement-table tbody tr:hover {
	background-color: #fbf7f8;
}

.announcement-table tbody tr:last-child td {
	border-bottom: none;
}

.project-name a {
	color: #666;
	text-decoration: none;
}

.project-name a:hover {
	color: #ba0001;
}

/* 状态 */
.status-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 4px;
	font-size: 12px;
}

.status-active {
	background-color: rgba(186, 0, 1, 0.08);
	color: #ba0001;
}

.status-ended {
	background-color: #f5f5f5;
	color: #888;
}

/* 分页（对齐党建要闻分页红系） */
.binder-pager.announcement-pager {
	margin-top: 28px;
	text-align: center;
}

.announcement-pager .pagination {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	justify-content: center;
}

.announcement-pager .pagination a {
	display: inline-block;
	min-width: 36px;
	padding: 8px 12px;
	border-radius: 4px;
	color: #ba0001;
	background: #fff;
	text-decoration: none;
	font-size: 14px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
	border: 1px solid #eee;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.announcement-pager .pagination a:hover {
	border-color: rgba(186, 0, 1, 0.35);
	background: rgba(186, 0, 1, 0.06);
}

.announcement-pager .pagination a.active {
	background: #ba0001;
	color: #fff;
	border-color: #ba0001;
}

/* 响应式 */
@media screen and (max-width: 768px) {
	.announcement-sidebar {
		float: none;
		width: 100%;
		margin-top: 12px;
	}

	.category-menu {
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
	}

	.category-item {
		flex: 1 1 auto;
		min-width: 30%;
		padding-left: 32px;
		line-height: 42px;
		font-size: 14px;
	}

	.announcement-content {
		float: none;
		margin-left: 0;
		margin-top: 16px;
		padding: 16px;
	}

	.filter-section {
		flex-direction: column;
		align-items: stretch;
	}

	.filter-group {
		width: 100%;
	}

	.filter-select {
		flex: 1;
		min-width: 0;
	}

	.announcement-table {
		font-size: 12px;
	}

	.announcement-table th,
	.announcement-table td {
		padding: 8px 10px;
	}
}
