/* 开发资讯 PC — 版心与新闻/案例页一致，避免切换时宽窄跳变 */

.page-new,
.page-new-details {
	min-width: 19.2rem;
	font-family: "IBMPlexSansSC-Light", "PingFang SC", "Microsoft YaHei", sans-serif;
	font-weight: 300;
	background: #fff;
	color: #222;
}

.page-new .container {
	width: 100%;
	margin: 0 auto;
	box-sizing: border-box;
}

.page-new .hero {
	position: relative;
	height: 6.5rem;
	overflow: hidden;
	color: #fff;
}

.page-new .hero-bg {
	position: absolute;
	inset: 0;
	background: #141418;
}

.page-new .hero-bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.page-new .hero-content {
	position: relative;
	z-index: 1;
	padding-top: 2.15rem;
}

.page-new .hero-title {
	font-size: 0.6rem;
	line-height: 0.9rem;
	font-weight: 300;
}

.dev-news-switch {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.12rem 0;
	padding: 0.42rem 0 0.2rem;
	font-size: 0.2rem;
	line-height: 1.4;
}

.dev-news-switch__btn {
	border: none;
	background: transparent;
	color: #333;
	font-size: 0.2rem;
	font-weight: 300;
	cursor: pointer;
	padding: 0.04rem 0.18rem;
	font-family: inherit;
}

.dev-news-switch__btn.is-active {
	color: #FE0000;
}

.dev-news-switch__sep {
	color: #ccc;
	font-size: 0.18rem;
	user-select: none;
}

.dev-news-list {
	padding: 0.2rem 0 0.8rem;
}

.dev-news-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.48rem 0.6rem;
}

.dev-news-card {
	min-width: 0;
}

.dev-news-card__cover {
	display: none; /* 列表暂不展示封面图 */
	overflow: hidden;
	background: #f5f5f5;
}

.dev-news-card__cover img {
	display: block;
	width: 100%;
	height: 3.2rem;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.dev-news-card:hover .dev-news-card__cover img {
	transform: scale(1.04);
}

.dev-news-card__title {
	margin: 0.2rem 0 0;
	font-size: 0.26rem;
	line-height: 0.4rem;
	font-weight: 500;
}

.dev-news-card__title a {
	color: #111;
	text-decoration: none;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.dev-news-card__labels {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.08rem;
	margin-top: 0.12rem;
	font-size: 0.15rem;
	color: #999;
}

.dev-news-tag {
	color: #FE0000;
	text-decoration: none;
	font-size: 0.15rem;
}

.dev-news-card__desc {
	margin: 0.12rem 0 0;
	font-size: 0.16rem;
	line-height: 0.28rem;
	color: #555;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 0.84rem;
}

.dev-news-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 0.18rem;
	padding-top: 0.14rem;
	border-top: 1px solid #eee;
}

.dev-news-card__foot time {
	font-size: 0.15rem;
	color: #999;
}

.dev-news-card__see,
.dev-news-detail__see {
	display: none; /* 暂不展示阅读量 */
}

.dev-news-empty {
	text-align: center;
	padding: 0.8rem 0;
	color: #999;
	font-size: 0.18rem;
}

/* 详情：版心对齐新闻详情 */
.page-new-details .dev-news-detail {
	width: 18.2rem;
	margin: 0.5rem auto 0.9rem;
	padding: 0 1rem;
	box-sizing: border-box;
}

.dev-news-detail__title {
	margin: 0;
	text-align: center;
	font-size: 0.36rem;
	line-height: 0.56rem;
	font-weight: 500;
	color: #222;
}

.dev-news-detail__labels {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.08rem;
	margin-top: 0.18rem;
	font-size: 0.15rem;
	color: #999;
}

.dev-news-detail__meta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.24rem;
	margin-top: 0.12rem;
	font-size: 0.15rem;
	color: #999;
}

/*
 * 富文本展示：后台输出语义标签（h1–h6 / blockquote / ul / table），
 * 但站点全局 * 与 ul/ol { list-style:none } 会把排版清掉，需在正文区恢复。
 * 不改写接口 HTML，只补展示层样式。
 */
.dev-news-detail__body {
	margin-top: 0.36rem;
	width: 100%;
	max-width: 10.6rem;
	margin-left: auto;
	margin-right: auto;
	overflow-x: auto;
	overflow-wrap: break-word;
	word-wrap: break-word;
	word-break: normal;
	font-size: 0.16rem;
	line-height: 1.75;
	font-weight: 300;
	color: #222222;
	text-align: left;
	font-synthesis: weight;
}

/* 覆盖编辑器异常 nowrap / rem 字号，避免整页被撑破或字号失控 */
.dev-news-detail__body,
.dev-news-detail__body * {
	white-space: normal !important;
	box-sizing: border-box;
}

.dev-news-detail__body * {
	font-size: inherit !important;
}

.dev-news-detail__body small {
	font-size: 0.85em !important;
}

.dev-news-detail__body img,
.dev-news-detail__body video,
.dev-news-detail__body iframe {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

.dev-news-detail__body p {
	margin: 0 0 0.22rem;
	line-height: inherit;
}

.dev-news-detail__body h1 {
	margin: 0.56rem 0 0.28rem;
	font-size: 0.28rem !important;
	line-height: 1.4 !important;
	font-weight: 700 !important;
	font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif !important;
	color: #111111 !important;
}

.dev-news-detail__body h2 {
	margin: 0.52rem 0 0.24rem;
	font-size: 0.24rem !important;
	line-height: 1.4 !important;
	font-weight: 700 !important;
	font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif !important;
	color: #111111 !important;
}

.dev-news-detail__body h3 {
	margin: 0.4rem 0 0.2rem;
	font-size: 0.2rem !important;
	line-height: 1.4 !important;
	font-weight: 700 !important;
	font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif !important;
	color: #111111 !important;
}

.dev-news-detail__body h4,
.dev-news-detail__body h5,
.dev-news-detail__body h6 {
	margin: 0.32rem 0 0.16rem;
	font-size: 0.18rem !important;
	line-height: 1.4 !important;
	font-weight: 700 !important;
	font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif !important;
	color: #111111 !important;
}

.dev-news-detail__body strong,
.dev-news-detail__body b {
	font-weight: 700 !important;
	font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif !important;
	color: #111111 !important;
}

.dev-news-detail__body em,
.dev-news-detail__body i {
	font-style: italic;
}

.dev-news-detail__body a {
	color: #2f6bff;
	text-decoration: underline;
}

.dev-news-detail__body ul,
.dev-news-detail__body ol {
	margin: 0 0 0.24rem !important;
	padding-left: 0.36rem !important;
	list-style: revert !important;
	list-style-type: revert !important;
}

.dev-news-detail__body ul {
	list-style-type: disc !important;
}

.dev-news-detail__body ol {
	list-style-type: decimal !important;
}

.dev-news-detail__body li {
	margin: 0 0 0.1rem !important;
	padding: 0 !important;
	line-height: inherit;
	list-style: inherit !important;
	list-style-type: inherit !important;
}

.dev-news-detail__body li > p {
	margin: 0 0 0.08rem;
}

/* 后台引用块：左红条 + 浅底 */
.dev-news-detail__body blockquote {
	margin: 0.28rem 0;
	padding: 0.14rem 0.18rem 0.14rem 0.2rem;
	border: 0;
	border-left: 0.04rem solid #fe0000;
	background: #f7f7f7;
	color: #222;
}

.dev-news-detail__body blockquote p {
	margin: 0;
	line-height: 1.7;
	color: #222;
}

.dev-news-detail__body hr {
	margin: 0.4rem 0;
	border: 0;
	border-top: 0.01rem solid #e6e6e6;
}

.dev-news-detail__body table {
	width: 100%;
	max-width: 100%;
	margin: 0.28rem 0;
	border-collapse: collapse;
	display: table;
	font-size: 0.14rem !important;
}

.dev-news-detail__body th,
.dev-news-detail__body td {
	border: 0.01rem solid #e0e0e0;
	padding: 0.12rem 0.14rem;
	vertical-align: top;
	text-align: left;
	line-height: 1.5;
	color: #333;
}

.dev-news-detail__body thead th,
.dev-news-detail__body th {
	background: #f7f7f7;
	font-weight: 700 !important;
	font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif !important;
	color: #222;
}

/* PC 上一篇 / 下一篇 */
.page-new-details .article-pager {
	width: 18.2rem;
	margin: 0.8rem auto 0;
	padding: 0 1rem;
	box-sizing: border-box;
}

.page-new-details .article-pager-inner {
	padding-top: 0.555rem;
	border-top: 0.01rem solid #e8e8e8;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	position: relative;
}

.page-new-details .article-pager-inner::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 0.555rem;
	bottom: 0;
	width: 0.01rem;
	transform: translateX(-50%);
	background: #e0e0e0;
}

.page-new-details .pager-item {
	width: 45%;
	max-width: 4.2rem;
	text-decoration: none;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.page-new-details .pager-item.next {
	align-items: flex-end;
	text-align: right;
}

.page-new-details .pager-label {
	font-size: 0.14rem;
	line-height: 0.2rem;
	color: #666;
}

.page-new-details .pager-text {
	margin-top: 0.17rem;
	font-size: 0.18rem;
	line-height: 0.26rem;
	color: #222;
	word-break: break-word;
}

@media (max-width: 1024px) {
	.page-new,
	.page-new-details {
		min-width: 0;
	}

	.page-new .container,
	.page-new-details .dev-news-detail,
	.page-new-details .article-pager {
		width: auto;
		padding-left: 0.24rem;
		padding-right: 0.24rem;
	}

	.dev-news-grid {
		grid-template-columns: 1fr;
	}

	.page-new .hero {
		height: 4.2rem;
	}

	.page-new .hero-title {
		font-size: 0.36rem;
		line-height: 0.52rem;
	}

	.page-new .hero-content {
		padding-top: 1.4rem;
	}
}
