/* 新闻列表区块 */
.news-section {
    padding: 4rem 0;
    background: var(--primary-color-10);
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2.5rem;
}

/* 主新闻区 */
.news-main {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(27,45,107,0.08);
}

.news-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid #eee;
}

.news-item.featured {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.news-media {
    flex: 0 0 280px;
    border-radius: 6px;
    overflow: hidden;
	margin-right: 1.25rem;
}

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

.news-link:hover .news-media img {
    transform: scale(1.05);
}

.news-content {
    flex: 1;
}

.news-date {
    display: block;
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.news-title {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.news-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 分页样式 */
.news-pagination {
    margin-top: 2rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.page-item {
    display: inline-block;
    padding: 0.6rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
    transition: all 0.3s ease;
}

.page-item.active,
.page-item:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* 侧边栏 */
.news-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.sidebar-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid currentColor;
}

.hot-item {
    margin-bottom: 1rem;
    background: #fff;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.hot-item:hover {
    transform: translateX(5px);
}

.hot-link {
    display: flex;
    align-items: center;
    padding: 1rem;
    gap: 1rem;
}

.hot-order {
    width: 28px;
    height: 28px;
    background: var(--secondary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

.hot-title {
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 0.3rem;
}

.hot-date {
    font-size: 0.85rem;
    color: #999;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-main {
        padding: 1rem;
    }
    .news-link {
      display: flex;
      flex-direction: column; /* 移动端上下排列 */
      align-items: center;   /* 水平居中 */
      gap: 10px;             /* 控制间距 */
    }
    .news-item.featured {
        flex-direction: column;
        padding: 1rem;
    }
    
    .news-media {
        flex: none;
        height: 200px;
    	width: 100%;
    	max-width: 300px; 
    }
    
    .news-sidebar {
        position: static;
    }
    
    .hot-link {
        padding: 0.8rem;
    }
}

@media (max-width: 480px) {
    .news-section {
        padding: 2rem 0;
    }
    
    .news-title {
        font-size: 1.1rem;
    }
    
    .news-excerpt {
        display: none;
    }
    
    .page-item {
        padding: 0.5rem 0.8rem;
    }
}