/* ===== 公告卡片 ===== */
.announcement-card {
	background: rgba(255, 255, 255, 0.6);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-radius: 42px;
	padding: 2.5rem;
	border: 1px solid rgba(255, 255, 255, 0.9);
	box-shadow: 0 8px 18px -12px rgba(30, 65, 110, 0.2);
}

/* 公告头部 */
.announcement-header {
	margin-bottom: 2rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid rgba(29, 75, 124, 0.1);
}

.announcement-category {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	background: rgba(29, 75, 124, 0.08);
	color: #1d4b7c;
	padding: 0.3rem 1rem;
	border-radius: 30px;
	font-size: 0.8rem;
	font-weight: 600;
	border: 1px solid rgba(29, 75, 124, 0.15);
	margin-bottom: 1rem;
}

.announcement-title {
	font-size: 2.2rem;
	font-weight: 600;
	color: #153e62;
	line-height: 1.3;
	margin-bottom: 1.2rem;
	letter-spacing: -0.02em;
}

.announcement-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	color: #54779c;
	font-size: 0.9rem;
}

.meta-item {
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.meta-item i {
	color: #1d4b7c;
	width: 1rem;
}

/* 公告内容 */
.announcement-content {
	color: #1f4468;
	font-size: 1rem;
	line-height: 1.8;
}

.announcement-content h2 {
	font-size: 1.5rem;
	font-weight: 600;
	color: #153e62;
	margin: 2rem 0 1rem 0;
}

.announcement-content h3 {
	font-size: 1.2rem;
	font-weight: 600;
	color: #1d4b7c;
	margin: 1.5rem 0 1rem 0;
}

.announcement-content p {
	margin-bottom: 1.2rem;
}

.announcement-content ul,
.announcement-content ol {
	margin: 1rem 0 1.5rem 1.5rem;
}

.announcement-content li {
	margin-bottom: 0.5rem;
}

.announcement-content a {
	color: #1d4b7c;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.announcement-content a:hover {
	color: #0a2942;
}

.announcement-content blockquote {
	background: rgba(255, 255, 255, 0.4);
	border-left: 4px solid #1d4b7c;
	padding: 1rem 1.5rem;
	margin: 1.5rem 0;
	border-radius: 0 20px 20px 0;
	font-style: italic;
	color: #2f4e72;
}

.announcement-content code {
	background: rgba(29, 75, 124, 0.08);
	padding: 0.2rem 0.4rem;
	border-radius: 6px;
	font-family: monospace;
	font-size: 0.9rem;
	color: #1d4b7c;
}

.announcement-content pre {
	background: rgba(29, 75, 124, 0.05);
	padding: 1rem;
	border-radius: 16px;
	overflow-x: auto;
	margin: 1.5rem 0;
	border: 1px solid rgba(29, 75, 124, 0.1);
}

/* ===== 面包屑导航 ===== */
.breadcrumb {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
	font-size: 0.9rem;
	background: rgba(255, 255, 255, 0.4);
	padding: 0.5rem 1.2rem;
	border-radius: 40px;
	backdrop-filter: blur(4px);
	width: fit-content;
	border: 1px solid rgba(255, 255, 255, 0.7);
}

.breadcrumb a {
	color: #1d4b7c;
	text-decoration: none;
	transition: color 0.1s;
}

.breadcrumb a:hover {
	color: #0a2942;
	text-decoration: underline;
}

.breadcrumb i {
	color: #1d4b7c;
	font-size: 0.7rem;
	opacity: 0.5;
}

.breadcrumb span {
	color: #54779c;
}

.announcement-footer {
	margin-top: 3rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(29, 75, 124, 0.1);
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
}

.nav-links-bottom {
	display: flex;
	gap: 1rem;
}

.nav-link-prev,
.nav-link-next {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1.2rem;
	background: rgba(255, 255, 255, 0.5);
	border-radius: 40px;
	text-decoration: none;
	color: #1d4b7c;
	border: 1px solid rgba(255, 255, 255, 0.7);
	transition: all 0.2s;
}

.nav-link-prev:hover,
.nav-link-next:hover {
	background: white;
	transform: translateY(-2px);
	box-shadow: 0 4px 10px rgba(29, 75, 124, 0.1);
}

.back-to-list {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1.5rem;
	background: #1d4b7c;
	border-radius: 40px;
	text-decoration: none;
	color: white;
	border: 1px solid rgba(255, 255, 255, 0.3);
	transition: all 0.2s;
}

.back-to-list:hover {
	background: #153e62;
	transform: translateY(-2px);
	box-shadow: 0 6px 12px rgba(21, 62, 98, 0.3);
}


/* ===== 搜索和筛选栏 ===== */
.filter-bar {
	background: rgba(255, 255, 255, 0.5);
	backdrop-filter: blur(8px);
	border-radius: 60px;
	padding: 0.8rem 1.5rem;
	margin-bottom: 2rem;
	border: 1px solid rgba(255, 255, 255, 0.9);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.search-box {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	background: white;
	padding: 0.4rem 1rem;
	border-radius: 40px;
	flex: 1;
	min-width: 250px;
	border: 1px solid rgba(29, 75, 124, 0.1);
}

.search-box i {
	color: #1d4b7c;
	opacity: 0.6;
}

.search-box input {
	border: none;
	background: transparent;
	padding: 0.4rem 0;
	width: 100%;
	outline: none;
	color: #1d4b7c;
}

.search-box input::placeholder {
	color: #8aa9c9;
}

.filter-tabs {
	display: flex;
	gap: 0.3rem;
	flex-wrap: wrap;
}

.filter-tab {
	padding: 0.4rem 1.2rem;
	border-radius: 40px;
	background: rgba(255, 255, 255, 0.5);
	color: #1d4b7c;
	cursor: pointer;
	transition: all 0.15s;
	border: 1px solid transparent;
	font-size: 0.9rem;
}

.filter-tab:hover {
	background: white;
	border-color: rgba(29, 75, 124, 0.2);
}

.filter-tab.active {
	background: #1d4b7c;
	color: white;
	border-color: #1d4b7c;
}

.filter-tab i {
	margin-right: 0.3rem;
}

/* ===== 列表视图切换 ===== */
.view-toggle {
	display: flex;
	gap: 0.3rem;
	background: rgba(255, 255, 255, 0.5);
	padding: 0.3rem;
	border-radius: 40px;
	border: 1px solid rgba(255, 255, 255, 0.7);
}

.view-btn {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	color: #1d4b7c;
	cursor: pointer;
	transition: all 0.15s;
	border: none;
}

.view-btn:hover {
	background: rgba(255, 255, 255, 0.7);
}

.view-btn.active {
	background: white;
	box-shadow: 0 2px 8px rgba(29, 75, 124, 0.1);
}

/* ===== 列表容器 ===== */
.list-container {
	background: rgba(255, 255, 255, 0.4);
	backdrop-filter: blur(4px);
	border-radius: 42px;
	padding: 2rem;
	border: 1px solid rgba(255, 255, 255, 0.9);
	margin-bottom: 2rem;
}

/* 列表模式 */
.list-view {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.list-item {
	display: flex;
	align-items: center;
	gap: 1.2rem;
	background: rgba(255, 255, 255, 0.6);
	border-radius: 28px;
	padding: 1.2rem 1.5rem;
	border: 1px solid rgba(255, 255, 255, 0.8);
	transition: all 0.2s;
}

.list-item:hover {
	transform: translateX(6px);
	background: rgba(255, 255, 255, 0.8);
	box-shadow: 0 8px 18px -10px rgba(29, 75, 124, 0.2);
}

.item-icon {
	width: 48px;
	height: 48px;
	background: rgba(29, 75, 124, 0.1);
	border-radius: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #1d4b7c;
	font-size: 1.4rem;
	border: 1px solid rgba(29, 75, 124, 0.2);
}

.item-content {
	flex: 1;
}

.item-title {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	margin-bottom: 0.4rem;
	flex-wrap: wrap;
}

.item-title h3 {
	font-weight: 600;
	color: #153e62;
	font-size: 1.1rem;
}

.item-title a {
	color: #153e62;
	text-decoration: none;
}

.item-title a:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.item-badge {
	background: rgba(29, 75, 124, 0.08);
	color: #1d4b7c;
	padding: 0.2rem 0.8rem;
	border-radius: 30px;
	font-size: 0.7rem;
	font-weight: 600;
	border: 1px solid rgba(29, 75, 124, 0.15);
}

.item-badge i {
	margin-right: 0.2rem;
}

.item-meta {
	display: flex;
	gap: 1.5rem;
	color: #54779c;
	font-size: 0.85rem;
	flex-wrap: wrap;
}

.item-meta span {
	display: flex;
	align-items: center;
	gap: 0.3rem;
}

.item-meta i {
	color: #1d4b7c;
	width: 1rem;
}

.item-actions {
	display: flex;
	gap: 0.5rem;
}

.item-btn {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: white;
	color: #1d4b7c;
	border: 1px solid rgba(29, 75, 124, 0.2);
	cursor: pointer;
	transition: all 0.15s;
	text-decoration: none;
}

.item-btn:hover {
	background: #1d4b7c;
	color: white;
	transform: scale(1.1);
}

/* 网格模式 (默认隐藏) */
.grid-view {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.5rem;
	display: none;
}

.grid-view.active {
	display: grid;
}

.grid-item {
	background: rgba(255, 255, 255, 0.6);
	border-radius: 28px;
	padding: 1.5rem;
	border: 1px solid rgba(255, 255, 255, 0.8);
	transition: all 0.2s;
}

.grid-item:hover {
	transform: translateY(-5px);
	background: rgba(255, 255, 255, 0.8);
	box-shadow: 0 12px 24px -14px rgba(29, 75, 124, 0.2);
}

.grid-icon {
	width: 56px;
	height: 56px;
	background: rgba(29, 75, 124, 0.1);
	border-radius: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #1d4b7c;
	font-size: 1.6rem;
	margin-bottom: 1rem;
	border: 1px solid rgba(29, 75, 124, 0.2);
}

.grid-title {
	font-weight: 600;
	color: #153e62;
	font-size: 1.1rem;
	margin-bottom: 0.5rem;
}

.grid-badge {
	display: inline-block;
	background: rgba(29, 75, 124, 0.08);
	color: #1d4b7c;
	padding: 0.2rem 0.8rem;
	border-radius: 30px;
	font-size: 0.7rem;
	font-weight: 600;
	margin-bottom: 0.8rem;
	border: 1px solid rgba(29, 75, 124, 0.15);
}

.grid-meta {
	color: #54779c;
	font-size: 0.85rem;
	margin-bottom: 1rem;
}

.grid-meta div {
	display: flex;
	align-items: center;
	gap: 0.3rem;
	margin-bottom: 0.3rem;
}

.grid-meta i {
	color: #1d4b7c;
	width: 1.2rem;
}

.grid-actions {
	display: flex;
	gap: 0.5rem;
	margin-top: 1rem;
}

.grid-btn {
	flex: 1;
	padding: 0.5rem;
	border-radius: 30px;
	background: white;
	color: #1d4b7c;
	border: 1px solid rgba(29, 75, 124, 0.2);
	cursor: pointer;
	transition: all 0.15s;
	text-align: center;
	text-decoration: none;
	font-size: 0.85rem;
}

.grid-btn:hover {
	background: #1d4b7c;
	color: white;
}

/* ===== 分页 ===== */
.pagination {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.pagination a {
	min-width: 40px;
	height: 40px;
	border-radius: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.5);
	color: #1d4b7c;
	text-decoration: none;
	transition: all 0.15s;
	border: 1px solid rgba(255, 255, 255, 0.7);
	padding: 0 0.5rem;
}

.pagination a:hover {
	background: white;
	transform: translateY(-2px);
	box-shadow: 0 4px 10px rgba(29, 75, 124, 0.1);
}

.pagination a.active {
	background: #1d4b7c;
	color: white;
	border-color: #1d4b7c;
}

.pagination a i {
	font-size: 0.8rem;
}