/*
Theme Name: QStyle Modern - Clean White Edition
Version: 2.1
Description: 简洁大气的白色背景现代化设计
Author: www.4jax.net
License: GNU General Public License v3.0
*/

/* ========== 基础样式重置 ========== */
body,h1,h2,h3,p,blockquote,dl,dt,dd,ul,ol,li,button,input,textarea {
	margin: 0;
	padding: 0
}

*,::after,::before{
	box-sizing: border-box;
}

html{
	font-size: 62.5%;
	scroll-behavior: smooth;
}

body {
	font: 15px/1.8 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif;
	background: #f5f5f5;
	display: block;
	cursor: default;
	color: #1a1a1a;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	position: relative;
	min-height: 100vh;
}

/* ========== 字体图标 ========== */
@font-face {
	font-family:'iconfont';
	src:url('images/iconfont.eot');
	src:url('images/iconfont.eot?#iefix') format('embedded-opentype'),
		url('images/iconfont.woff') format('woff'),
		url('images/iconfont.ttf') format('truetype'),
		url('images/iconfont.svg#svgFontName') format('svg')
}

.iconfont{
	font-family: "iconfont";
	font-size: 14px;
	font-style: normal;
}

.icon-view:before {content:'\e643';}
.icon-com:before {content:'\e61e';}
.icon-comm:before {content:'\e654';}
.icon-reply:before {content:'\e654';color:#1a73e8;font-size:11px}

/* ========== 基础元素 ========== */
h1,h2,h3{
	font-weight: 600;
	letter-spacing: -0.5px;
	color: #1a1a1a;
}

a{
	color: #1a73e8;
	text-decoration: none;
	transition: all 0.2s ease;
}

a:hover{
	color: #1557b0;
}

img{
	border: 0;
	max-width: 100%;
	height: auto;
}

ol,ul,li{
	list-style: none;
}

/* ========== 表单元素 ========== */
input,textarea,button{
	outline: 0;
	transition: all 0.2s ease;
}

input,textarea{
	-webkit-appearance: none;
	border: 1px solid #dadce0;
	border-radius: 8px;
	background: #fff;
	padding: 10px 16px;
	font-size: 14px;
	color: #1a1a1a;
}

input[type^="checkbox"]{
	-webkit-appearance: checkbox;
}

input:focus,textarea:focus{
	border-color: #1a73e8;
	box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.1);
}

input{
	vertical-align: middle;
}

input[type^="radio"]{
	border: 0;
	background: 0;
	width: auto;
}

.select, #main select{
	border: 1px solid #dadce0;
	border-radius: 8px;
	padding: 8px 12px;
	background: #fff;
	transition: all 0.2s ease;
}

.select:focus, #main select:focus{
	border-color: #1a73e8;
	box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.1);
}

/* 现代化按钮 */
.btn{
	cursor: pointer;
	line-height: 20px;
	height: auto;
	background: #1a73e8;
	color: #FFF;
	padding: 10px 24px;
	text-align: center;
	border-radius: 8px;
	border: 0;
	font-weight: 500;
	font-size: 14px;
	box-shadow: 0 1px 3px 0 rgba(26, 115, 232, 0.3);
	transition: all 0.2s ease;
}

.btn:hover{
	background: #1557b0;
	box-shadow: 0 2px 8px 0 rgba(26, 115, 232, 0.4);
	transform: translateY(-1px);
}

.btn:active{
	transform: translateY(0);
}

/* ========== 布局容器 ========== */
.box-m{
	width: 980px;
	margin: 0 auto;
	position: relative;
	z-index: 1;
}

.clb{
	clear: both;
}

.hide{
	display: none;
}

/* ========== 头部导航 ========== */
#header{
	margin-bottom: 30px;
	position: relative;
	z-index: 100;
}

/* 简洁导航栏 */
.navbar-wrap{
	background: #fff;
	width: 100%;
	height: 70px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	border-bottom: 1px solid #f0f0f0;
	position: sticky;
	top: 0;
	animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-100%);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

#header .logo{
	line-height: 70px;
	font-size: 14px;
	position: absolute;
}

#header .logo a{
	color: #1a1a1a;
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -0.5px;
}

/* 移动端菜单按钮 */
.menu-toggle {
	display: none;
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	align-items: center;
	justify-content: center;
	color: #1a73e8;
	font-size: 24px;
	border-radius: 8px;
	transition: all 0.2s ease;
	z-index: 1000;
}

.menu-toggle:hover {
	background: rgba(26, 115, 232, 0.08);
}

#nav{
	position: absolute;
	right: 0;
	line-height: 70px;
}

#nav li{
	list-style: none;
	padding: 0;
	margin: 0;
	display: inline;
	padding: 6px 8px;
}

#nav li a{
	display: inline-block;
	color: #5f6368;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	line-height: 24px;
	padding: 8px 12px;
	border-radius: 8px;
	transition: all 0.2s ease;
}

#nav li a:hover, #nav li .on{
	color: #1a73e8;
	background: rgba(26, 115, 232, 0.08);
}

/* 搜索栏区域 */
.other-wrap{
	background: #f8f9fa;
	width: 100%;
	height: 56px;
	border-bottom: 1px solid #e8eaed;
}

.desc,.search-form{
	display: block;
	position: absolute;
	height: 56px;
	line-height: 56px;
}

.desc{
	left: 0;
	color: #5f6368;
	font-size: 13px;
}

.search-form{
	right: 0;
	padding: 12px 0;
}

.search-text{
	float: left;
	border-right: 0 !important;
	padding: 10px 16px;
	height: 32px;
	line-height: 32px;
	border-bottom-right-radius: 0 !important;
	border-top-right-radius: 0 !important;
	border: 1px solid #dadce0;
	border-right: none;
	font-size: 14px;
}

.search-text:focus{
	border-color: #1a73e8;
	box-shadow: none;
}

.search-submit{
	cursor: pointer;
	float: left;
	line-height: 32px;
	height: 32px;
	background: #1a73e8;
	color: #FFF;
	padding: 0 20px;
	text-align: center;
	border-bottom-right-radius: 8px !important;
	border-top-right-radius: 8px !important;
	border: 0;
	font-weight: 500;
	font-size: 14px;
	transition: all 0.2s ease;
}

.search-submit:hover{
	background: #1557b0;
}

/* ========== 主要内容区域 ========== */
#content{
	width: 980px;
	margin: 0 auto;
	overflow: hidden;
	padding-bottom: 40px;
	position: relative;
	z-index: 1;
}

#main{
	width: 70%;
	float: left;
	overflow: hidden;
}

#content .login{
	background: #fff;
	padding: 40px;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	border: 1px solid #e8eaed;
}

#sidebar{
	width: 28%;
	float: right;
	overflow: hidden;
}

/* 分类标题 */
.class{
	background: #fff;
	padding: 12px 20px;
	margin-bottom: 20px;
	font-weight: 600;
	color: #1a1a1a;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	font-size: 15px;
	border: 1px solid #e8eaed;
}

/* ========== 文章列表卡片 ========== */
.post_list{
	margin-bottom: 20px;
	padding: 24px 28px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	overflow: hidden;
	border-radius: 12px;
	transition: all 0.2s ease;
	border: 1px solid #e8eaed;
}

.post_list:hover{
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
	border-color: #dadce0;
}

.post_list h2{
	overflow: hidden;
	text-overflow: ellipsis;
	margin-bottom: 12px;
}

.post_list h2 a{
	color: #1a1a1a;
	font-size: 20px;
	overflow: hidden;
	white-space: nowrap;
	font-weight: 600;
	letter-spacing: -0.3px;
}

.post_list h2 a:hover{
	color: #1a73e8;
}

.info{
	color: #5f6368;
}

.excerpt{
	line-height: 1.7;
	color: #3c4043;
	font-size: 14px;
}

.textPost{
	cursor: pointer;
}

.meta{
	font-size: 13px;
	clear: both;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	color: #5f6368;
	border-top: 1px solid #f0f0f0;
	margin: 12px 0 0 0;
	padding: 12px 0 0 0;
}

.post_list .time,#article .time{
	font-size: 13px;
	color: #5f6368;
	float: left;
}

/* 标签样式 */
.ico{
	background: #1a73e8;
	padding: 2px 8px;
	font-size: 11px;
	color: #fff;
	border-radius: 4px;
	font-weight: 500;
}

.mi{
	background: #5f6368;
}

.jin{
	background: #ea4335;
}

.navPost{
	float: right;
}

.navPost a{
	font-size: 13px;
	color: #5f6368;
}

.meat_span{
	margin-right: 16px;
}

.meta a{
	color: #5f6368;
	transition: all 0.2s ease;
}

.meta a:hover{
	color: #1a73e8;
}

/* 缩略图 */
.thumbnail{
	float: left;
	padding: 3px;
	border: 1px solid #e8eaed;
	background: #fff;
	margin: 0 16px 12px 0;
	border-radius: 8px;
	overflow: hidden;
	transition: all 0.2s ease;
}

.thumbnail img{
	display: block;
	width: 180px;
	height: 120px;
	object-fit: cover;
	border-radius: 6px;
}

.thumbnail:hover{
	border-color: #1a73e8;
	box-shadow: 0 2px 8px rgba(26, 115, 232, 0.2);
}

/* ========== 分页器 ========== */
.pagination{
	float: right;
	text-align: right;
	background: #fff;
	padding: 16px;
	width: 100%;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	border: 1px solid #e8eaed;
}

.pagination span,.pagination a{
	text-align: center;
	display: inline-block;
	text-decoration: none;
	border: 1px solid #dadce0;
	padding: 6px 12px;
	margin-left: 6px;
	box-sizing: border-box;
	border-radius: 6px;
	transition: all 0.2s ease;
	color: #3c4043;
	font-weight: 500;
	background: #fff;
	font-size: 13px;
}

.pagination a:first-child{
	margin-left: 0;
}

.pagination .info{
	margin-right: 8px;
	border: none;
	background: transparent;
	font-size: 13px;
}

.pagination .current{
	color: #fff;
	background: #1a73e8;
	border-color: #1a73e8;
	font-weight: 600;
}

.pagination a:hover{
	border-color: #1a73e8;
	color: #1a73e8;
}

/* ========== 文章详情页 ========== */
#article{
	margin-bottom: 20px;
	padding: 28px 32px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	overflow: hidden;
	border-radius: 12px;
	border: 1px solid #e8eaed;
}

#article h1{
	font-size: 28px;
	line-height: 1.3;
	margin-bottom: 16px;
	color: #1a1a1a;
	font-weight: 700;
	letter-spacing: -0.5px;
}

.text{
	margin-bottom: 16px;
	color: #3c4043;
	font-size: 15px;
	word-wrap: break-word;
	line-height: 1.7;
}

.text p{
	overflow: auto;
	padding-bottom: 12px;
	line-height: 1.7;
}

.text a{
	color: #1a73e8;
	border-bottom: 1px solid rgba(26, 115, 232, 0.3);
	transition: all 0.2s ease;
}

.text a:hover{
	border-bottom-color: #1a73e8;
}

.text img,.text iframe{
	max-width: 100%;
	border-radius: 8px;
	margin: 12px 0;
}

/* 文章导航 */
#articlenav{
	background: #fff;
	padding: 12px 16px;
	overflow: hidden;
	margin-bottom: 16px;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	border: 1px solid #e8eaed;
}

#articlenav .pre{
	float: left;
	color: #1a73e8;
	padding: 6px 12px;
	border-radius: 6px;
	transition: all 0.2s ease;
}

#articlenav .pre:hover{
	background: rgba(26, 115, 232, 0.08);
}

#articlenav .pre:before{
	font-family: "iconfont";
	font-size: 14px;
	font-style: normal;
	content: '\e602';
	margin-right: 6px;
}

#articlenav .next{
	float: right;
	color: #1a73e8;
	padding: 6px 12px;
	border-radius: 6px;
	transition: all 0.2s ease;
}

#articlenav .next:hover{
	background: rgba(26, 115, 232, 0.08);
}

#articlenav .next:after{
	font-family: "iconfont";
	font-size: 14px;
	font-style: normal;
	content: '\e603';
	margin-left: 6px;
}

/* ========== 侧边栏 ========== */
.sidebar{
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	overflow: hidden;
}

.widget{
	background: #fff;
	margin-bottom: 16px;
	color: #202124;
	overflow: hidden;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	border: 1px solid #e8eaed;
	transition: all 0.2s ease;
}

.widget:hover{
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.widget a{
	color: #202124;
	transition: all 0.2s ease;
}

.widget a:hover{
	color: #1a73e8;
}

.widget h3{
	padding: 0 16px;
	font-size: 15px;
	line-height: 44px;
	color: #1a1a1a;
	font-weight: 600;
	background: #f8f9fa;
	border-bottom: 1px solid #f0f0f0;
}

.widget ul{
	padding: 12px 16px;
}

.widget ul ul,.widget .textwidget ul{
	border-top: 0;
	padding-top: 4px;
}

.widget li{
	line-height: 1.6;
	padding: 8px 0 8px 10px;
	margin-bottom: 6px;
	border-bottom: 1px solid #f0f0f0;
	transition: all 0.2s ease;
	position: relative;
	font-size: 14px;
	color: #202124;
}

.widget li:before{
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 4px;
	height: 4px;
	background: #1a73e8;
	border-radius: 50%;
	opacity: 0.5;
	transition: all 0.2s ease;
}

.widget li:hover:before{
	opacity: 1;
}

.widget li:hover{
	padding-left: 14px;
}

.widget li:last-child{
	border-bottom: none;
}

/* ========== 评论区域 ========== */
#comments{
	clear: both;
	margin-bottom: 20px;
	padding: 24px 32px 16px 32px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	overflow: hidden;
	border-radius: 12px;
	border: 1px solid #e8eaed;
}

#comments h3{
	border-bottom: 1px solid #f0f0f0;
	padding: 0 0 12px 0;
	color: #1a1a1a;
	font-weight: 600;
	font-size: 16px;
	margin-bottom: 16px;
}

.comment_list{
	margin-bottom: 24px;
}

.comment_list li{
	border-bottom: 1px solid #f0f0f0;
	margin: 0;
	padding: 16px 0;
	transition: all 0.2s ease;
}

.comment_list li:hover{
	background: #f8f9fa;
	padding-left: 12px;
	margin-left: -12px;
	border-radius: 8px;
}

.avatar{
	float: left;
	width: 40px;
	margin-top: 2px;
	border-radius: 50%;
	overflow: hidden;
}

.avatar img{
	border-radius: 50%;
	transition: all 0.2s ease;
}

.avatar:hover img{
	transform: scale(1.05);
}

.comment{
	overflow: hidden;
	padding-left: 8px;
}

.comment_meta{
	overflow: hidden;
	margin-bottom: 8px;
}

.comment_meta cite,.comment_meta cite a{
	font-style: normal;
	font-weight: 600;
	color: #1a1a1a;
	font-size: 14px;
}

.comment_meta cite a:hover{
	color: #1a73e8;
}

.comment_meta .time{
	font-size: 12px;
	color: #5f6368;
	padding-left: 8px;
}

.comment_meta .reply,.comment_meta .edit_link{
	float: right;
	padding-right: 12px;
	margin-top: -2px;
}

.comment_meta .reply a,.comment_meta .edit_link a{
	font-size: 13px;
	color: #5f6368;
	padding: 3px 10px;
	border-radius: 6px;
	transition: all 0.2s ease;
}

.comment_meta .reply a:hover,.comment_meta .edit_link a:hover{
	color: #1a73e8;
	background: rgba(26, 115, 232, 0.08);
}

.comment_meta .reply em{
	color: #5f6368;
	font-size: 12px;
}

.comment p{
	color: #3c4043;
	padding-right: 8px;
	word-wrap: break-word;
	line-height: 1.6;
	font-size: 14px;
}

.post_link{
	font-size: 13px;
	overflow: hidden;
	color: #5f6368;
	margin-bottom: 16px;
	min-height: 20px;
}

.post_link a{
	font-size: 13px;
	color: #5f6368;
}

.post_link .prev{
	float: left;
}

.post_link .next{
	float: right;
}

/* ========== 表单样式 ========== */
.mt10{
	margin-top: 12px;
}

#codeimg{
	vertical-align: middle;
	border-radius: 6px;
}

#errmsg{
	padding-left: 8px;
	color: #ea4335;
	font-weight: 500;
}

.tabtitle{
	background: #f8f9fa;
	line-height: 40px;
	padding: 0 8px 0 16px;
	display: -webkit-box;
	overflow-x: auto;
	overflow-y: hidden;
	white-space: nowrap;
	-ms-overflow-style: none;
	overflow: -moz-scrollbars-none;
	border-radius: 12px 12px 0 0;
	border-bottom: 1px solid #e8eaed;
}

.tabtitle::-webkit-scrollbar{
	display: none;
}

.tabtitle li{
	cursor: pointer;
	display: inline-block;
	padding: 0 16px;
	border-radius: 6px 6px 0 0;
	transition: all 0.2s ease;
	font-weight: 500;
}

.tabtitle li:hover{
	background: rgba(26, 115, 232, 0.08);
	color: #1a73e8;
}

.tabtitle li.on{
	background: #fff;
	border: 1px solid #e8eaed;
	border-bottom: 0;
	height: 40px;
	font-weight: 600;
	color: #1a73e8;
}

.tabcontent{
	clear: both;
	margin: 8px 0 0 8px;
}

#table{
	width: 100%;
	font-size: 14px;
	border: 1px solid #e8eaed;
	margin-top: 12px;
	border-radius: 8px;
	overflow: hidden;
}

#table thead th {
	background: #f8f9fa;
	padding: 12px;
	text-align: left;
	font-weight: 600;
	color: #1a1a1a;
	font-size: 13px;
}

#table tbody td {
	padding: 12px;
	text-align: left;
	border-bottom: 1px solid #f0f0f0;
	transition: all 0.2s ease;
}

#table tbody tr:hover td{
	background: #f8f9fa;
}

.s_d{
	margin-bottom: 6px;
	padding: 6px 0;
}

.s_e{
	margin-bottom: 12px;
}

.s_e strong{
	display: block;
	padding-bottom: 6px;
	font-weight: 600;
	color: #1a1a1a;
}

.s_e .tips{
	font-size: 12px;
	color: #5f6368;
	font-weight: normal;
	margin-top: 4px;
}

.input_textarea{
	width: 100%;
	border: 1px solid #dadce0;
	font: 14px "Segoe UI", Arial;
	padding: 12px;
	box-sizing: border-box;
	border-radius: 8px;
	line-height: 1.6;
	resize: vertical;
}

.input_narrow{
	width: 50%;
	border: 1px solid #dadce0;
	font: 14px "Segoe UI", Arial;
	padding: 10px 12px;
	border-radius: 8px;
}

.relog{
	width: 100%;
	height: 54px;
}

.s_h{
	height: 280px;
	margin-bottom: 8px;
}

.s_h .input_textarea{
	height: 240px;
}

.ef{
	margin-bottom: 12px;
}

#log{
	height: 380px;
	border: 1px solid #dadce0;
	border-radius: 8px;
}

#picup{
	box-sizing: content-box;
	overflow: hidden;
	position: relative;
	line-height: 64px;
	text-align: center;
	width: 96px;
	height: 64px;
	padding: 3px;
	border: 2px dashed #dadce0;
	border-radius: 8px;
	background: #f8f9fa;
	transition: all 0.2s ease;
}

#picup:hover{
	border-color: #1a73e8;
	background: rgba(26, 115, 232, 0.05);
}

#delpic{
	display: none;
	margin: 0 3px 3px 3px;
	cursor: pointer;
	line-height: 20px;
	z-index: 10;
	position: absolute;
	bottom: 0;
	left: 0;
	width: 96px;
	height: 20px;
	background: rgba(234, 67, 53, 0.9);
	color: #fff;
	border-radius: 0 0 6px 6px;
	font-size: 11px;
	font-weight: 500;
}

#upload-input{
	cursor: pointer;
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	opacity: 0;
}

.w100{
	width: 100% !important;
}

/* 视频响应式 */
.wm-video {
	position: relative;
	padding-bottom: 56.25% !important;
	height: 0;
	overflow: hidden;
	border-radius: 8px;
	margin: 16px 0;
}

.wm-video iframe{
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border-radius: 8px;
}

/* 归档页面 */
#archives ul{
	padding: 12px 0 12px 20px;
}

#archives ul li{
	padding: 8px 0;
	transition: all 0.2s ease;
}

#archives ul li:hover{
	padding-left: 8px;
}

#archives h2{
	border-bottom: 1px solid #e8eaed;
	padding-bottom: 10px;
	color: #1a1a1a;
	font-weight: 600;
	margin: 16px 0;
}

#archives ul li:before{
	display: inline-block;
	content: "";
	background: #1a73e8;
	height: 6px;
	width: 6px;
	border-radius: 100%;
	margin-right: 10px;
	margin-bottom: 2px;
	transition: all 0.2s ease;
}

#archives ul li:hover:before{
	transform: scale(1.2);
}

/* ========== 页脚 ========== */
#footer{
	text-align: center;
	font-size: 13px;
	padding: 20px 0;
	border-top: 1px solid #e8eaed;
	color: #5f6368;
	background: #f8f9fa;
}

#footer a{
	color: #1a73e8;
	transition: all 0.2s ease;
}

#footer a:hover{
	color: #1557b0;
}

#log a{
	text-decoration: underline;
}

/* ========== 深色主题 ========== */
body.dark-theme {
	background: #202124;
	color: #e8eaed;
}

body.dark-theme .navbar-wrap {
	background: #292a2d;
	border-bottom-color: #3c4043;
}

body.dark-theme .other-wrap {
	background: #292a2d;
	border-bottom-color: #3c4043;
}

body.dark-theme #nav li a {
	color: #9aa0a6;
}

body.dark-theme .desc {
	color: #9aa0a6;
}

body.dark-theme .post_list,
body.dark-theme #article,
body.dark-theme #comments,
body.dark-theme .widget,
body.dark-theme .pagination,
body.dark-theme .class,
body.dark-theme #content .login {
	background: #292a2d;
	border-color: #3c4043;
}

body.dark-theme .post_list h2 a,
body.dark-theme #article h1,
body.dark-theme h2,
body.dark-theme h3 {
	color: #e8eaed;
}

body.dark-theme #header .logo a {
	color: #e8eaed;
}

body.dark-theme .text,
body.dark-theme .excerpt,
body.dark-theme .comment p {
	color: #bdc1c6;
}

body.dark-theme .meta,
body.dark-theme .time,
body.dark-theme .info {
	color: #9aa0a6;
}

body.dark-theme .meta,
body.dark-theme #comments h3,
body.dark-theme .comment_list li {
	border-color: #3c4043;
}

body.dark-theme .widget {
	color: #e8eaed;
}

body.dark-theme .widget a {
	color: #e8eaed;
}

body.dark-theme .widget a:hover {
	color: #8ab4f8;
}

body.dark-theme .widget li {
	color: #e8eaed;
	border-color: #3c4043;
}

body.dark-theme .widget h3 {
	background: #3c4043;
	border-bottom-color: #5f6368;
	color: #e8eaed;
}

body.dark-theme input,
body.dark-theme textarea,
body.dark-theme .select,
body.dark-theme #main select {
	background: #3c4043;
	border-color: #5f6368;
	color: #e8eaed;
}

body.dark-theme input:focus,
body.dark-theme textarea:focus {
	border-color: #8ab4f8;
	box-shadow: 0 0 0 2px rgba(138, 180, 248, 0.2);
}

body.dark-theme .thumbnail {
	border-color: #3c4043;
	background: #3c4043;
}

body.dark-theme #footer {
	border-top-color: #3c4043;
	background: #292a2d;
	color: #9aa0a6;
}

body.dark-theme .pagination span,
body.dark-theme .pagination a {
	background: #3c4043;
	border-color: #5f6368;
	color: #bdc1c6;
}

body.dark-theme .pagination a:hover {
	background: #5f6368;
}

/* ========== 响应式设计 ========== */
@media screen and (max-width:980px) {
	#content{
		width: 96%;
	}
	#header,.box-m{
		width: 100%;
	}
	.box-m{
		padding: 0 10px;
	}
	.search-form{
		padding: 12px;
	}
	.desc{
		padding-left: 12px;
	}
}

@media screen and (max-width:650px){
	input,textarea{
		outline: none;
	}
	html{
		-webkit-text-size-adjust: none;
	}
	.input_narrow{
		width: 100%;
	}
	.collapse{
		display: none;
	}
	#pcode{
		width: 50% !important;
	}
	#header{
		margin-bottom: 16px;
	}
	#header p,.pagination .info,.desc{
		display: none;
	}
	.navbar-wrap{
		min-height: 56px;
		height: auto;
	}
	#navigation{
		position: relative;
		width: 100%;
	}
	#header .logo {
		position: relative;
		display: block;
		width: 100%;
		line-height: 56px;
		text-align: center;
	}
	
	.menu-toggle {
		display: flex !important;
		right: 12px;
		top: 8px;
	}
	
	.menu{
		color: #1a73e8;
		font-size: 22px;
		cursor: pointer;
	}
	.menu:after{
		content: '\e636';
	}
	.close:after{
		content: '\e624';
		font-size: 24px;
	}
	#nav {
		width: 100%;
		position: relative;
		line-height: 32px;
		background: #fff;
		margin-top: 8px;
		border-radius: 8px;
		box-shadow: 0 2px 8px rgba(0,0,0,0.08);
	}
	#nav li{
		display: block;
		border-top: 1px solid #f0f0f0;
		padding: 0;
	}
	#nav li a{
		display: block;
		width: 100%;
		padding: 10px 16px;
		border-radius: 0;
	}
	#nav li:first-child{
		border-top: none;
	}
	#nav li a:hover,#nav li .on{
		background: rgba(26, 115, 232, 0.08);
	}
	#header .logo a{
		font-size: 20px;
	}
	.search-form{
		width: 100%;
		padding: 8px 12px;
	}
	.search-form .search-text{
		width: calc(100% - 70px);
	}
	#content{
		width: 100%;
	}
	#main{
		width: 100%;
		float: none;
		overflow: hidden;
		margin: 0 auto 12px auto;
	}
	.post_list{
		padding: 16px 12px 8px 12px;
		margin-bottom: 12px;
	}
	.post_list h2 a{
		font-size: 18px;
		white-space: normal;
	}
	.excerpt{
		overflow: hidden;
	}
	.thumbnail{
		margin-bottom: 8px;
	}
	.thumbnail img{
		width: 120px;
		height: 80px;
	}
	.text{
		font-size: 15px;
	}
	.meta{
		margin: 8px 0 0 0;
		padding: 8px 0 0 0;
		font-size: 12px;
	}
	#sidebar{
		display: none;
		width: 100%;
		float: none;
		overflow: hidden;
		margin: 0 auto;
	}
	#article{
		margin-bottom: 16px;
		padding: 16px 12px 8px 12px;
	}
	#article h1{
		font-size: 22px;
	}
	.pagination{
		padding: 12px;
	}
	.pagination span,.pagination a{
		padding: 5px 10px;
		margin-left: 4px;
		font-size: 12px;
	}
}

/* ========== 额外优化 ========== */
::selection {
	background: rgba(26, 115, 232, 0.2);
	color: #1a1a1a;
}

body.dark-theme ::selection {
	background: rgba(138, 180, 248, 0.3);
	color: #e8eaed;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}

::-webkit-scrollbar-track {
	background: #f1f3f4;
}

::-webkit-scrollbar-thumb {
	background: #dadce0;
	border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
	background: #bdc1c6;
}

body.dark-theme ::-webkit-scrollbar-track {
	background: #292a2d;
}

body.dark-theme ::-webkit-scrollbar-thumb {
	background: #5f6368;
}

body.dark-theme ::-webkit-scrollbar-thumb:hover {
	background: #9aa0a6;
}

/* 代码块 */
pre {
	background: #f8f9fa;
	border-radius: 8px;
	padding: 16px;
	overflow-x: auto;
	margin: 16px 0;
	border: 1px solid #e8eaed;
}

body.dark-theme pre {
	background: #292a2d;
	border-color: #3c4043;
}

code {
	font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
	font-size: 13px;
	padding: 2px 6px;
	background: #f1f3f4;
	border-radius: 3px;
	color: #ea4335;
}

body.dark-theme code {
	background: #3c4043;
	color: #f28b82;
}

pre code {
	padding: 0;
	background: transparent;
	color: inherit;
}

/* 引用块 */
blockquote {
	margin: 16px 0;
	padding: 12px 16px;
	border-left: 3px solid #1a73e8;
	background: #f1f3f4;
	border-radius: 0 6px 6px 0;
	color: #3c4043;
}

body.dark-theme blockquote {
	background: #3c4043;
	border-left-color: #8ab4f8;
	color: #bdc1c6;
}

/* 分隔线 */
hr {
	border: none;
	height: 1px;
	background: #e8eaed;
	margin: 24px 0;
}

body.dark-theme hr {
	background: #3c4043;
}

/* 打印样式 */
@media print {
	body {
		background: #fff;
	}
	
	.navbar-wrap,
	.other-wrap,
	#sidebar,
	#footer,
	.back-to-top,
	.theme-toggle,
	.pagination,
	.btn {
		display: none !important;
	}
	
	.post_list,
	#article,
	#comments {
		box-shadow: none;
		border: 1px solid #ddd;
	}
}
