/* edit @weizhuojiang 2026-11-24 */


/* 主色调：#0960EB */
/* 链接色：#AFFF60 */


.news-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    margin-top: 40px;
}

.news-category-tab{
	border-radius: 10rem;
	background: #EFEFEF;
}
.news-category-tab:hover{
	border-radius: 10rem;
	background-color: #0960EB;
	color: #AFFF60;
}

.news-category-tab.is-active{
	background-color: #0960EB;
	color: #AFFF60;
}


/*  */



.news-layout{
	gap: calc(2rem + 2vw);
}

.news-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.news-item {
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    transition: all 0.3s ease;
	border-bottom: 1px solid #eee;
}

.news-item:hover {
    box-shadow: none;
    transform: none;
}

.news-item-link {
    display: flex;
    padding:  0 0 40px 0;
	margin:20px 0 0 0;
    text-decoration: none;
    color: inherit;
}

.news-item-thumb {
    flex-shrink: 0;
    width: 180px;
    height: 120px;
    margin-right: 20px;
    border-radius: 6px;
    overflow: hidden;
}

.news-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-item:hover .news-item-thumb img {
    transform: scale(1.05);
}

.news-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-item-content h3 {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.4;
    font-weight: 600;
    color: #1a1a1a;
    transition: color 0.3s ease;
}

.news-item:hover .news-item-content h3 {
    color: #0960EB;
}

.news-item-content p {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
}

.news-tags {
    color: #00bcd4;
    font-weight: 500;
}

.news-source {
    color: #999;
}

.news-sidebar {
    position: sticky;
    top: calc(var(--site-header-height, 0px) + 20px);
    align-self: start;
	display: flex;
	flex-direction: column;
	gap: 20px;
}




/*  热点资讯 */



.hot-news-box {
	background: #fff;
	border-radius: 1rem;
	padding:0;
	box-shadow: 0 0 5px #00000020;
}


.hot-news-title {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 600;
    color: #0960EB;
	padding: 12px 5% 10px 5%;
    display: flex;
    align-items: center;
	border-bottom: 2px solid #0960EB;
    gap: 8px;
	width: 100%;
	display: inline-flex;
	align-items: center;
}

.hot-news-title i {
	width: 18px;
	height: 18px;
	background: url(../../static2/img/news-icon0.svg) no-repeat center;
	background-size: contain;
}



.hot-news-list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: hot-news-counter;
}

.hot-news-item {
    display: flex;
    align-items: flex-start;
    padding: 7px 5%;
	box-sizing: border-box;
	width: 100%;
	border-bottom: 0;
	border-radius: 10rem;
    transition: background 0.2s ease;
}
.hot-news-item::after{
	content:'';
	display: block;
	height: 1px;
	background: #eee;
}


.hot-news-item:last-child {
    border-bottom: none;
}

.hot-news-item:hover {
    background: #0960EB;
    margin: 0 0;
    padding-left:  5%;
    padding-right:  5%;
	color: #AFFF60;
}

.hot-news-item:hover *{

	color: #AFFF60 !important;
}

.rank-num {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #777;
    background: none;
    border-radius: 4px;
}

.hot-news-item:nth-child(1) .rank-num,
.hot-news-item:nth-child(2) .rank-num,
.hot-news-item:nth-child(3) .rank-num {
    background: none;
    color: #0960EB;
}

.hot-news-link {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hot-news-link:hover {
    color: #AFFF60;
}


/* 最近阅读 */
 

.history-news-box {
	background: #fff;
	border-radius: 1rem;
	padding:0;
	box-shadow: 0 0 5px #00000020;
}


.history-news-title {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 600;
    color: #0960EB;
	padding: 12px 5% 10px 5%;
    display: flex;
    align-items: center;
	border-bottom: 2px solid #0960EB;
    gap: 8px;
	width: 100%;
	display: inline-flex;
	align-items: center;
}

.history-news-title i {
	width: 18px;
	height: 18px;
	background: url(../../static2/img/news-icon1.svg) no-repeat center;
	background-size: contain;
}



.history-news-list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: history-news-counter;
}

.history-news-item {
    display: flex;
    align-items: flex-start;
    padding: 7px 5%;
	box-sizing: border-box;
	width: 100%;
	border-bottom: 0;
	border-radius: 10rem;
    transition: background 0.2s ease;
}
.history-news-item::after{
	content:'';
	display: block;
	height: 1px;
	background: #eee;
}


.history-news-item:last-child {
    border-bottom: none;
}

.history-news-item:hover {
    background: #0960EB;
    margin: 0 0;
    padding-left:  5%;
    padding-right:  5%;
	color: #AFFF60;
}

.history-news-item:hover *{

	color: #AFFF60 !important;
}

.rank-num {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #777;
    background: none;
    border-radius: 4px;
}

.history-news-item:nth-child(1) .rank-num,
.history-news-item:nth-child(2) .rank-num,
.history-news-item:nth-child(3) .rank-num {
    background: none;
    color: #0960EB;
}

.history-news-link {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.history-news-link:hover {
    color: #AFFF60;
}

