/* banner 见 theme.css */

/* 新闻页：左侧导航 + 右侧列表 */
.news-layout {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 28px;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 28px 20px 48px;
	box-sizing: border-box;
}
.news-sidebar {
	flex: 0 0 200px;
	position: sticky;
	top: 12px;
	align-self: flex-start;
}
.news-nav {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	padding: 12px 0;
	background: #fafafa;
	border: 1px solid #e8e8e8;
	border-radius: 10px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.news-nav__item {
	display: block;
	width: 100%;
	margin: 0;
	padding: 12px 16px 12px 14px;
	font-size: 15px;
	line-height: 1.35;
	text-align: left;
	color: #444;
	background: transparent;
	border: none;
	border-left: 3px solid transparent;
	border-radius: 0 6px 6px 0;
	cursor: pointer;
	font-family: inherit;
	-webkit-appearance: none;
	appearance: none;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	box-sizing: border-box;
}
.news-nav__item:focus {
	outline: none;
}
.news-nav__item:focus-visible {
	outline: 2px solid rgba(247, 148, 29, 0.55);
	outline-offset: 2px;
}
.news-nav__item:hover {
	background: rgba(247, 148, 29, 0.08);
	color: #c45a00;
}
.news-nav__item--active {
	background: rgba(247, 148, 29, 0.12);
	color: #b35200;
	font-weight: 600;
	border-left-color: #f7941d;
}
.news-main {
	flex: 1;
	min-width: 0;
}
.news-main .news-feed-pane {
	align-items: stretch;
}
.news-main .news-feed-pane .knowledge-intro,
.news-main .news-feed-pane .news-content.knowledge-list,
.news-main .news-feed-pane .news-feed-pager {
	width: 100%;
	max-width: none;
}
.news-placeholder{
	width:75%;
	margin:40px auto;
	padding:24px;
	color:#666;
	text-align:center;
	border:1px dashed #ddd;
}

/* 电子行业知识：导语 / 列表 / 分页同一居中栏 */
.news-feed-pane {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	box-sizing: border-box;
}

.news-feed-pane .knowledge-intro {
	width: 75%;
	max-width: 1120px;
	margin: 0 auto 24px;
	padding: 12px 16px;
	color: #666;
	font-size: 14px;
	line-height: 1.65;
	background: #f9f9f9;
	border-left: 3px solid #f7941d;
	border-radius: 0 6px 6px 0;
	box-sizing: border-box;
}

@media (max-width: 768px) {
	.news-feed-pane .knowledge-intro {
		width: 92%;
		max-width: 1120px;
	}
}

/* 电子行业知识 · 列表卡片 */
.news-feed-pane .news-content.knowledge-list {
	display: flex;
	flex-direction: column;
	gap: 18px;
	width: 75%;
	max-width: 1120px;
	margin: 0 auto;
	box-sizing: border-box;
}

.news-feed-pane .news-content > .knowledge-item {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	gap: 22px;
	box-sizing: border-box;
	margin: 0;
	padding: 22px 24px;
	border-radius: 12px;
	border: 1px solid #e8e8e8;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
	cursor: pointer;
}

@media (hover: hover) {
	.news-feed-pane .news-content > .knowledge-item:hover {
		border-color: #f0c080;
		box-shadow: 0 10px 28px rgba(247, 148, 29, 0.14);
		transform: translateY(-2px);
	}
}

.knowledge-item__media {
	flex-shrink: 0;
	width: 152px;
	min-height: 108px;
	border-radius: 10px;
	overflow: hidden;
	background: #eee;
}

.knowledge-item__media--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 108px;
	background: linear-gradient(145deg, #f7941d 0%, #e07016 50%, #c75a0c 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.knowledge-item__glyph {
	font-size: 44px;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.95);
	font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", sans-serif;
	line-height: 1;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
	user-select: none;
}

.knowledge-item__img {
	width: 100%;
	height: 100%;
	min-height: 108px;
	object-fit: cover;
	display: block;
	vertical-align: top;
}

.knowledge-item__body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.news-feed-pane .knowledge-item__title {
	margin: 0 0 10px;
	padding: 0;
	font-size: 18px;
	font-weight: 600;
	color: #2a2a2a;
	line-height: 1.45;
	border: none;
}

.knowledge-item__excerpt {
	margin: 0 0 12px;
	padding: 0;
	font-size: 14px;
	line-height: 1.7;
	color: #5c5c5c;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}

.knowledge-item__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 6px;
	border-top: 1px solid #f0f0f0;
}

.knowledge-item__date {
	font-size: 14px;
	color: #999;
	font-variant-numeric: tabular-nums;
}

.knowledge-item__action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 7px 16px;
	font-size: 13px;
	font-weight: 500;
	color: #f7941d;
	border: 1px solid #f7941d;
	border-radius: 22px;
	background: rgba(247, 148, 29, 0.06);
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

@media (hover: hover) {
	.news-feed-pane .news-content > .knowledge-item:hover .knowledge-item__action {
		background: #f7941d;
		color: #fff;
		border-color: #f7941d;
	}
}

/* 平板：列表与侧栏宽度 */
@media (max-width: 992px) {
	.news-layout {
		gap: 20px;
		padding: 20px 16px 40px;
	}
	.news-sidebar {
		flex-basis: 176px;
	}
	.news .news-content {
		width: 90%;
		max-width: 1120px;
		margin-left: auto;
		margin-right: auto;
		box-sizing: border-box;
	}

	.news-feed-pane .knowledge-intro,
	.news-feed-pane .news-content.knowledge-list,
	.news-feed-pane .news-feed-pager {
		width: 90%;
		max-width: 1120px;
	}
	.news-main .news-feed-pane .knowledge-intro,
	.news-main .news-feed-pane .news-content.knowledge-list,
	.news-main .news-feed-pane .news-feed-pager {
		width: 100%;
	}

	.knowledge-item__media {
		width: 128px;
		min-height: 100px;
	}

	.knowledge-item__media--placeholder {
		min-height: 100px;
	}
}

@media (max-width: 768px) {
	.news-layout {
		flex-direction: column;
		align-items: stretch;
		padding: 16px 14px 36px;
		gap: 16px;
	}
	.news-sidebar {
		flex: none;
		width: 100%;
		position: static;
		top: auto;
	}
	.news-nav {
		flex-direction: row;
		flex-wrap: wrap;
		padding: 10px;
		gap: 8px;
		justify-content: flex-start;
	}
	.news-nav__item {
		width: auto;
		flex: 1 1 auto;
		min-width: calc(33.333% - 8px);
		padding: 10px 12px;
		font-size: 14px;
		text-align: center;
		border-left: none;
		border-radius: 8px;
		border: 1px solid #e5e5e5;
		background: #fff;
	}
	.news-nav__item--active {
		border-color: #f7941d;
		background: rgba(247, 148, 29, 0.12);
	}

	.news {
		margin-top: 0;
	}

	.news .news-content {
		width: 100%;
		padding: 0 14px;
		box-sizing: border-box;
	}

	.news-placeholder {
		width: auto;
		margin-left: 14px;
		margin-right: 14px;
	}

	.news-feed-pane .news-content > .knowledge-item {
		flex-direction: column;
		align-items: stretch;
		padding: 16px;
		gap: 14px;
	}

	.news-feed-pane .knowledge-item__title {
		font-size: 17px;
	}

	.knowledge-item__media,
	.knowledge-item__media--placeholder {
		width: 100%;
		min-height: 100px;
		max-height: 180px;
	}

	.knowledge-item__img {
		min-height: 140px;
		max-height: 180px;
		object-fit: cover;
	}

	.knowledge-item__glyph {
		font-size: 40px;
	}

	.knowledge-item__foot {
		flex-direction: column;
		align-items: stretch;
		padding-top: 12px;
		gap: 10px;
	}

	.knowledge-item__action {
		width: 100%;
		padding: 10px 16px;
		box-sizing: border-box;
	}

	.news-feed-pane .news-feed-pager {
		width: 100%;
		max-width: 100%;
		padding: 0 14px;
		box-sizing: border-box;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		justify-content: flex-start;
	}
}

@media (max-width: 480px) {
	.news-nav__item {
		min-width: calc(50% - 6px);
		font-size: 13px;
		padding: 9px 10px;
	}

	.news-feed-pane .knowledge-intro {
		font-size: 13px;
		padding: 10px 12px;
	}

	.news-feed-pane .knowledge-item__title {
		font-size: 16px;
	}

	.knowledge-item__excerpt {
		font-size: 13px;
		-webkit-line-clamp: 4;
	}
}

/* 正文内容 */
.tab-title{
	width:100%;
	height:200px;
	display:flex;
	justify-content: center;
	align-items: center;
}
.tab-title>div{
	width:75%;
	height:100%;
	display:flex;
	justify-content: center;
	align-items: center;
	font-size:40px;
	border-bottom:solid #ddd 1px;
}

/* 正文内容 */
.tab-content{
	width:75%;
	margin:30px auto;	
}
.tab-content>p{
	margin-bottom:15px;
	line-height:24px;
}
.tab-content>p>img{
	width:100%;
}

/* 新闻内容 */
.news{
	width:100%;	
	margin-top:0;
}
.news>.news-content{
	width:75%;
	margin:0 auto;
}
.news>.news-content>div{
	/* padding:0 20px; */
	height:160px;
	border: 1px solid transparent;
	position: relative;
	background: #f7f7f7;
	transition: all .6s cubic-bezier(.215,.61,.355,1) 0s;
	display:flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom:30px;
}
.news>.news-content>div:hover{
	cursor: pointer;
	border: 1px solid #efefef;
	box-shadow: 0 6px 10px 5px rgba(0,0,0,.08);
}
.news>.news-content>div>div:nth-child(1){
	width:230px;
	height:160px;
	display:flex;
	justify-content: center;
	align-content: center;
	transition: all .3s ease-out 0s;
}
.news>.news-content>div:hover>div:nth-child(1){
	background:#ccc;
}
.news>.news-content>div>div:nth-child(1)>img{
	width:200px;
	height:130px;
	margin-top:15px;
}
.news>.news-content>div>div:nth-child(2){
	width:920px;
	height:130px;
	display:flex;
	justify-content: space-between;
	align-items: center;
}
.news>.news-content>div>div:nth-child(2)>div:nth-child(1){
	display:flex;
	justify-content: space-between;
	align-items: center;
	flex-direction: column;
	width:700px;
	height:100px;
	transition: all .3s ease-out 0s;
	margin-left:0;
}
.news>.news-content>div:hover>div:nth-child(2)>div:nth-child(1){
	   margin-left:10px;
}
.news>.news-content>div>div:nth-child(2)>div:nth-child(1)>p:nth-child(1){
	width:100%;
	font-size: 16px;
	color: #717171;
	display: block;
	height: 24px;
	overflow: hidden;
	margin-bottom: 20px;	
}
.news>.news-content>div>div:nth-child(2)>div:nth-child(1)>p:nth-child(2){
	width:100%;
	display: -webkit-box;
	text-overflow: ellipsis;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden; 
	line-height:24px;
	word-wrap:break-word; 
	color: #a2a2a2;
	line-height: 24px;
}
.news>.news-content>div>div:nth-child(2)>div:nth-child(2){
	display:flex;
	justify-content: space-between;
	align-items: flex-start;
	flex-direction: column;
	width:180px;
	height:100px;
}

.news>.news-content>div>div:nth-child(2)>div:nth-child(2)>p:nth-child(1){
	    font-family: HELVETICANEUELTPRO-THEX,"微软雅黑";
	    color: #999;
	    transition: all .3s ease-out 0s;
		height: 26px;
		font-size: 19px;
		width:130px;
}
.news>.news-content>div>div:nth-child(2)>div:nth-child(2)>p:nth-child(2){
    width: 80px;
    height: 35px;
    line-height: 35px;
    transition: all .3s;
    font-size: 12px;
    color: #ccc;
    border: solid #ccc 1px;
    border-radius: 24px;
    text-align: center;

}
.news>.news-content>div:hover>div:nth-child(2)>div:nth-child(2)>p:nth-child(2){
	background:#ccc;
	color:#fff;
	margin-left:30px;
}

@media (max-width: 1200px) {
	.news>.news-content>div {
		flex-wrap: wrap;
		height: auto;
		min-height: 140px;
		padding: 12px 0;
	}
	.news>.news-content>div>div:nth-child(1) {
		width: 100%;
		height: auto;
		justify-content: flex-start;
		padding-left: 16px;
	}
	.news>.news-content>div>div:nth-child(1)>img {
		width: 160px;
		height: auto;
		max-height: 120px;
		margin-top: 0;
	}
	.news>.news-content>div>div:nth-child(2) {
		width: 100%;
		height: auto;
		flex-wrap: wrap;
		padding: 12px 16px 0;
		box-sizing: border-box;
	}
	.news>.news-content>div>div:nth-child(2)>div:nth-child(1) {
		width: 100%;
		height: auto;
		margin-bottom: 12px;
	}
	.news>.news-content>div>div:nth-child(2)>div:nth-child(2) {
		width: 100%;
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		height: auto;
	}
}

/* 分页（与上方列表同宽居中） */
.news-feed-pane .news-feed-pager {
	margin: 28px auto 0;
	width: 75%;
	max-width: 1120px;
	display: flex;
	justify-content: center;
	align-items: center;
	box-sizing: border-box;
}