/* ===== 苹乐粮科资讯站 自定义样式 ===== */

/* 顶部文字 Logo */
.brand-text {
	font-size: 1.5rem;
	font-weight: 700;
	color: #c12c1f;
	letter-spacing: 1px;
}
.brand-text:hover {
	color: #a01f14;
}
.brand-tag {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 6px;
	font-size: 0.75rem;
	font-weight: 400;
	vertical-align: middle;
	color: #fff;
	background: #c12c1f;
	border-radius: 3px;
}

/* 首页头部区 */
.news-hero {
	padding: 3rem 0 2.5rem;
	text-align: center;
	background: linear-gradient(135deg, #f8f9fa 0%, #eef2f5 100%);
	border-bottom: 1px solid #e3e6ea;
}
.news-hero-title {
	font-size: 1.9rem;
	font-weight: 700;
	color: #22303c;
	margin-bottom: 0.5rem;
}
.news-hero-sub {
	color: #6c757d;
	font-size: 1rem;
	margin-bottom: 1.5rem;
}
.news-hero-meta {
	margin-top: 1rem;
	font-size: 0.9rem;
	color: #6c757d;
}
.news-hero-meta a {
	color: #6c757d;
}
.news-hero-meta a:hover {
	color: #c12c1f;
}

/* 搜索框 */
.news-search {
	max-width: 520px;
	margin: 0 auto;
	display: flex;
}
.news-search input {
	flex: 1;
	height: 42px;
	padding: 0 14px;
	border: 1px solid #d5d9dd;
	border-right: none;
	border-radius: 3px 0 0 3px;
	outline: none;
	font-size: 0.95rem;
}
.news-search input:focus {
	border-color: #c12c1f;
}
.news-search button {
	height: 42px;
	padding: 0 22px;
	border: none;
	background: #c12c1f;
	color: #fff;
	border-radius: 0 3px 3px 0;
	cursor: pointer;
	font-size: 0.95rem;
}
.news-search button:hover {
	background: #a01f14;
}

/* 头条大卡 */
.lead-card {
	display: block;
	height: 100%;
	padding: 1.5rem;
	background: #fafbfc;
	border: 1px solid #e9ecef;
	border-radius: 4px;
	transition: box-shadow .2s, border-color .2s;
}
.lead-card:hover {
	border-color: #c12c1f;
	box-shadow: 0 4px 14px rgba(193, 44, 31, .08);
}
.lead-badge {
	display: inline-block;
	padding: 2px 8px;
	font-size: .75rem;
	color: #fff;
	background: #c12c1f;
	border-radius: 3px;
	margin-bottom: .75rem;
}
.lead-title {
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.5;
	margin-bottom: .75rem;
	color: #22303c;
}
.lead-card:hover .lead-title {
	color: #c12c1f;
}
.lead-desc {
	color: #6c757d;
	line-height: 1.9;
	margin-bottom: .75rem;
}
.lead-meta {
	font-size: .85rem;
	color: #adb5bd;
}

/* 头条右侧小列表 */
.sub-list li {
	border-bottom: 1px dashed #e9ecef;
}
.sub-list li:last-child {
	border-bottom: none;
}
.sub-list a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: .7rem 0;
	color: #343a40;
}
.sub-list a:hover {
	color: #c12c1f;
}
.sub-title {
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	padding-right: 12px;
}
.sub-meta {
	font-size: .85rem;
	color: #adb5bd;
}

/* 分类卡片 */
.cat-card {
	background: #fff;
	border: 1px solid #e9ecef;
	border-radius: 4px;
	padding: 1.25rem 1.4rem;
}
.cat-head {
	border-bottom: 2px solid #f1f3f5;
	padding-bottom: .6rem;
	margin-bottom: .4rem;
}
.cat-head h3 {
	font-size: 1.15rem;
	font-weight: 700;
	margin: 0;
}
.cat-head h3 a {
	color: #22303c;
}
.cat-head h3 a:hover {
	color: #c12c1f;
}
.cat-sub {
	font-size: .82rem;
	color: #adb5bd;
}
.cat-list li a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: .55rem 0;
	border-bottom: 1px dashed #f1f3f5;
	color: #495057;
	font-size: .95rem;
}
.cat-list li:last-child a {
	border-bottom: none;
}
.cat-list li a:hover {
	color: #c12c1f;
}
.cat-item-title {
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	padding-right: 12px;
}
.cat-item-date {
	font-size: .8rem;
	color: #adb5bd;
}
.cat-more {
	margin-top: .6rem;
	text-align: right;
}
.cat-more a {
	font-size: .85rem;
	color: #868e96;
}
.cat-more a:hover {
	color: #c12c1f;
}

/* 列表页 */
.news-list li {
	border-bottom: 1px dashed #e9ecef;
	padding: 1.1rem 0;
}
.news-list li:last-child {
	border-bottom: none;
}
.news-list-title {
	font-size: 1.1rem;
	font-weight: 600;
	margin-bottom: .4rem;
	line-height: 1.6;
}
.news-list a:hover .news-list-title {
	color: #c12c1f;
}
.news-list-desc {
	color: #6c757d;
	line-height: 1.8;
	font-size: .92rem;
	margin-bottom: .4rem;
}
.news-list-meta {
	font-size: .82rem;
	color: #adb5bd;
}
.news-list-meta span {
	margin-right: 14px;
}

/* 内容页 */
.article-title {
	font-size: 1.6rem;
	font-weight: 700;
	text-align: center;
	margin: 1.5rem 0 .8rem;
	line-height: 1.5;
	color: #22303c;
}
.article-meta {
	text-align: center;
	font-size: .85rem;
	color: #adb5bd;
	padding-bottom: .8rem;
	border-bottom: 1px solid #eef0f2;
	margin-bottom: 1.5rem;
}
.article-meta span {
	margin: 0 8px;
}
.article-tags {
	font-size: .9rem;
	color: #6c757d;
}
.article-tags a {
	display: inline-block;
	margin: 0 6px 6px 0;
	padding: 2px 10px;
	background: #f1f3f5;
	border-radius: 12px;
	color: #495057;
}
.article-tags a:hover {
	background: #c12c1f;
	color: #fff;
}
.article-nav {
	font-size: .92rem;
}
.related-title {
	font-size: 1.05rem;
	font-weight: 700;
	padding-left: 10px;
	border-left: 3px solid #c12c1f;
	margin-bottom: .8rem;
}
.related-list li {
	border-bottom: 1px dashed #f1f3f5;
}
.related-list li:last-child {
	border-bottom: none;
}
.related-list li a {
	display: flex;
	justify-content: space-between;
	padding: .55rem 0;
	color: #495057;
	font-size: .95rem;
}
.related-list li a:hover {
	color: #c12c1f;
}
.related-list li span {
	font-size: .8rem;
	color: #adb5bd;
}

/* 底部联系引导条 */
.contact-bar {
	padding: 2.5rem 0;
	background: #22303c;
	color: #dee2e6;
}
.contact-bar-text {
	font-size: 1rem;
	margin-bottom: .4rem;
}
.contact-bar-tel {
	font-size: 1.5rem;
	font-weight: 700;
	color: #fff;
	letter-spacing: 1px;
	margin-bottom: .5rem;
}
.contact-bar-link a {
	color: #adb5bd;
	margin: 0 6px;
}
.contact-bar-link a:hover {
	color: #fff;
}

/* 侧边悬浮电话 */
.side-tel {
	font-size: 1.2rem;
	font-weight: 700;
	color: #c12c1f;
	text-align: center;
}
.side-tel-sub {
	font-size: .85rem;
	color: #6c757d;
	text-align: center;
}

/* 栏目切换标签栏 */
.news-tabs {
    display: flex;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 1.5rem;
    gap: 0;
}
.news-tab {
    padding: 10px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: #6c757d;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: color .2s, border-color .2s;
}
.news-tab:hover {
    color: #c12c1f;
}
.news-tab.active {
    color: #c12c1f;
    border-bottom-color: #c12c1f;
}

/* 新闻列表（首页资讯模式） */
#newsList {
    list-style: none;
    padding: 0;
    margin: 0;
}
#newsList li {
    padding: 1.25rem 0;
    border-bottom: 1px solid #f1f3f5;
}
#newsList li:first-child {
    padding-top: .5rem;
}
#newsList li:last-child {
    border-bottom: none;
}
#newsList li a {
    display: block;
    text-decoration: none;
    color: inherit;
}
#newsList li a:hover .news-list-title {
    color: #c12c1f;
}

/* 空状态 */
.news-empty {
	text-align: center;
	padding: 3rem 0;
	color: #adb5bd;
	font-size: .95rem;
}

/* 搜索结果页 */
.search-title {
	font-size: 1.3rem;
	font-weight: 700;
	color: #22303c;
	margin: 1.5rem 0 1.2rem;
	padding-left: 10px;
	border-left: 3px solid #c12c1f;
}
.search-title em {
	font-style: normal;
	color: #c12c1f;
}

/* 栏目列表页标题 */
.category-title {
	font-size: 1.35rem;
	font-weight: 700;
	color: #22303c;
	margin-bottom: 1.2rem;
	padding-bottom: 0.8rem;
	border-bottom: 2px solid #e9ecef;
	position: relative;
}
.category-title::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 60px;
	height: 2px;
	background: #c12c1f;
}

/* ===== 文章详情页 ===== */
.article-detail-header {
	margin-bottom: 2rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid #eef0f2;
}
/* 详情页内栏目分类导航（横杠上方） */
.article-detail-header .sonsort {
	margin-top: 0;
	margin-bottom: 1.2rem;
	padding-bottom: 1rem;
	border-bottom: 2px solid #eef0f2;
}
.article-detail-title {
	font-size: 1.8rem;
	font-weight: 700;
	line-height: 1.5;
	color: #22303c;
	margin-bottom: 0.8rem;
}
.article-detail-meta {
	font-size: .88rem;
	color: #868e96;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 20px;
}
.article-detail-meta span {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.article-detail-meta i {
	color: #adb5bd;
}

/* 正文区 */
.article-detail-content {
	font-size: 1.05rem;
	line-height: 2;
	color: #333;
	margin-bottom: 2rem;
	word-wrap: break-word;
	overflow-wrap: break-word;
}
.article-detail-content p {
	margin-bottom: 1.2rem;
	text-indent: 2em;
}
.article-detail-content h2,
.article-detail-content h3,
.article-detail-content h4 {
	color: #22303c;
	margin-top: 1.5rem;
	margin-bottom: 0.8rem;
	font-weight: 700;
}
.article-detail-content img {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
	margin: 1rem auto;
	display: block;
}
.article-detail-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1rem 0;
}
.article-detail-content th,
.article-detail-content td {
	border: 1px solid #e9ecef;
	padding: 8px 12px;
	text-align: left;
	font-size: .95rem;
}
.article-detail-content th {
	background: #f8f9fa;
	font-weight: 600;
}

/* 详情页标签 */
.article-detail-tags {
	font-size: .9rem;
	color: #6c757d;
	margin-bottom: 1.8rem;
	padding: 1rem;
	background: #fafbfc;
	border-radius: 4px;
}
.article-detail-tags i {
	color: #adb5bd;
	margin-right: 4px;
}
.article-detail-tags a {
	display: inline-block;
	margin: 0 6px 6px 0;
	padding: 3px 12px;
	background: #fff;
	border: 1px solid #e9ecef;
	border-radius: 14px;
	color: #495057;
	font-size: .85rem;
	transition: all .2s;
}
.article-detail-tags a:hover {
	background: #c12c1f;
	color: #fff;
	border-color: #c12c1f;
}

/* 详情页上下篇导航 */
.article-detail-nav {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	padding: 1.2rem 1.5rem;
	background: #fafbfc;
	border-radius: 4px;
	margin-bottom: 2rem;
	font-size: .95rem;
}
.nav-prev,
.nav-next {
	display: flex;
	align-items: baseline;
	gap: 8px;
}
.nav-label {
	color: #868e96;
	white-space: nowrap;
	flex-shrink: 0;
}
.nav-prev a,
.nav-next a {
	color: #343a40;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.nav-prev a:hover,
.nav-next a:hover {
	color: #c12c1f;
}

/* 相关阅读（详情页）——2列网格 */
.article-related {
	margin-top: 2rem;
}
.related-heading {
	font-size: 1.15rem;
	font-weight: 700;
	color: #22303c;
	margin-bottom: 1rem;
	padding-left: 12px;
	border-left: 3px solid #c12c1f;
}
.related-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0;
}
.related-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.7rem 1rem;
	color: #495057;
	text-decoration: none;
	font-size: .95rem;
	border-bottom: 1px dashed #f1f3f5;
	transition: background-color .15s, color .15s;
}
.related-item:hover {
	color: #c12c1f;
	background-color: #fafbfc;
}
.related-item-title {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	flex: 1;
	min-width: 0;
	margin-right: 12px;
}
.related-item-date {
	font-size: .82rem;
	color: #adb5bd;
	flex-shrink: 0;
}

/* 移动端：相关阅读保持2列 */
@media (max-width: 767px) {
	.news-hero {
		padding: 2rem 0 1.5rem;
	}
	.news-hero-title {
		font-size: 1.4rem;
	}
	.news-tabs {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		flex-wrap: nowrap;
	}
	.news-tab {
		padding: 8px 16px;
		font-size: .9rem;
		white-space: nowrap;
	}
	.lead-title {
		font-size: 1.15rem;
	}
	.article-title {
		font-size: 1.3rem;
	}
	.contact-bar-tel {
		font-size: 1.25rem;
	}
	/* 详情页移动端 */
	.article-detail-title {
		font-size: 1.4rem;
	}
	.article-detail-content {
		font-size: 1rem;
	}
	.article-detail-meta {
		font-size: .82rem;
		gap: 4px 12px;
		flex-direction: column;
	}
	.article-detail-nav {
		padding: 1rem;
	}
}
