@charset "utf-8";
:root {
	--mt: 1rem;
	--base: #333;
	--dark: #202935;
	--bdbg: #f4f4f4;
	--tint: #f7f7f7;
	--line: #f3f3f3;
	--gray: #999;
	--main: #fc5531;
	--white: #ffffff;
	--body-bg: #f6f6f6;
	--header-bg: #222;
	--footer-bg: #333;
}
* {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,BlinkMacSystemFont,"Microsoft Yahei",MiSans,"HarmonyOS Sans","Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";line-height: 1.5;color: var(--base);font-size: 16px;background-color: var(--body-bg);height: 100%;display: flex;flex-direction: column;}
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 {width: 100%;max-width: 100%;margin: auto;padding: 0 1rem;position: relative;}
.text-muted {color: #777;font-size: 0.75rem;}
.nobook {font-size: 0.875rem;padding: 10px;color: var(--gray);}

/* section */
section {margin-top: var(--mt);background-color: var(--white);box-shadow: 0 1px 3px rgba(0, 0, 0, .1);}
section .head {display: flex;align-items: center;justify-content: space-between;padding: .75rem 1rem;border-bottom: 1px solid var(--line);}
section .head .left {margin-right: 0.75rem;}
section .head .right {overflow: hidden;display: inline-flex;}
section .head .right .feather {width: .875rem;height: .875rem;}
section .head .more {color: #777;font-size: 0.75rem;display: inline-flex;align-items: center;}
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: .25rem 0;background-color: var(--header-bg);}
header a {height: 3rem;display: inline-flex;align-items: center;color: var(--white);}
.header-navbar {flex: 1;display: flex;align-items: center;justify-content: space-between;flex-direction: row;flex-wrap: wrap;}
.header-navbar .logo {margin-right: 2rem;}
.header-navbar .logo .feather {margin-right: 0.25rem;}
.header-navbar .btns {margin-left: 1rem;display: inline-flex;align-items: center;gap: 1rem;}
.header-navbar .btns .feather {width: 1rem;height: 1rem;}
/* nav */
.header-nav {display: none;flex: 1 0 100%;padding-bottom: 1rem;}
.sub-menu {border-top: 1px solid rgba(255,255,255,.2);border-bottom: 1px solid rgba(255,255,255,.2);margin-bottom: 1rem;display: grid;grid-template-columns: repeat(4, 1fr);text-align: center;}
.sub-menu > li > a {display: inline-flex;padding: 0.75rem 0;font-size: .875rem;}
.sub-menu li ul {display: flex;flex-wrap: wrap;border-top: 1px dashed rgba(255,255,255,.2);}
.sub-menu li ul li {flex: 1 0 25%;}
.sub-menu li ul li a {padding: 8px 0;display: block;white-space: nowrap;font-size: 0.875rem;}

/* search */
.search {display: flex;align-items: center;justify-content: flex-start;border-radius: 4px;overflow: hidden;}
.search:focus-within .input {color: var(--base);}
.search .feather {width: 16px;height: 16px;}
.search .input {display: flex;width: 100%;height: 32px;font-size: 13px;flex: 1 1 0%;padding: .5rem;border: medium;background-color: var(--bdbg);color: var(--gray);outline: none;}
.search .button {display: inline-flex;align-items: center;height: 32px;padding: .5rem;background-color: var(--bdbg);}

/* main */
main {flex: 1;}

/* main grid */
.main-grid {flex: 1;display: grid;}

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

/* 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: 20px auto 0;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);}

/* link */
.link {margin: 0 1rem;display: inline-flex;align-items: center;font-size: 0.875rem;}
.link a {margin: 0 .5rem;}

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

/* book */
.book-bg {background-color: var(--white);box-shadow: 0 1px 3px rgba(0, 0, 0, .1);}
.book {padding: 1rem;}
.book section {display: flex;flex-direction: column;position: relative;padding: 1rem;}
.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 .txt {flex: 1;}
.book .txt h1 {margin-bottom: .5rem;}
.book .txt p {font-size: 0.875rem;}
.book .txt a {}
.book .btns {margin-top: 1rem;display: flex;gap: 1rem;position: relative;z-index: 1;font-size: 0.875rem;}
.book .btns a {flex: 1;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-blue {background: #31bdec;}
.book .btns a.btn-mark {background: #f7b10d;}

.book .label {margin-bottom: .5rem;}
.book .label a {padding: 0 7px;font-size: .75rem;border-radius: 4px;margin-right: 10px;color: var(--gray);border: 1px solid var(--gray);}
.book .label a:hover {background-color: var(--gray);color: var(--white);}
.book .label a.status {color: #fdae31;border: 1px solid #fdae31;}
.book .label a.status:hover {background-color: #fdae31;color: var(--white);}

.book-desc {font-size: 0.875rem;padding: .75rem 1rem;}

.tags {margin-bottom: 1rem;}
.tags a {margin-right: .5rem;border: 1px solid var(--line);border-radius: .25rem;padding: .25rem .75rem;margin-top: .5rem;transition: background-color .15s ease-in-out;}
.tags a:hover {background-color: #f8f8f8;}
.tags a::before {margin-right: 0.25rem;content: "#";color: var(--main);}

.list {display: grid;grid-template-columns: repeat(4,1fr);grid-gap: .5rem;padding: 1rem;}
.list a {display: inline-flex;flex-direction: column;justify-content: center;align-items: center;font-size: 0.75rem;overflow: hidden;position: relative;}
.list em {color: #fff;padding: 1px 10px;position: absolute;top: 15px;left: 15px;border-radius: 4px;line-height: 20px;opacity: .6;background: -webkit-linear-gradient(right, #73726d, #333);}
.list .cover {width: 100%;aspect-ratio: 100 / 130;border-radius: 4px;overflow: hidden;position: relative;background-color: var(--tint);}
.list .cover img {width: 100%;height: 100%;object-fit: cover;position: absolute;transition: transform 0.3s ease;}
.list a:hover .cover img {transform: scale(1.1);}
.list h4 {width: 100%;overflow: hidden;height: 1rem;line-height: 1rem;text-align: center;margin-top: .5rem;}
.list span {color: var(--gray);height: 18px;overflow: hidden;}
.list .del {border: 1px solid rgba(250, 100, 0, .5);padding: 0 0.375rem;color: rgba(250, 100, 0, .8);font-size: 0.75rem;margin-top: 0.3rem;}

.book-chapter {display: grid;font-size: 0.875rem;padding: .5rem 1rem;}
.book-chapter a {display: inline-grid;line-height: 38px;height: 38px;overflow: hidden;}

.book-rand {display: grid;font-size: 0.875rem;padding: .5rem 1rem;}
.book-rand a {flex: 1 1 100%;line-height: 38px;height: 38px;overflow: hidden;}
.book-rand small {color: var(--gray);margin-left: .75rem;}

.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-grid;grid-template-columns: 1fr auto;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);}
.top-grid-list h4 {white-space: nowrap;overflow: hidden;text-overflow: ellipsis;}
.top-grid-list small {overflow: hidden;height: 38px;margin-left: 1rem;text-align: end;}

.novel-list {display: flex;flex-wrap: wrap;flex-direction: column;}
.novel-list a {flex: 1 1 100%;display: inline-grid;grid-template-columns: 1fr auto;font-size: 0.875rem;line-height: 38px;padding: 0 1rem;}
.novel-list a + a {border-top: 1px solid var(--line);}
.novel-list a:hover {background-color: var(--tint);}
.novel-list h4 {white-space: nowrap;overflow: hidden;text-overflow: ellipsis;}
.novel-list small {overflow: hidden;height: 38px;margin-left: 1rem;text-align: end;}

.detail {display: flex;flex-wrap: wrap;row-gap: 0.3rem;font-size: 0.75rem;color: var(--gray);}
.detail dl {width: 50%;display: inline-flex;align-items: center;}
.detail dt {display: inline-flex;margin-right: 0.5rem;white-space: nowrap;}
.detail dd {display: inline-flex;flex: 1 0 auto;}
.detail a {margin-right: 0.5rem;}
.detail .feather {width: 14px;height: 14px;}
.detail .fluid {width: 100%;}

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

/* breadcrumb */
.breadcrumb {display: flex;align-items: center;flex-wrap: wrap;font-size: 0.875rem;padding: 1rem;border-bottom: 1px solid var(--line);}
.breadcrumb .feather {width: 1rem;height: 1rem;margin: 0 .5rem;}

/* page */
.page {display: flex;align-items: center;justify-content: center;margin-top: var(--mt);font-size: 0.875rem;}
.page span {color: var(--gray);}
.page span,
.page a {padding: 8px 12px;margin: 0 0.25rem;border-radius: 6px;display: inline-flex;}
.page a:hover {background-color: var(--white);}

/* author */
.author {padding: 1rem;text-align: center;}
.author .title {}
.author .data {display: flex;justify-content: center;margin-top: .5rem;}
.author .data dl {display: inline-flex;font-size: .875rem;padding: 0 .5rem;}
.author .data dt {padding-right: .25rem;color: var(--gray);}
.author .data dd {}

/* category list */
.category-list {display: grid;grid-template-columns: repeat(4,1fr);padding: .5rem;}
.category-list li {}
.category-list a {display: block;text-align: center;padding: .5rem 0;font-size: .875rem;}
.category-list a:hover {background-color: var(--tint);}

/* footer */
footer {text-align: center;padding: 1rem 0;font-size: 0.75rem;background-color: var(--footer-bg);margin-top: var(--mt);color: var(--gray);}
footer a {color: var(--gray);}

@media (min-width: 1280px) {
	.container {max-width: 1280px;}
	/* header */
	header .container {display: flex;justify-content: space-between;align-items: center;}
	.header-navbar .logo {order: 1;}
	.header-navbar .header-nav {order: 2;flex: 1;}
	.header-navbar .btns {order: 3;}
	header .menu {display: none;}
	.header-nav {display: flex;align-items: center;padding-bottom: 0;}
	/* book */
	.book {padding: 2rem 1rem;}
	.book .cover {width: 180px;margin-right: 20px;}
	.book .txt h1 {margin-bottom: 1rem;}
	.book .label {margin-bottom: 1rem;}
	.book .label a {font-size: .875rem;}
	/* main grid */
    .main-grid {display: grid;grid-template-columns: 1fr 300px;grid-gap: 1rem;}
	/* list */
	.list {grid-template-columns: repeat(6,1fr);grid-gap: 1rem;}
	.list a {flex-shrink: inherit;width: auto;}
	.list em {background: #000;}
	/* book-chapter */
	.book-chapter {grid-template-columns: repeat(4, 1fr);column-gap: 1rem;}
	/* book-rand */
	.book-rand {grid-template-columns: repeat(4, 1fr);column-gap: 1rem;}
	.book-rand a {flex: 1 1 25%;}
	/* sub-menu */
	.sub-menu {display: flex;flex: 1;display: flex;border: none;margin-bottom: 0;}
	.sub-menu > li {position: relative;margin: 0 .75rem;}
	.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(--white);}
	.sub-menu li ul {position: absolute;top: 200%;left: 50%;padding: 0;margin: 0;background-color: var(--white);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;border-top: none;}
	.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: .5rem 1rem;color: var(--base);}
	.sub-menu li ul li a:hover {background-color: var(--bdbg);}
	.sub-menu li:hover > ul {display: block;visibility: visible;opacity: 1;top: 100%;}
	/* detail */
	.detail {row-gap: 1rem;font-size: 0.875rem;}
	.detail dl {width: 25%;}
	.detail .feather {width: 1rem;height: 1rem;}
	/* category list */
    .category-list {grid-template-columns: repeat(3,1fr);}
}