/* ==========================================================================
   BOSSSO Article Module Styles
   News / Article - Baidu Search Result Style
   Based on Destoon 10.0 + B2B International Design
   ========================================================================== */

/* ---------------------------------------------------------------------------
   1. Article List Page (list.htm)
   --------------------------------------------------------------------------- */

.list-head {
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid #e8e8e8;
}

.list-head .title-bar {
	font-size: 20px;
	font-weight: 600;
	color: #1a1a2e;
	margin: 0;
}

.list-head .title-note {
	font-size: 13px;
	color: #888;
	margin-top: 4px;
}

/* ---------------------------------------------------------------------------
   2. Article Search Page (search.htm) - Baidu Style
   --------------------------------------------------------------------------- */

.nav-result-count {
	float: right;
	font-size: 12px;
	color: #999;
	line-height: 22px;
}

/* Search Filters Bar */
.bd-search-filters {
	background: #f8f9fa;
	border-radius: 8px;
	padding: 14px 18px;
	margin-bottom: 20px;
	border: 1px solid #eef0f2;
}

.bd-search-filters .sort {
	display: flex;
	align-items: center;
	min-height: 32px;
}

.bd-search-filters .sort-k {
	width: 80px;
	flex-shrink: 0;
	font-size: 13px;
	color: #666;
	font-weight: 500;
}

.bd-search-filters .sort-v {
	flex: 1;
}

.bd-search-filters .sort-v ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.bd-search-filters .sort-v li a {
	display: inline-block;
	padding: 3px 12px;
	font-size: 13px;
	color: #333;
	text-decoration: none;
	border-radius: 14px;
	transition: all 0.2s ease;
}

.bd-search-filters .sort-v li.on a,
.bd-search-filters .sort-v li a:hover {
	background: #1a73e8;
	color: #fff;
}

/* Advanced Search Form */
.sf-wrap {
	max-width: 560px;
	margin: 30px auto;
	padding: 28px 30px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.sf-wrap h3 {
	font-size: 20px;
	color: #1a1a2e;
	margin: 0 0 24px 0;
	text-align: center;
	position: relative;
	padding-bottom: 14px;
}

.sf-wrap h3::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 48px;
	height: 3px;
	background: linear-gradient(135deg, #1a73e8, #667eea);
	border-radius: 2px;
}

.sf-wrap .sf {
	display: flex;
	align-items: center;
	margin-bottom: 14px;
}

.sf-wrap .sf-k {
	width: 90px;
	flex-shrink: 0;
	font-size: 14px;
	color: #555;
	text-align: right;
	padding-right: 14px;
}

.sf-wrap .sf-v {
	flex: 1;
}

.sf-wrap .sf-v input.kw {
	width: 100%;
	height: 38px;
	padding: 8px 14px;
	border: 1px solid #d0d0d0;
	border-radius: 6px;
	font-size: 14px;
	box-sizing: border-box;
	transition: border-color 0.2s;
}

.sf-wrap .sf-v input.kw:focus {
	border-color: #1a73e8;
	outline: none;
	box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.sf-wrap .sf-submit {
	margin-top: 18px;
}

/* ---------------------------------------------------------------------------
   3. Baidu-Style Article Result Items (list-article.htm tag)
   --------------------------------------------------------------------------- */

.result-news {
	padding: 0 !important;
}

#bd-results {
	list-style: none;
	padding: 0;
	margin: 0;
}

.bd-article {
	padding: 18px 0;
	border-bottom: 1px solid #f0f0f0;
	position: relative;
}

.bd-article:last-child {
	border-bottom: none;
}

/* Thumbnail for articles */
.bd-article .bd-thumb {
	float: left;
	display: block;
	width: 120px;
	height: 90px;
	margin-right: 16px;
	flex-shrink: 0;
	overflow: hidden;
	border-radius: 6px;
	border: 1px solid #eee;
}

.bd-article .bd-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.bd-article .bd-thumb:hover img {
	transform: scale(1.05);
}

.bd-article .bd-body {
	overflow: hidden;
}

/* Title */
.bd-title {
	margin: 0 0 6px;
	font-size: 17px;
	font-weight: 400;
	line-height: 1.35;
	word-wrap: break-word;
}

.bd-title a {
	color: #1a0dab;
	text-decoration: none;
}

.bd-title a:hover {
	color: #e74c3c;
	text-decoration: underline;
}

/* Description */
.bd-desc {
	margin: 0 0 8px;
	font-size: 13px;
	line-height: 1.58;
	color: #555;
	max-height: 62px;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

/* Meta line */
.bd-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	font-size: 12px;
	color: #999;
}

.bd-meta svg {
	vertical-align: -2px;
}

.bd-url {
	color: #006621;
	font-size: 13px;
	white-space: nowrap;
}

.bd-arrow {
	margin: 0 3px;
}

.bd-date,
.bd-hits,
.bd-author,
.bd-source {
	display: inline-flex;
	align-items: center;
	gap: 3px;
}

/* Clearfix */
.bd-clear {
	clear: both;
	height: 0;
	font-size: 0;
	line-height: 0;
	visibility: hidden;
}

/* No Results Empty State */
.bd-empty {
	text-align: center;
	padding: 50px 20px;
	color: #888;
}

.bd-empty p {
	margin: 8px 0;
	font-size: 15px;
}

.bd-empty p.tips {
	font-size: 13px;
	color: #aaa;
	margin-top: 16px;
	text-align: left;
	display: inline-block;
}

.bd-empty ul {
	text-align: left;
	display: inline-block;
	margin: 8px auto;
	padding-left: 24px;
}

.bd-empty li {
	font-size: 13px;
	margin: 4px 0;
	color: #bbb;
}

.bd-empty-actions {
	margin-top: 24px;
}

/* ---------------------------------------------------------------------------
   4. Article Detail Page (show.htm)
   --------------------------------------------------------------------------- */

.article-main {
	padding-right: 20px;
}

.article-title {
	font-size: 26px;
	font-weight: 600;
	color: #1a1a2e;
	line-height: 1.4;
	margin: 0 0 14px;
	word-break: break-word;
}

.article-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: center;
	padding: 12px 0 16px;
	border-bottom: 1px solid #f0f0f0;
	margin-bottom: 20px;
	font-size: 13px;
	color: #888;
}

.article-meta span {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.article-meta svg {
	vertical-align: -2px;
}

.meta-time { color: #888; }
.meta-source { color: #666; }
.meta-author { color: #666; font-style: italic; }
.meta-hits { color: #aaa; }

.font-zoom span {
	display: inline-block;
	padding: 2px 7px;
	cursor: pointer;
	border: 1px solid #ddd;
	border-radius: 3px;
	font-size: 12px;
	margin-left: 4px;
	transition: all 0.2s;
}

.font-zoom span:hover {
	border-color: #1a73e8;
	color: #1a73e8;
}

/* Key Points / Introduce */
.article-introduce {
	background: linear-gradient(135deg, #f0f7ff 0%, #fff9f0 100%);
	border-left: 4px solid #1a73e8;
	padding: 14px 18px;
	border-radius: 0 8px 8px 0;
	margin-bottom: 20px;
	font-size: 14px;
	line-height: 1.65;
	color: #444;
}

.article-introduce strong {
	color: #1a73e8;
}

/* Content Body */
.article-content {
	font-size: 15px;
	line-height: 1.85;
	color: #333;
	word-wrap: break-word;
	margin-bottom: 30px;
}

.article-content p {
	margin: 12px 0;
}

.article-content h2,
.article-content h3,
.article-content h4 {
	margin: 24px 0 12px;
	color: #1a1a2e;
}

.article-content img {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
	margin: 10px 0;
}

.article-content a {
	color: #1a73e8;
	text-decoration: none;
}

.article-content a:hover {
	text-decoration: underline;
}

.article-content blockquote {
	border-left: 4px solid #1a73e8;
	padding: 12px 20px;
	margin: 16px 0;
	background: #f8f9fa;
	border-radius: 0 6px 6px 0;
	color: #666;
}

.article-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 14px 0;
}

.article-content table th,
.article-content table td {
	border: 1px solid #ddd;
	padding: 8px 12px;
	text-align: left;
	font-size: 14px;
}

.article-content table th {
	background: #f5f5f5;
	font-weight: 600;
}

.article-content pre {
	background: #1a1a2e;
	color: #f0f0f0;
	padding: 18px;
	border-radius: 8px;
	overflow-x: auto;
	font-size: 13px;
	line-height: 1.6;
	margin: 16px 0;
}

.article-content code {
	background: #f0f0f0;
	padding: 2px 6px;
	border-radius: 3px;
	font-family: 'Consolas', 'Monaco', monospace;
	font-size: 13px;
}

/* Vote Section */
.article-vote {
	border-top: 1px solid #f0f0f0;
	padding-top: 20px;
}

/* Article Navigation */
.article-nav {
	background: #fafbfc;
	border: 1px solid #eef0f2;
	border-radius: 8px;
	padding: 16px 20px;
	margin-bottom: 24px;
}

.article-nav strong {
	font-size: 15px;
	color: #1a1a2e;
	display: block;
	margin-bottom: 10px;
}

.article-nav ol {
	padding-left: 20px;
	margin: 0;
}

.article-nav li {
	font-size: 14px;
	margin: 5px 0;
	color: #666;
}

.article-nav li a {
	color: #1a73e8;
}

/* Tags */
.article-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 20px;
	padding: 14px 0;
	border-top: 1px solid #f0f0f0;
}

.article-tags strong {
	font-size: 14px;
	color: #555;
	margin-right: 4px;
}

.tag-item {
	display: inline-block;
	padding: 4px 12px;
	background: #f0f4ff;
	color: #1a73e8;
	border-radius: 14px;
	font-size: 12px;
	text-decoration: none;
	transition: all 0.2s;
}

.tag-item:hover {
	background: #1a73e8;
	color: #fff;
}

/* Related Articles Block */
.related-block {
	margin-top: 30px;
	padding-top: 20px;
	border-top: 2px solid #1a1a2e;
}

.related-list .bd-item {
	padding: 14px 0;
}

.related-list .bd-title {
	font-size: 15px;
}

/* ---------------------------------------------------------------------------
   5. Sidebar Styles
   --------------------------------------------------------------------------- */

.side-bar {
	min-width: 280px;
	max-width: 320px;
}

.side-box {
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 8px;
	margin-bottom: 16px;
	overflow: hidden;
}

.side-title {
	background: linear-gradient(135deg, #f8f9fb 0%, #f0f2f5 100%);
	padding: 11px 16px;
	font-size: 14px;
	font-weight: 600;
	color: #1a1a2e;
	border-bottom: 1px solid #e8e8e8;
}

/* Category Menu in Sidebar */
.side-cat {
	list-style: none;
	margin: 0;
	padding: 8px 0;
}

.side-cat li {
	padding: 0;
}

.side-cat li a {
	display: block;
	padding: 9px 16px;
	font-size: 14px;
	color: #444;
	text-decoration: none;
	border-left: 3px solid transparent;
	transition: all 0.2s;
}

.side-cat li em {
	float: right;
	font-size: 12px;
	color: #aaa;
	font-style: normal;
}

.side-cat li a:hover {
	background: #f8f9fc;
	color: #1a73e8;
	border-left-color: #1a73e8;
}

.side-cat li.on a {
	background: #eaf2ff;
	color: #1a73e8;
	font-weight: 600;
	border-left-color: #1a73e8;
}

/* Channel Switch */
.side-switch {
	list-style: none;
	padding: 8px 0;
	margin: 0;
}

.side-switch li {
	padding: 0;
}

.side-switch li a {
	display: block;
	padding: 8px 16px;
	font-size: 13px;
	color: #444;
	text-decoration: none;
	border-bottom: 1px solid #f5f5f5;
	transition: background 0.2s;
}

.side-switch li a:hover {
	background: #f8f9fc;
}

.side-switch li a .f_red {
	color: #e74c3c;
	font-weight: 500;
}

/* Ranking List */
.side-rank {
	list-style: none;
	padding: 8px 12px;
	margin: 0;
	counter-reset: rank;
}

.side-rank li {
	display: flex;
	align-items: center;
	padding: 6px 0;
	border-bottom: 1px dashed #f0f0f0;
	font-size: 13px;
}

.side-rank li:last-child {
	border-bottom: none;
}

.rank-num {
	counter-increment: rank;
	display: inline-block;
	width: 20px;
	height: 20px;
	line-height: 20px;
	text-align: center;
	border-radius: 4px;
	background: #e8e8e8;
	color: #888;
	font-size: 12px;
	font-weight: 700;
	flex-shrink: 0;
	margin-right: 10px;
}

.side-rank li.top-1 .rank-num { background: #e74c3c; color: #fff; }
.side-rank li.top-2 .rank-num { background: #ff8c42; color: #fff; }
.side-rank li.top-3 .rank-num { background: #ffc107; color: #fff; }

.side-rank li a {
	flex: 1;
	color: #444;
	font-size: 13px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.side-rank li a:hover {
	color: #1a73e8;
}

/* Latest Articles List */
.side-latest {
	list-style: none;
	padding: 8px 16px;
	margin: 0;
}

.side-latest li {
	padding: 7px 0;
	border-bottom: 1px dashed #f0f0f0;
	font-size: 13px;
	display: flex;
	justify-content: space-between;
	align-items: baseline;
}

.side-latest li:last-child {
	border-bottom: none;
}

.side-latest li a {
	color: #444;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 180px;
}

.side-latest li a:hover {
	color: #1a73e8;
}

.latest-time {
	color: #bbb;
	font-size: 12px;
	flex-shrink: 0;
	white-space: nowrap;
}

/* News Thumbnails Grid */
.news-thumb-grid {
	padding: 12px 14px;
}

.thumb-item {
	display: inline-block;
	width: 100%;
	margin-bottom: 14px;
}

.thumb-item:last-child {
	margin-bottom: 0;
}

.thumb-img {
	display: block;
	width: 100%;
	height: 150px;
	overflow: hidden;
	border-radius: 6px;
	margin-bottom: 8px;
}

.thumb-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s;
}

.thumb-img:hover img {
	transform: scale(1.06);
}

.thumb-item h4 {
	margin: 0 0 4px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
}

.thumb-item h4 a {
	color: #333;
	text-decoration: none;
}

.thumb-item h4 a:hover {
	color: #1a73e8;
}

.thumb-date {
	font-size: 12px;
	color: #aaa;
}

/* ---------------------------------------------------------------------------
   6. Responsive Design
   --------------------------------------------------------------------------- */

@media screen and (max-width: 992px) {

	.m2r.side-bar,
	.m3r.side-bar {
		display: none;
	}

	.m2l,
	.m3l {
		width: 100% !important;
		padding-right: 0 !important;
	}

	.article-main {
		padding-right: 0;
	}

	.article-title {
		font-size: 22px;
	}

	.bd-article .bd-thumb {
		float: none;
		width: 100%;
		height: auto;
		margin: 0 0 10px 0;
	}

	.bd-article .bd-thumb img {
		width: 100%;
		height: 200px;
	}
}

@media screen and (max-width: 768px) {

	.list-head .title-bar {
		font-size: 17px;
	}

	.article-title {
		font-size: 20px;
	}

	.article-meta {
		gap: 10px;
		font-size: 12px;
	}

	.article-content {
		font-size: 14px;
	}

	.bd-title {
		font-size: 15px;
	}

	.bd-desc {
		font-size: 12px;
		-webkit-line-clamp: 1;
		max-height: 40px;
	}

	.nav-result-count {
		float: none;
		display: block;
		margin-top: 4px;
		font-size: 11px;
	}

	.sf-wrap {
		padding: 20px;
		margin: 20px auto;
	}

	.sf-wrap .sf {
		flex-direction: column;
		align-items: stretch;
	}

	.sf-wrap .sf-k {
		width: auto;
		text-align: left;
		padding-right: 0;
		margin-bottom: 4px;
		font-weight: 600;
	}

	.bd-search-filters {
		padding: 10px 12px;
	}

	.bd-search-filters .sort {
		flex-direction: column;
		align-items: stretch;
	}

	.bd-search-filters .sort-k {
		width: auto;
		margin-bottom: 4px;
	}

	.bd-meta {
		gap: 8px;
		flex-wrap: wrap;
	}

	.font-zoom {
		display: none;
	}

	.tags {
		flex-direction: column;
		gap: 6px;
	}
}

/* ---------------------------------------------------------------------------
   7. Print & Misc
   --------------------------------------------------------------------------- */

@media print {

	.side-bar,
	.article-nav,
	.article-tags,
	.tool-btn,
	.comment-area,
	.pages {
		display: none !important;
	}

	.article-main {
		width: 100% !important;
	}

	.article-title {
		font-size: 22pt;
	}

	.article-content {
		font-size: 12pt;
		line-height: 1.6;
	}
}
