/*
 开发者: 孙一昊
 创建时间: 2026-09-10 17:25:00
 更新时间:
 模块名称: 新闻动态公共样式
 描述: 列表页与详情页共用头尾、正文、分页样式；正文图片按容器宽度自适应
*/

html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	padding: 0;
	color: #1e293b;
	font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
	background: #0f172a;
	line-height: 1.5;
}
a { text-decoration: none; color: inherit; }
.site-header,
.site-header *,
.site-footer,
.site-footer *,
.news_page,
.news_page * { box-sizing: border-box; }
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 72px;
	background: rgba(15, 23, 42, 0.92);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(51, 65, 85, 0.5);
	z-index: 1000;
}
.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 24px;
	height: 72px;
	position: relative;
}
.logo-link {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}
.logo-link img { width: 40px; height: 40px; border-radius: 12px; object-fit: contain; }
.logo-link span { font-size: 20px; font-weight: 700; color: #ffffff; }
.nav-menu { display: flex; align-items: center; gap: 28px; }
.nav-menu a { color: #cbd5e1; font-size: 15px; font-weight: 500; }
.nav-menu a:hover { color: #ffffff; }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.btn-login { color: #cbd5e1; font-weight: 500; }
.btn-login:hover { color: #ffffff; }
.btn-try {
	display: inline-block;
	padding: 8px 20px;
	border-radius: 12px;
	color: #ffffff;
	font-weight: 500;
	background: linear-gradient(90deg, #6366f1, #a855f7);
}
.mobile-menu-btn {
	display: none;
	background: none;
	border: none;
	color: #cbd5e1;
	font-size: 15px;
	cursor: pointer;
}
.news_page { padding: 100px 16px 48px; min-height: calc(100vh - 72px); }
.news_wrap { max-width: 960px; margin: 0 auto; }
.news_main {
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	padding: 28px 36px 40px;
}
.news_crumb {
	font-size: 14px;
	color: #999999;
	margin-bottom: 20px;
	padding-bottom: 14px;
	border-bottom: 1px solid #f0f0f0;
}
.news_crumb a { color: #666666; }
.news_crumb a:hover { color: #6366f1; }
.news_crumb i { margin: 0 8px; color: #cccccc; font-style: normal; }

.news_item { padding: 24px 0; border-bottom: 1px solid #f0f0f0; }
.news_item:last-of-type { border-bottom: none; }
.news_item_title { font-size: 18px; line-height: 1.5; color: #333333; font-weight: bold; }
.news_item_title a { color: #333333; }
.news_item_title a:hover { color: #6366f1; }
.news_item_desc {
	font-size: 14px;
	line-height: 1.7;
	color: #666666;
	margin-top: 10px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.news_item_meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 14px;
	flex-wrap: wrap;
}
.news_item_date { font-size: 13px; color: #999999; }
.news_item_btn {
	display: inline-block;
	height: 30px;
	line-height: 28px;
	padding: 0 16px;
	font-size: 13px;
	color: #6366f1;
	border: 1px solid #6366f1;
	border-radius: 15px;
}
.news_item_btn:hover { background: #6366f1; color: #ffffff; }
.news_pager {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 28px;
}
.news_pager a,
.news_pager span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	height: 32px;
	padding: 0 8px;
	font-size: 14px;
	color: #666666;
	background: #f4f4f5;
	border-radius: 2px;
}
.news_pager a:hover { color: #6366f1; }
.news_pager .is_active { background: #6366f1; color: #ffffff; }

.news_detail_title {
	font-size: 26px;
	line-height: 1.4;
	color: #333333;
	font-weight: bold;
}
.news_detail_meta {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 16px;
	padding-bottom: 18px;
	border-bottom: 1px solid #f0f0f0;
}
.news_detail_date { font-size: 14px; color: #999999; }
.news_detail_body {
	padding-top: 28px;
	font-size: 15px;
	line-height: 2;
	color: #333333;
	overflow-x: hidden;
	word-wrap: break-word;
	overflow-wrap: break-word;
}
.news_detail_body p { margin: 0 0 16px; }
.news_detail_body h2 {
	font-size: 20px;
	margin: 28px 0 12px;
	color: #0f172a;
}
.news_detail_body h3 { font-size: 17px; margin: 20px 0 8px; }
.news_detail_body ul { margin: 0 0 16px; padding-left: 22px; }
.news_detail_body strong { color: #4f46e5; }
.news_detail_body img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 16px 0;
	border-radius: 8px;
}
.news_detail_body video {
	display: block;
	max-width: 100%;
	height: auto;
}
.news_detail_body iframe {
	display: block;
	max-width: 100%;
}
.news_detail_body table {
	width: 100%;
	max-width: 100%;
	border-collapse: collapse;
}
.news_detail_body pre {
	max-width: 100%;
	overflow-x: auto;
	white-space: pre-wrap;
	word-break: break-word;
}
.news_back {
	display: inline-block;
	margin-top: 32px;
	padding: 8px 18px;
	border: 1px solid #6366f1;
	border-radius: 8px;
	color: #6366f1;
	font-size: 14px;
}
.news_back:hover { background: #6366f1; color: #ffffff; }

.site-footer {
	background: #0f172a;
	border-top: 1px solid rgba(51, 65, 85, 0.5);
	padding: 48px 24px 32px;
	color: #94a3b8;
}
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
	gap: 32px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand img { width: 40px; height: 40px; border-radius: 12px; }
.footer-brand span { color: #ffffff; font-size: 18px; font-weight: 700; }
.footer-col h4 { color: #ffffff; font-size: 15px; margin: 0 0 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; font-size: 14px; }
.footer-col a:hover { color: #ffffff; }
.footer-bottom {
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid rgba(51, 65, 85, 0.5);
	text-align: center;
	font-size: 13px;
	color: #64748b;
}
.footer-bottom a { color: #64748b; }
.footer-bottom a:hover { color: #cbd5e1; }

@media (max-width: 900px) {
	.nav-menu, .nav-actions { display: none; }
	.nav-menu.active {
		display: flex;
		flex-direction: column;
		position: absolute;
		top: 72px;
		left: 16px;
		right: 16px;
		background: #1e293b;
		padding: 16px;
		border-radius: 12px;
		gap: 12px;
	}
	.mobile-menu-btn { display: block; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.news_main { padding: 16px 16px 24px; }
	.news_detail_title { font-size: 22px; }
}
