@charset "utf-8";
:root {
	--mb: 1px;
	--main: #007bff;
	--base: #333;
	--dark: #202935;
	--white: #fff;
	--bdbg: #f4f4f4;
	--tint: #fbfbfb;
	--line: #f3f3f3;
	--gray: #999;
}
* {margin: 0px;padding: 0px;-webkit-box-sizing: border-box;-moz-box-sizing: border-box;-o-box-sizing: border-box;box-sizing: border-box;}
html,body {font-family: -apple-system,Helvetica Neue,Helvetica,PingFang SC,Microsoft YaHei,Source Han Sans SC,Noto Sans CJK SC,WenQuanYi Micro Hei,sans-serif;line-height: 1.5;color: var(--base);font-size: 16px;background-color: var(--bdbg);}
ul,li {list-style: none;}
img {border: 0px;max-width: 100%;max-height: 100%;}
em,i,u,s,b,strong {font-style: normal;font-weight: normal;text-decoration: none;}
a {cursor: pointer;color: var(--base);text-decoration: none;display: inline-block;}
a:hover {color: var(--main);}
button {cursor: pointer;border: none;background-color: inherit;}
h1,h2,h3,h4,h5,h6 {font-weight: 400;}
h1 {font-size: 1.25rem;}
h2 {font-size: 1.125rem;}
h3 {font-size: 1rem;}
h4 {font-size: 0.875rem;}

.container {max-width: 100%;margin: auto;position: relative;}
.text-muted {color: #777;font-size: 0.75rem;}

/* section */
section {margin-top: var(--mb);background-color: #fff;border-radius: 0;}
section .head {display: flex;align-items: center;justify-content: space-between;border-bottom: 2px solid var(--line);padding: 10px 20px;background-color: var(--tint);border-bottom: 1px solid var(--line);}
section .head .left {margin-right: 0.75rem;}
section .head .right {overflow: hidden;}
section .head .more {color: #777;font-size: 0.75rem;}
section .head h3 {position: relative;display: flex;align-items: center;}
section .head h3::before {content: "";height: 1rem;width: 4px;border-radius: 10px;background-color: var(--main);display: inline-block;margin-right: 13px;}
section .head nav {display: flex;align-items: center;}
section .head nav a {padding: 0.375rem 0.875rem;border-radius: 1rem;font-size: 0.875rem;color: #1E232D;transition: all .2s ease-in-out;position: relative;margin-left: 0.75rem;}
section .head nav a.active,
section .head nav a:hover {color: #fff;background-color: #c99a05;}
section .head small {margin-top: 6px;color: #666;font-size: 0.75rem;line-height: 1.125rem;display: flex;align-items: center;}
section .head small span {color: #c99a05;margin: 0 0.375rem;}

/* header */
header {width: 100%;padding: 0 1rem;background-color: #fff;}
header a {height: 100%;display: inline-flex;align-items: center;}
.header-navbar {flex: 1;display: flex;align-items: center;justify-content: space-between;}
.header-navbar {padding: 0.75rem 0;}
.header-navbar .logo span {display: inline-flex;align-items: center;justify-content: center;color: rgba(255, 255, 255, .8);background: linear-gradient(145deg, #72b6ff, #007bff, #0069d9);width: 30px;height: 26px;margin-right: 0.25rem;border-radius: 4px;}
.header-navbar .logo .feather {width: 1rem;height: 1rem;}
/* nav */
.header-nav {display: none;}
.sub-menu {}
.sub-menu > li {border-top: 1px solid var(--line);}
.sub-menu > li > a {display: block;padding: 0.75rem 0;}
.sub-menu > li > ul {display: grid;grid-template-columns: repeat(4,1fr);background-color: var(--line);}
.sub-menu > li > ul > li > a {padding: 8px 0;display: block;white-space: nowrap;font-size: 0.875rem;text-align: center;}


/* main */
main {}

/* chapter */
.chapter {display: flex;flex-direction: column;}
.chapter .book-title {text-align: center;margin-top: 20px;}
.chapter .title {text-align: center;padding: 10px 20px;}
.chapter .tool {display: flex;align-items: center;justify-content: center;border-top: 1px solid var(--line);border-bottom: 1px solid var(--line);padding: 10px 0;}
.chapter .tips {text-align: center;font-size: 0.875rem;color: #999;padding-bottom: 1rem;}

/* chapter list */
.chapter-list {font-size: 0.875rem;padding: 10px 20px;}
.chapter-list a {margin-right: 1rem;font-size: 1;}

/* prenext */
.prenext {display: inline-flex;align-content: center;justify-content: center;font-size: 0.875rem;background-color: var(--line);margin: 1rem auto;line-height: 40px;border-radius: 20px;overflow: hidden;}
.prenext a {padding: 0 1.5rem;position: relative;}
.prenext a:first-child::before {content: none;}
.prenext a::before {content: "";width: 1px;height: 50%;position: absolute;left: 0;top: 50%;transform: translateY(-50%);background-color: var(--white);}

/* mode */
.mode {margin: 0 1rem;display: inline-flex;align-items: center;}
.mode button {width: 1rem;height: 1rem;margin: 0 .5rem;}
.mode-a {background-color: rgb(0, 0, 0);color: #fff;}
.mode-a a {color: #fff;}
.mode-b {background-color: rgb(220, 236, 210);}
.mode-c {background-color: #e3d0a1;}

/* content */
.content {padding: 10px 20px;word-wrap: break-word;overflow-wrap: break-word;word-break: break-all;}
.content p {margin: 1rem 0;}

/* book */
.book {display: flex;flex-direction: column;overflow: hidden;position: relative;padding: 20px;margin-top: 1px;}
.book .info {display: flex;position: relative;z-index: 1;}
.book .cover {width: 120px;aspect-ratio: 100 / 130;border-radius: 4px;overflow: hidden;margin-right: 1rem;}
.book .cover img {object-fit: cover;width: 100%;height: 100%;}
.book .blur {position: absolute;top: 0;left: 0;opacity: .15;-webkit-filter: blur(18px);filter: blur(18px);object-fit: cover;width: 100%;height: 100%;}
.book .txt {flex: 1;}
.book .txt h1 {color: #333;margin-bottom: .5rem;}
.book .txt p {font-size: 0.875rem;margin-top: .25rem;color: var(--gray);}
.book .txt a {}
.book .btns {margin-top: 1rem;display: grid;grid-template-columns: repeat(2,1fr);grid-gap: 1rem;position: relative;z-index: 1;font-size: 0.875rem;}
.book .btns a {text-align: center;background: linear-gradient(324deg,#e60000,#ff6114);border-radius: 4px;color: #fff;padding: .5rem 0;}
.book .btns a.btn-read {background: var(--main);}
.book .btns a.btn-mark {background: #f7b10d;}
.book-desc {font-size: 0.875rem;padding: 10px 20px;}

.book-like {display: grid;grid-template-columns: repeat(3,1fr);padding: 10px;}
.book-like a {display: inline-flex;flex-direction: column;justify-content: center;align-items: center;font-size: 0.75rem;padding: 10px;border-radius: 4px;overflow: hidden;}
.book-like a:hover {background-color: var(--tint);}
.book-like img {width: 100%;aspect-ratio: 100 / 130;border-radius: 4px;}
.book-like h4 {width: 100%;overflow: hidden;height: 24px;line-height: 24px;text-align: center;}
.book-like span {color: var(--gray);}

.book-chapter {display: flex;flex-wrap: wrap;font-size: 0.875rem;padding: 10px;}
.book-chapter a {flex: 1 1 100%;line-height: 38px;padding: 0 10px;border-radius: 4px;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;}
.book-chapter a:hover {background-color: var(--tint);}

.book-rand {display: flex;flex-wrap: wrap;font-size: 0.875rem;padding: 10px;}
.book-rand a {flex: 1 1 50%;line-height: 38px;padding: 0 10px;border-radius: 4px;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;}
.book-rand a:hover {background-color: var(--tint);}

.book-coverlist {display: flex;flex-direction: column;padding: 10px;}
.book-coverlist li {display: inline-flex;padding: 8px;}
.book-coverlist li:hover {background-color: var(--tint);border-radius: 4px;}
.book-coverlist .cover {width: 100px;height: 130px;display: flex;position: relative;background-color: var(--line);border-radius: 4px;overflow: hidden;}
.book-coverlist .cover img {position: absolute;width: 100%;height: 100%;object-fit: cover;}
.book-coverlist .txt {flex: 1;padding-left: 1rem;color: #777;font-size: 0.75rem;}
.book-coverlist .titl {font-size: 1rem;}
.book-coverlist p {margin-top: .5rem;overflow: hidden;}
.book-coverlist .desc {display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 4;overflow: hidden;}

.top-grid {display: grid;grid-template-columns: repeat(1,1fr);}
.top-grid-list {display: flex;flex-wrap: wrap;flex-direction: column;}
.top-grid-list a {flex: 1 1 100%;display: inline-flex;align-items: center;justify-content: space-between;font-size: 0.875rem;line-height: 38px;padding: 0 20px;}
.top-grid-list a + a {border-top: 1px solid var(--line);}
.top-grid-list a:hover {background-color: var(--tint);}

.chapter-new {display: flex;flex-direction: column;font-size: 0.875rem;font-size: 0.875rem;}
.chapter-new li {font-size: 0.875rem;display: flex;justify-content: space-between;gap: 0.5rem;flex-wrap: wrap;padding: 10px 20px;}
.chapter-new li + li {border-top: 1px solid var(--line);}
.chapter-new li:hover {background-color: var(--tint);}
.chapter-new span {color: #777;overflow: hidden;width: 80px;}
.chapter-new a {overflow: hidden;}
.chapter-new .type {}
.chapter-new .name {flex: 1 0 100%;}
.chapter-new .zj {flex: 1 0 100%;}
.chapter-new .author {}
.chapter-new .time {}

.links {display: flex;flex-wrap: wrap;font-size: 0.875rem;padding: 10px 20px;}
.links a {margin-right: 1rem;}

/* footer */
footer {text-align: center;padding: 1rem 0;font-size: 0.75rem;background-color: #fff;margin-top: var(--mb);color: var(--gray);text-transform: capitalize;}
footer a {color: var(--gray);}

@media (min-width: 1140px) {
	:root {
		--mb: 1rem;
	}
	.container {max-width: 1140px;}
	section {border-radius: 6px;overflow: hidden;}
	header .container {display: flex;justify-content: space-between;align-items: center;}
	header .menu {display: none;}
	.header-nav {display: block;}
	.book {margin: 1rem auto;}
	.book .cover {width: 180px;}
	.book-like {grid-template-columns: repeat(6,1fr);}
	.book-like a {flex-shrink: inherit;width: auto;}
	.book-chapter a {flex: 1 1 50%;}
	.book-rand a {flex: 1 1 25%;}
	.book-coverlist {display: grid;grid-template-columns: repeat(2,1fr);grid-gap: 1rem;}
	.top-grid {grid-template-columns: repeat(2,1fr);column-gap: 1rem;}
	.chapter-new li {flex-wrap: inherit;height: 38px;line-height: 38px;padding: 0 20px;}
	.chapter-new .name {flex: 1;}
	.chapter-new .zj {flex: 1;}
	/* sub-menu */
	.sub-menu {display: flex;}
	.sub-menu > li {position: relative;margin-left: 2rem;border-top: none;}
	.sub-menu > li.children > a {position: relative;padding-right: 12px;}
	.sub-menu > li.children > a::after {content: "";position: absolute;top: 50%;right: 0;margin-top: -1.5px;border: 3.5px solid rgba(0,0,0,0);transition: all .3s ease-in-out;border-top-color: var(--base);}
	.sub-menu > li > ul {display: block;position: absolute;top: 200%;left: 50%;padding: 0;margin: 0;background-color: #fff;box-shadow: 0 0 5px rgba(0,0,0,.1);z-index: 1000;height: auto;transform: translateX(-50%);border-radius: 6px;transition: all .3s ease-in-out;visibility: hidden;opacity: 0;padding: 5px 0;}
	.sub-menu > li > ul::before,
	.sub-menu > li > ul::after {content: "";position: absolute;top: -5px;left: 50%;margin-left: -3px;border-left: 5px solid rgba(0,0,0,0);border-right: 5px solid rgba(0,0,0,0);}
	.sub-menu > li > ul::before {border-bottom: 5px solid #f2f2f2;}
	.sub-menu > li > ul::after {border-bottom: 5px solid #fff;margin-top: 1px;}
	.sub-menu > li > ul > li > a {padding: 8px 16px;}
	.sub-menu > li > ul > li > a:hover {background-color: var(--bdbg);}
	.sub-menu > li:hover > ul {display: block;visibility: visible;opacity: 1;top: 100%;}
}