/* ============================================================
 * hs_booklib 电子书库样式
 * ============================================================ */
.hbl-wrap {
	max-width: 1100px;
	margin: 0 auto;
}

/* ------- 头部 ------- */
.hbl-head {
	padding: 14px 5px;
	border-bottom: solid 2px #426ef2;
	margin-bottom: 8px;
}

.hbl-h2 {
	font-size: 22px;
	margin: 4px 0;
	color: #2c3e50;
}

.hbl-h3 {
	font-size: 17px;
	margin: 6px 0 12px;
	color: #2c3e50;
	border-left: solid 4px #426ef2;
	padding-left: 10px;
}

.hbl-searchform .hbl-searchbox {
	width: 200px;
	display: inline-block;
	vertical-align: middle;
}

/* ------- 书卡 ------- */
.hbl-cards {
	padding-top: 6px;
}

.hbl-card {
	background: #fff;
	border: solid 1px #e8ecf3;
	border-radius: 8px;
	overflow: hidden;
	width: 240px;
	display: inline-block;
	vertical-align: top;
	margin: 8px 10px 8px 0;
	box-shadow: 0 1px 6px rgba(30, 60, 120, .06);
	transition: box-shadow .2s, transform .2s;
}

.hbl-card:hover {
	box-shadow: 0 4px 16px rgba(30, 60, 120, .16);
	transform: translateY(-2px);
}

.hbl-cover {
	display: block;
	height: 260px;
	overflow: hidden;
	background: #f2f5fa;
	text-align: center;
}

.hbl-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border: none;
}

.hbl-card-body {
	padding: 10px 12px 12px;
}

.hbl-title {
	font-size: 15px;
	margin: 0 0 6px;
	color: #2c3e50;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.hbl-tags {
	min-height: 20px;
	margin-bottom: 4px;
}

.hbl-tag {
	display: inline-block;
	font-size: 11px;
	color: #426ef2;
	background: #edf2ff;
	border-radius: 3px;
	padding: 1px 7px;
	margin-right: 4px;
	margin-bottom: 3px;
}

.hbl-intro {
	font-size: 12px;
	color: #8a94a6;
	line-height: 1.7;
	height: 40px;
	overflow: hidden;
	margin: 0 0 8px;
}

.hbl-card-foot {
	border-top: dashed 1px #eef1f5;
	padding-top: 8px;
}

.hbl-btn {
	display: inline-block;
	font-size: 13px;
	padding: 5px 14px;
	border-radius: 4px;
	text-decoration: none;
	cursor: default;
}

.hbl-btn-read {
	background: #426ef2;
	color: #fff;
}

.hbl-btn-read:hover {
	background: #2f5ae0;
	color: #fff;
	text-decoration: none;
}

.hbl-btn-lock {
	background: #f4f5f7;
	color: #a0a8b3;
	font-size: 12px;
}

.hbl-btn-admin {
	background: #27ae60;
	color: #fff;
}

.hbl-admin-edit {
	font-size: 12px;
	color: #8a94a6;
	margin-left: 6px;
}

.hbl-empty {
	text-align: center;
	color: #999;
	padding: 40px 0;
}

/* ------- 分页 ------- */
.hbl-page {
	text-align: center;
	padding: 14px 0;
}

.hbl-page a,
.hbl-page-cur {
	display: inline-block;
	min-width: 32px;
	padding: 4px 10px;
	margin: 0 3px;
	border-radius: 4px;
	font-size: 13px;
}

.hbl-page a {
	background: #fff;
	border: solid 1px #dde3ec;
	color: #4a5468;
}

.hbl-page a:hover {
	border-color: #426ef2;
	color: #426ef2;
	text-decoration: none;
}

.hbl-page-cur {
	background: #426ef2;
	color: #fff;
}

/* ------- 阅读器 ------- */
.hbl-toolbar {
	background: #2c3e50;
	border-radius: 6px 6px 0 0;
	padding: 8px 12px;
	color: #cfd8e3;
	line-height: 30px;
}

.hbl-tbtn {
	background: #3d5270;
	border: none;
	color: #e8eef7;
	padding: 4px 12px;
	font-size: 13px;
	margin: 0 2px;
}

.hbl-tbtn:hover {
	background: #4c6a94;
	color: #fff;
}

.hbl-pageinfo {
	margin: 0 8px;
	font-size: 13px;
}

.hbl-pagenum {
	width: 56px;
	height: 26px;
	border: none;
	border-radius: 3px;
	text-align: center;
	background: #22303f;
	color: #fff;
}

.hbl-sep {
	display: inline-block;
	width: 1px;
	height: 18px;
	background: #546a87;
	margin: 0 8px;
	vertical-align: middle;
}

.hbl-zoomval {
	display: inline-block;
	min-width: 46px;
	text-align: center;
	font-size: 13px;
}

.hbl-savestate {
	float: right;
	font-size: 12px;
	color: #7fd08d;
}

.hbl-viewer {
	background: #525659;
	min-height: 480px;
	text-align: center;
	overflow: auto;
	padding: 10px 0 20px;
	border-radius: 0 0 6px 6px;
}

.hbl-canvas {
	background: #fff;
	box-shadow: 0 2px 12px rgba(0, 0, 0, .4);
	max-width: 100%;
	display: block;
	margin: 0 auto;
}

.hbl-loading {
	color: #cfd8e3;
	padding: 80px 0;
	font-size: 14px;
}

.hbl-reader-tip {
	font-size: 12px;
	color: #98a2b3;
	padding: 8px 4px;
}

/* ------- 评论区 ------- */
.hbl-commentbox {
	margin-top: 22px;
	border-top: solid 2px #426ef2;
	padding-top: 10px;
}

.hbl-comment-title {
	font-size: 17px;
	font-weight: bold;
	padding: 6px 0;
	color: #2c3e50;
}

.hbl-reply-item {
	border-bottom: dashed 1px #e8ecf3;
	padding: 10px 4px;
}

.hbl-reply-head {
	font-size: 12px;
	color: #98a2b3;
	margin-bottom: 4px;
}

.hbl-reply-floor {
	color: #426ef2;
	font-weight: bold;
}

.hbl-reply-time {
	float: right;
}

.hbl-reply-content {
	font-size: 14px;
	line-height: 1.8;
	word-break: break-all;
}

.hbl-reply-content img {
	max-width: 100%;
}

.hbl-reply-empty {
	color: #999;
	text-align: center;
	padding: 18px 0;
}

.hbl-replyformbox {
	margin-top: 14px;
}

.hbl-reply-submit {
	margin-top: 10px;
}

.hbl-reply-goforum {
	font-size: 12px;
	color: #8a94a6;
	margin-left: 10px;
}

.hbl-reply-login {
	padding: 12px 0;
	color: #667;
}

/* ------- 后台 ------- */
.hbl-admintable {
	width: 100%;
	font-size: 13px;
	background: #fff;
}

.hbl-admintable th,
.hbl-admintable td {
	border-bottom: solid 1px #eef1f5;
	padding: 8px 10px;
	text-align: left;
}

.hbl-admintable th {
	background: #f7f9fc;
}

.hbl-label {
	padding-top: 8px;
}

.hbl-grouplist .hbl-groupitem {
	display: inline-block;
	margin: 0 14px 6px 0;
	font-size: 13px;
}

.hbl-noperm {
	background: #fff;
	border-radius: 8px;
	padding: 40px 30px;
	text-align: center;
	border: solid 1px #e8ecf3;
}

.hbl-noperm-text {
	font-size: 15px;
	color: #556;
	padding: 10px 0 18px;
}

/* ============ v1.2 txt / docx 视图与格式徽标 ============ */
.hbl-docview {
	display: none;
	background: #fff;
	margin: 0 auto;
	max-width: 900px;
	padding: 28px 34px;
	min-height: 60vh;
	overflow-wrap: break-word;
	line-height: 1.9;
	color: #2c3e50;
	box-shadow: 0 1px 6px rgba(0,0,0,.12);
}
.hbl-docview img { max-width: 100%; height: auto; }
.hbl-docview table { border-collapse: collapse; }
.hbl-docview td, .hbl-docview th { border: 1px solid #ccc; padding: 4px 8px; }
.hbl-txtpage {
	font-family: 'Microsoft YaHei', 'SimSun', monospace;
	white-space: pre-wrap;
	word-break: break-all;
	margin: 0;
	background: transparent;
	border: none;
	padding: 0;
}
.hbl-fmt {
	display: inline-block;
	padding: 1px 8px;
	border-radius: 3px;
	font-size: 12px;
	color: #fff;
	background: #5b8db8;
}
.hbl-fmt-txt { background: #7a9e7e; }
.hbl-fmt-docx { background: #2b579a; }
.hbl-fmt-pdf { background: #c0392b; }
