/* ========== 侧边栏公共样式 ========== */
.sidebar {
	width: 290px;
	flex-shrink: 0;
}

.sidebar-inner {
	margin-top: 20px;
}

/* ========== 布局公共样式 ========== */
.content-area {
	display: flex;
	gap: 20px;
}

.main {
	flex: 1;
	min-width: 0;
	text-align: left;
}

.widget {
	margin-bottom: 20px;
}

.widget-title {
	position: relative;
	display: inline-block;
	height: 20px;
	line-height: 20px;
	padding: 0 10px 0 15px;
	border-left: 4px solid #b50404;
	color: #333;
	font-size: 20px;
	font-weight: bold;
	margin-bottom: 10px;
}

/* 链接列表 */
.link-list {
	list-style: none;
	padding: 0;
}

.link-list li {
	position: relative;
	line-height: 36px;
	padding-left: 21px;
	font-size: 16px;
}

.link-list li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #999;
}

.link-list li a {
	color: #333;
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.link-list li a:hover {
	color: #b50404;
}

/* 阅读排行 - 图文卡片 */
.mod-content .view {
	width: 100%;
	margin: 11px 0 0;
	overflow: hidden;
}

.mod-content .view:first-child {
	margin-top: 0;
}

.mod-content .view h4 {
	margin: 7px 0 16px;
	font-weight: bold;
	font-size: 14px;
	line-height: 24px;
	color: #555;
}

.mod-content .view h4 a {
	display: block;
	height: 83px;
	overflow: hidden;
	color: #666;
}

.mod-content .view>a {
	float: left;
	overflow: hidden;
	display: block;
	width: 110px;
	height: 90px;
	margin: 0 15px 0 0;
}

.mod-content .view>a img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ========== 详情页公共布局 ========== */
#markdown {
	line-height: 1.8;
	color: #24292e;
	font-size: 16px;
	word-wrap: break-word;
	margin-top: 15px;
}

#markdown h1 {
	font-size: 2em;
	font-weight: 700;
	margin: 24px 0 16px;
	border-bottom: 1px solid #eaecef;
	padding-bottom: .3em;
}

#markdown h2 {
	font-size: 1.5em;
	font-weight: 600;
	margin: 24px 0 16px;
	border-bottom: 1px solid #eaecef;
	padding-bottom: .3em;
}

#markdown h3 {
	font-size: 1.25em;
	font-weight: 600;
	margin: 24px 0 16px;
}

#markdown h4 {
	font-size: 1em;
	font-weight: 600;
	margin: 24px 0 16px;
}

#markdown p {
	text-indent: 2em;
	margin: 10px 0 16px;
}

#markdown img {
	max-width: 100%;
	width: 100%;
	height: auto;
	margin: 5px auto;
	display: block;
	border-radius: 4px;
}

#markdown a {
	color: #0366d6;
	text-decoration: none;
}

#markdown a:hover {
	text-decoration: underline;
}

#markdown ul,
#markdown ol {
	padding-left: 2em;
	margin: 1em 0;
}

#markdown li {
	margin: 4px 0;
}

#markdown blockquote {
	margin: 1em 0;
	padding: 0 1em;
	color: #6a737d;
	border-left: .25em solid #dfe2e5;
}

#markdown table {
	border-collapse: collapse;
	width: 100%;
	margin: 1em 0;
}

#markdown table th,
#markdown table td {
	border: 1px solid #dfe2e5;
	padding: 6px 13px;
}

#markdown table th {
	font-weight: 600;
	background: #f6f8fa;
}

#markdown code {
	background: #f6f8fa;
	padding: 2px 6px;
	border-radius: 3px;
	font-size: 90%;
}

#markdown pre {
	background: #f6f8fa;
	padding: 16px;
	border-radius: 6px;
	overflow-x: auto;
}

#markdown hr {
	border: none;
	border-top: 1px solid #eaecef;
	margin: 24px 0;
}

.pagination {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 15px;
	flex-wrap: wrap;
	justify-content: center;
}

.pagination a {
	display: inline-block;
	padding: 6px 12px;
	color: #333;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.2s;
	text-decoration: none;
}

.pagination a:hover {
	background: #f0f0f0;
	border-color: #ccc;
}

.pagination a.current {
	background: #007bff;
	color: #fff;
	border-color: #007bff;
	font-weight: bold;
	cursor: default;
}

.pagination a.current:hover {
	background: #007bff;
}

.pagination .ellipsis {
	padding: 6px 4px;
	color: #999;
}

.pagination .prev,
.pagination .next {
	min-width: 60px;
	text-align: center;
}

/* ========== 文章列表公共样式 ========== */
.article-list {
	padding: 0;
	margin: 0;
	list-style: none;
}

.article-item {
	display: flex;
	gap: 15px;
	padding: 25px 10px;
	border-bottom: 1px dotted #d3d3d3;
}

.thumb {
	width: 200px;
	height: 130px;
	flex-shrink: 0;
	overflow: hidden;
}

.thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.article-info {
	flex: 1;
	min-width: 0;
	text-align: left;
}

.article-item .title {
	font-size: 20px;
	font-weight: bold;
	line-height: 26px;
	height: 26px;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
}

.article-item .title a {
	color: #333;
}

.article-item .summary {
	line-height: 22px;
	max-height: 88px;
	margin: 10px 0 0;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	line-clamp: 4;
	overflow: hidden;
	color: #666;
	font-size: 13px;
}

.article-item .date {
	line-height: 24px;
	margin: 15px 0 0;
	font-size: 13px;
	color: #bbb;
	text-align: right;
}

/* 空状态 */
.article-list .empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 100px 20px;
	color: #bbb;
}

.article-list .empty .empty-icon {
	font-size: 56px;
	margin-bottom: 20px;
	opacity: 0.5;
}

.article-list .empty .empty-text {
	font-size: 16px;
	margin: 0;
}

/* ========== 浮动呼叫按钮 ========== */
.float-btn {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	padding: 20px;
	background: #f9f9f9;
	border-top: 1px solid #e5e5e5;
	z-index: 999;
	display: flex;
	justify-content: center;
}

.float-btn a {
	display: flex;
	justify-content: center;
	width: 90%;
	background: #5276cf;
	color: #fff;
	border-radius: 50px;
	padding: 15px 0;
	font-size: 24px;
}

/* ========== 公共响应式 ========== */
@media (max-width: 1000px) {
	.content-area {
		flex-direction: column;
	}

	.sidebar {
		width: 100%;
	}
}

@media (min-width: 1001px) {
	.float-btn {
		display: none;
	}
}

/* ========== 文章正文头部 ========== */
.detail-header {
	padding: 0 0 15px 0;
	border-bottom: 1px solid #ddd;
}

.detail-title {
	line-height: 38px;
	margin: 20px 0 10px;
	font-size: 28px;
	font-weight: bold;
}

.detail-meta {
	font-size: 14px;
	color: #999;
	line-height: 36px;
}

.detail-meta .source {
	margin-left: 15px;
}

.detail-disclaimer {
	font-size: 13px;
	color: #999;
	margin-top: 20px;
	padding-top: 15px;
	border-top: 1px solid #eee;
}

/* ========== 详情页右侧栏 ========== */
.detail-sidebar {
	width: 300px;
	float: right;
	margin-left: 20px;
}

.detail-card {
	background: #f8f9fa;
	border-radius: 6px;
	padding: 15px;
	margin-bottom: 15px;
}

.detail-card-title {
	font-size: 16px;
	font-weight: bold;
	margin: 0 0 12px 0;
	padding-bottom: 8px;
	border-bottom: 2px solid #007bff;
}

.info-list {
	list-style: none;
	padding: 0;
	margin: 0;
	font-size: 14px;
	line-height: 28px;
	color: #555;
}

.info-list .label {
	color: #999;
}

.text-list {
	list-style: none;
	padding: 0;
	margin: 0;
	font-size: 14px;
	line-height: 32px;
}

.text-list li {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.text-list a {
	color: #333;
	text-decoration: none;
}