@charset"UTF-8";

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif;
}

body {
	line-height: 1.6;
	color: #333;
	background-color: #f8f9fa;
}

a {
	text-decoration: none;
	color: #2c3e50;
	transition: color 0.3s ease;
}

/* 主题色调整：红色#e74c3c → 蓝色#3498db */
a:hover {
	color: #3498db;
}

.container {
	width: 90%;
	max-width: 1200px;
	margin: 0 auto;
}

/* 导航栏样式 */
.site-header {
	background-color: #fff;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
	position: sticky;
	top: 0;
	z-index: 1000;
}

.navbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 0;
}

/* Logo颜色调整为主题蓝 */
.logo {
	font-size: 1.8rem;
	font-weight: 700;
	color: #3498db;
	display: flex;          
	align-items: center;    
	gap: 10px;              
}

.logo img {
	width: 48px;            
	height: auto;           
	display: block;         
	border-radius: 4px;     
}

.nav-links {
	display: flex;
	list-style: none;
	gap: 2rem;
}

.nav-links a {
	font-weight: 500;
	text-transform: uppercase;
	font-size: 1.1rem;
}

.nav-links li.current-menu-item > a,
.nav-links li.current_page_item > a,
.nav-links li.current-menu-ancestor > a {
	font-weight: 600;
  	border-bottom: 2px solid #007bff !important;
  	padding-bottom: 5px;
}

.mobile-menu-btn {
	display: none;
	font-size: 1.5rem;
	cursor: pointer;
}

/* 面包屑导航 */
.breadcrumb {
	padding: 1.5rem 0;
	font-size: 0.9rem;
	color: #888;
}

.breadcrumb a {
	color: #888;
}

/* 面包屑hover颜色调整为主题蓝 */
.breadcrumb a:hover {
	color: #3498db;
}

.breadcrumb span {
	margin: 0 0.5rem;
	color: #ddd;
}

/* 文章详情区 */
.main-content {
	display: flex;
	gap: 2rem;
	margin: 0 0 3rem;
}

/* 左侧文章详情 */
.post-detail {
	flex: 3;
	background-color: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
	padding: 2rem;
}

.post-header {
	margin-bottom: 0rem;
	border-bottom: 1px solid #eee;
	padding-bottom: 0.2rem;
}

.post-detail-title {
	font-size: 2rem;
	line-height: 1.3;
	margin-bottom: 1.5rem;
	color: #2c3e50;
}

.post-detail-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	font-size: 0.95rem;
	color: #888;
	margin-bottom: 1rem;
}

.post-meta-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

/* 文章正文内容 */
.post-content {
	font-size: 1.05rem;
	line-height: 1.8;
	color: #444;
	padding-top: 1rem;
}

.post-content h2 {
	font-size: 1.6rem;
	margin: 2rem 0 1rem;
	color: #2c3e50;
}

.post-content h3 {
	font-size: 1.3rem;
	margin: 1.8rem 0 0.8rem;
	color: #2c3e50;
}

.post-content p {
	margin-bottom: 1rem;
}

.post-content a.btn,.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #e62222;    
    color: #fff;                  
    border: 2px solid #e62222;    
    border-radius: 6px;           
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    text-decoration: none !important;
    transition: all 0.3s ease;
    cursor: pointer;
}
.post-content a.btn:hover,
.btn:hover {
    background-color: #d35400;    
    border-color: #d35400;
    color: #fff;
    text-decoration: none;
}
.post-content a.btn-outline,
.btn-outline {
    background-color: transparent;
    color: #e62222;
    border: 2px solid #e62222;
}
.post-content a.btn-outline:hover {
    background-color: #e62222;
    color: #fff;
}

.post-content strong {
    font-size: 18px;     
    font-weight: bold;   
}

.post-content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	margin: 1.5rem 0;
}

.post-content ul, .post-content ol {
	margin: 1rem 0 1.5rem 2rem;
}

.post-content li {
	margin-bottom: 0.5rem;
}

/* 引用边框颜色调整为主题蓝 */
.post-content blockquote {
	border-left: 4px solid #3498db;
	padding: 1rem 1.5rem;
	background-color: #f9f9f9;
	margin: 1.5rem 0;
	font-style: normal;
}

/* 文章分享区 */
.post-share {
	margin: 3rem 0;
	padding: 1.5rem;
	background-color: #f9f9f9;
	border-radius: 8px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
}

.share-text {
	font-weight: 600;
	color: #2c3e50;
}

.share-links {
	display: flex;
	gap: 1rem;
}

.share-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: #f1f1f1;
	color: #2c3e50;
	font-size: 1.2rem;
}

/* 分享按钮hover颜色调整为主题蓝 */
.share-links a:hover {
	background-color: #3498db;
	color: #fff;
}

/* 相关文章 - 一行两列纯文字布局 */
.related-posts {
	margin-top: 3rem;
}

/* 相关文章标题下划线颜色调整为主题蓝 */
.related-title {
	font-size: 1.5rem;
	margin-bottom: 1.5rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid #3498db;
}

/* 一行两列布局 */
.related-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
	list-style: none;
}

.related-item {
	padding: 1rem;
	border: 1px solid #eee;
	border-radius: 8px;
	transition: all 0.3s ease;
}

/* 相关文章hover边框颜色调整为主题蓝 */
.related-item:hover {
	background-color: #f9f9f9;
	border-color: #3498db;
	transform: translateY(-3px);
}

.related-item-title {
	font-size: 1.1rem;
	margin-bottom: 0.5rem;
	font-weight: 500;
}

.related-item-meta {
	display: flex;
	gap: 1.5rem;
	font-size: 0.85rem;
	color: #888;
}

/* 右侧边栏 */
.sidebar {
	flex: 1;
}

.sidebar-widget {
	background-color: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
	padding: 1.5rem;
	margin-bottom: 2rem;
}

.widget-title {
	font-size: 1.2rem;
	margin-bottom: 1rem;
	color: #2c3e50;
}

.author-widget {
	text-align: center;
}

.author-avatar {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	object-fit: cover;
	margin: 0 auto 1rem;
	border: 4px solid #f1f1f1;
}

.author-name {
	font-size: 1.2rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.author-bio {
	text-align: left;
	color: #666;
	margin-bottom: 1rem;
}

.author-social {
	display: flex;
	justify-content: center;
	gap: 0.8rem;
}

.author-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 35px;
	height: 35px;
	border-radius: 50%;
	background-color: #f1f1f1;
	color: #2c3e50;
	font-size: 1rem;
}

/* 作者社交按钮hover颜色调整为主题蓝 */
.author-social a:hover {
	background-color: #3498db;
	color: #fff;
}

.category-list {
	list-style: none;
}

.category-item {
	padding: 0.8rem 0;
	border-bottom: 1px solid #eee;
	display: flex;
	justify-content: space-between;
}

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

.category-item a{
	font-weight: 600;
    color: #009fff;
}

.category-count {
	display: inline-block;
	background-color: #f1f1f1;
	padding: 0.2rem 0.6rem;
	border-radius: 10px;
	font-size: 0.8rem;
	color: #888;
}

/* 页脚样式 - 主色调整为深蓝 */
.site-footer {
	background-color: #2c3e50;
	color: #fff;
	padding: 3rem 0 1rem;
}

.footer-content {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
	margin-bottom: 2rem;
}

.footer-widget h3 {
	font-size: 1.2rem;
	margin-bottom: 1.5rem;
	position: relative;
	padding-bottom: 0.8rem;
}

/* 页脚标题下划线颜色调整为主题蓝 */
.footer-widget h3::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 50px;
	height: 2px;
	background-color: #3498db;
}

.footer-widget ul {
	list-style: none;
}

.footer-widget ul li {
	margin-bottom: 0.8rem;
}

.footer-widget a {
	color: #bdc3c7;
}

/* 页脚链接hover颜色调整为主题蓝 */
.footer-widget a:hover {
	color: #3498db;
	padding-left: 5px;
	transition: padding 0.3s ease;
}

.copyright {
	text-align: center;
	padding-top: 2rem;
	border-top: 1px solid #34495e;
	color: #bdc3c7;
	font-size: 0.9rem;
}

.copyright a{
	color: #bdc3c7;
}

/* 订阅按钮颜色调整为主题蓝 */
button[type="submit"] {
	background-color: #3498db !important;
	border-color: #3498db !important;
}

button[type="submit"]:hover {
	background-color: #2980b9 !important;
	border-color: #2980b9 !important;
}

/* 版权信息心形图标颜色调整为主题蓝 */
.copyright .fas.fa-heart {
	color: #3498db !important;
}

/* 文章目录样式 */
.toc-widget {
  position: sticky;
  top: 100px; /* 距离顶部距离，避免被导航挡住 */
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.post-toc {
  list-style: none;
  padding: 0;
  margin: 0;
}
.post-toc li {
  margin-bottom: 8px;
}
.post-toc li a {
  display: block;
  padding: 6px 12px;
  font-size: 14px;
  line-height: 1.5;
  border-radius: 4px;
  color: #444;
  transition: all 0.2s ease;
}
.post-toc li a:hover {
  background: #f1f5f9;
  color: #3498db;
}

/* 目录高亮样式 */
.post-toc li a.active-toc {
  background: #3498db;
  color: #fff !important;
  font-weight: 600;
}

/* 响应式设计 - 平板 */
@media (max-width: 992px) {
	.main-content {
		flex-direction: column;
	}

	.footer-content {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* 响应式设计 - 手机 */
@media (max-width: 768px) {
	.nav-links {
		position: fixed;
		top: 0;
		right: 0;
		height: 100vh;
		width: 250px;
		background-color: #2c3e50;
		flex-direction: column;
		padding: 2rem;
		transform: translateX(100%);
		transition: transform 0.3s ease;
		z-index: 999;
	}

	.nav-links.active {
		transform: translateX(0);
	}

	.nav-links a {
		color: #fff;
		font-size: 1rem;
	}

	.mobile-menu-btn {
		display: block;
	}

	.footer-content {
		grid-template-columns: 1fr;
	}

	.post-detail {
		padding: 1.5rem;
	}

	.post-detail-title {
		font-size: 1.6rem;
	}

	.post-share {
		flex-direction: column;
		align-items: flex-start;
	}

	/* 移动端相关文章恢复单列 */
	.related-grid {
		grid-template-columns: 1fr;
	}
}