@charset 'UTF-8';
@font-face {
    font-family: 'yahei';
    src: url('/public/font/font.eot');
    src: url('/public/font/font.eot?#iefix') format('embedded-opentype'),
    url('/public/font/font.ttf') format('truetype'),
    url('/public/font/font.woff') format('woff'),
    url('/public/font/font.svg') format('svg');
}

:root {
    --bg: #eef4e6;
    --bg-2: #f7f9ef;
    --card: #fdfdf5;
    --ink: #2f3b2f;
    --muted: #5f6a5f;
    --accent: #3e7a2f;
    --accent-2: #7aa64c;
    --border: #c8d8ba;
    --shadow: none;
    --radius: 6px;
    --radius-sm: 4px;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --font-display: 'yahei', 'Noto Serif SC', 'STSong', 'SimSun', serif;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    font-family: var(--font-display);
    color: var(--ink);
    background: linear-gradient(180deg, #f6f9ef 0%, #edf4e4 70%, #e6efda 100%);
    text-align: left;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

p {
    margin: 0 0 var(--space-3);
}

ul,
ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

.clear {
    clear: both;
}

.l,
.r,
.rank {
    float: none;
    width: 100%;
}

.visible-xs {
    display: none;
}

.hidden-xs {
    display: block;
}

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #e6f0d8;
    border-bottom: 1px solid #b8caa8;
    box-shadow: none;
}

.header_shell {
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--space-2) var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.header_bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
}

.header_logo {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-weight: 700;
}

.header_logo span {
    font-size: 1.25rem;
    letter-spacing: 0.02em;
    color: #2d4a23;
}

.header_logo p {
    margin: 0;
    font-size: 0.76rem;
    color: #5c6d58;
}

.header_logo_left,
.header_logo_right {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.header_logo_left li,
.header_logo_right li {
    list-style: none;
}

.header_logo_middle {
    flex: 1 1 240px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #3a4b37;
    text-align: left;
}

.header_logo_middle a {
    color: var(--ink);
}

.header_logo_right li a,
.header_logo_left li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid #b8caa8;
    background: #f7faef;
}

.header_logo_right #search-btn,
.header_logo_right #menu-btn,
.header_logo_left .back-btn,
.header_logo_left .book-btn,
.gotop {
    background-image: url(default.png);
    background-repeat: no-repeat;
    background-size: 296px 140px;
    text-indent: -9999px;
    filter: none;
}

.header_logo_right #search-btn {
    background-position: -142px -106px;
}

.header_logo_right #menu-btn {
    background-position: -110px -106px;
}

.header_logo_left .back-btn {
    background-position: -80px -106px;
}

.header_logo_left .book-btn {
    background-position: -243px -55px;
}

.header_account {
    margin-left: auto;
}

.header_login {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 0.78rem;
}

.header_search {
    display: none;
}

.header_search form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-2);
    background: #f8fbf0;
    border-radius: 999px;
    padding: 6px;
    border: 1px solid #b8caa8;
}

.header_search form input {
    border: none;
    padding: 8px 12px;
    font-size: 0.9rem;
    background: transparent;
}

.header_search form button {
    border: none;
    border-radius: 999px;
    padding: 8px 14px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.nav {
    display: none;
    border-top: 1px solid #3b6a2f;
    background: linear-gradient(180deg, #4a7d36 0%, #3d6e2e 100%);
}

.nav ul {
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--space-1) var(--space-4);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1);
}

.nav li a {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.9rem;
    color: #f2f7e8;
    transition: all 0.2s;
}

.nav li a:hover {
    background: rgba(255, 255, 255, 0.28);
    color: #ffffff;
}

#main,
.box_con,
#firendlink {
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--space-3) var(--space-4);
    text-align: left;
}

#main {
    display: grid;
    gap: var(--space-2);
}

.main-height {
    min-height: calc(100vh - 220px);
}

#hotcontent,
#newscontent,
.novelslist,
.novelslist2,
.box_con {
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: none;
    padding: var(--space-2);
}

#hotcontent {
    display: grid;
    gap: var(--space-2);
}

#hotcontent.home-hero {
    padding: var(--space-3);
}

#hotcontent.home-hero .home-feature-list {
    display: grid;
    gap: var(--space-2);
}

#hotcontent.home-hero .home-feature-list .item,
#hotcontent.home-hero .home-rank-list li {
    background: #ffffff;
    border-radius: var(--radius-sm);
    border: 1px solid #d7e5c8;
    padding: var(--space-3);
    transition: all 0.3s;
}

#hotcontent.home-hero .home-feature-list .item:hover {
    box-shadow: none;
    transform: none;
}

#hotcontent .l,
#hotcontent .r,
#newscontent .l,
#newscontent .r {
    background: #ffffff;
    border-radius: var(--radius-sm);
    padding: var(--space-3);
    border: 1px solid #d7e5c8;
}

#hotcontent h2,
#newscontent h2,
.novelslist .content h2,
.newscontent h2,
.newslist h2,
#list dt,
.con_top {
    margin: 0 0 var(--space-2);
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    font-size: 1.05rem;
    font-weight: 700;
    text-align: left;
    background: linear-gradient(90deg, #e2f0d2 0%, #f7fbef 100%);
    border: 1px solid #c9d8b9;
}

#hotcontent .item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-2);
    align-items: start;
}

#hotcontent .item dl,
#hotcontent .item dl dt,
#hotcontent .item dl dd {
    margin: 0;
    text-align: left;
}

#hotcontent .item .image img,
#maininfo #fmimg img,
#sidebar img {
    border-radius: var(--radius-sm);
    border: 1px solid #c9d8b9;
    box-shadow: none;
    object-fit: cover;
}

#hotcontent .item dl dt {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

#hotcontent .item dl dd {
    font-size: 0.84rem;
    color: var(--muted);
    line-height: 1.5;
}

#hotcontent .item dl .btm {
    font-size: 0.78rem;
    margin-top: 6px;
    color: var(--muted);
}

#hotcontent .item dl .btm em {
    border: 1px solid #c9d8b9;
    padding: 2px 6px;
    border-radius: 999px;
    margin-left: 6px;
    font-size: 0.68rem;
}

#hotcontent .l .item,
#hotcontent .r li,
#newscontent .l li,
#newscontent .r li,
.novelslist .content ul li,
.novelslist2 li,
#list dd {
    padding: var(--space-1) 0;
    border-bottom: 1px dashed #c9d8b9;
}

#hotcontent .r li,
#newscontent .r li,
#newscontent .l li {
    display: flex;
    gap: var(--space-2);
    font-size: 0.82rem;
    align-items: center;
}

#hotcontent .r li .s5,
#newscontent .r li .s5,
#newscontent .l li .s5 {
    text-align: left;
    color: var(--muted);
    font-size: 0.78rem;
}

#newscontent .l li .s1,
#newscontent .r li .s1 {
    width: 70px;
    color: var(--accent);
    font-weight: 600;
}

#newscontent .l li .s2,
#newscontent .r li .s2 {
    flex: 1 1 220px;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#newscontent .l li .s3 {
    flex: 1 1 220px;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#newscontent .l li .s4 {
    width: 90px;
    color: var(--muted);
    white-space: nowrap;
}

#newscontent .l li .s5,
#newscontent .r li .s5 {
    width: 90px;
    white-space: nowrap;
}

.novelslist {
    display: grid;
    gap: var(--space-2);
}

.novelslist .content {
    background: #f9fbf2;
    border-radius: var(--radius-sm);
    padding: var(--space-2);
    border: 1px solid #d7e5c8;
}

.novelslist .content ul li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--space-2);
    font-size: 0.86rem;
}

.novelslist .content ul li i {
    font-style: normal;
    color: var(--muted);
}

#newscontent {
    display: grid;
    gap: var(--space-2);
}

#newscontent .l,
#newscontent .r {
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

#newscontent .l ul li,
#newscontent .r ul li {
    background: #f9fbf2;
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    border: 1px solid #e1ecd3;
}

.con_top {
    font-size: 0.86rem;
    color: var(--muted);
}

.con_top i {
    margin: 0 4px;
    font-size: 0.7rem;
    color: var(--warm-muted);
}

#maininfo {
    display: grid;
    gap: var(--space-2);
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
}

#info h1 {
    margin: 0 0 6px;
    font-size: 1.4rem;
    text-align: left;
}

#info p {
    margin: 4px 0;
    color: var(--muted);
}

#intro,
.lastchapter {
    margin-top: var(--space-2);
    padding-top: var(--space-2);
    border-top: 1px dashed rgba(31, 37, 43, 0.2);
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--muted);
}

.readbtn {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-2);
}

.readbtn a,
.bottem1 a,
.bottem2 a,
#pagelink a,
.pages a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #c9d8b9;
    background: #f9fbf2;
    font-size: 0.82rem;
    color: var(--ink);
}

.readbtn .chapterlist {
    background: var(--accent);
    color: #fff;
    border-color: transparent;
}

#list {
    margin-top: var(--space-3);
}

#list dl {
    margin: 0;
}

#list dd {
    margin: 0;
    font-size: 0.86rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#list dd:after {
    content: "\f054";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--bi-muted);
}

#chaptercontent {
    font-size: 1rem;
    line-height: 1.8;
    color: #2a322a;
    letter-spacing: 0.01em;
}

.bookname {
    margin: var(--space-2) 0 var(--space-3);
    font-size: 1.35rem;
    text-align: left;
}

.bottem1,
.bottem2 {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin: var(--space-2) 0;
}

.readtj {
    margin: var(--space-2) 0;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    background: #edf4e3;
    color: var(--muted);
    text-align: left;
}

.readtj a {
    margin-right: 8px;
}

.pages,
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    padding: 0;
    margin: 0;
}

.pagination li {
    list-style: none;
    display: inline-flex;
}

.pagination li.active a {
    background: var(--accent);
    color: #fff;
    border-color: transparent;
}

.form-group {
    display: grid;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
}

.form-title {
    font-weight: 600;
}

.form-content input {
    width: 100%;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid #c9d8b9;
    background: #f9fbf2;
    font-size: 0.9rem;
}

.form-submit button {
    width: 100%;
    padding: 10px 16px;
    border-radius: 999px;
    border: none;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.novelslist2 ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.novelslist2 li {
    display: grid;
    grid-template-columns: 110px minmax(0, 1.5fr) minmax(0, 1.2fr) 120px 90px;
    gap: var(--space-2);
    align-items: center;
    font-size: 0.82rem;
    color: var(--muted);
}

.novelslist2 li span b {
    color: var(--ink);
}

.footer {
    margin-top: var(--space-4);
    padding: var(--space-4);
    color: var(--muted);
    text-align: left;
}

.footer_cont {
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--space-3) var(--space-4);
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: none;
    text-align: left;
}

.gotop {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-left: var(--space-2);
    border-radius: 999px;
    background-position: -42px -106px;
}

#firendlink {
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: none;
    color: var(--muted);
    text-align: left;
}

#firendlink a {
    color: var(--accent);
}

@media (min-width: 900px) {
    .header_search {
        display: block;
    }

    .nav {
        display: block !important;
    }

    #hotcontent.split {
        grid-template-columns: 2fr 1fr;
    }

    #hotcontent.home-hero .home-feature-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #newscontent {
        grid-template-columns: 1fr 1.3fr;
        align-items: start;
    }

    .novelslist {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #maininfo {
        grid-template-columns: 140px 1fr;
    }
}

@media (max-width: 899px) {
    .visible-xs {
        display: inline;
    }

    .hidden-xs {
        display: none;
    }

    .header_logo_middle {
        flex-basis: 100%;
    }

    #hotcontent .r li,
    #newscontent .r li,
    #newscontent .l li {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    #newscontent .l li .s1,
    #newscontent .r li .s1 {
        width: auto;
    }

    #newscontent .l li .s2,
    #newscontent .r li .s2,
    #newscontent .l li .s3 {
        flex: 1 1 100%;
        white-space: normal;
    }

    #newscontent .l li .s4,
    #newscontent .l li .s5,
    #newscontent .r li .s5 {
        width: auto;
    }

    .novelslist2 li {
        grid-template-columns: 1fr;
        align-items: start;
    }

    #main,
    .box_con,
    #firendlink {
        padding: var(--space-3);
    }
}

/* 移动端额外优化 */
@media (max-width: 899px) {
    body {
        font-size: 14px;
    }
    
    #hotcontent h2,
    #newscontent h2,
    .novelslist .content h2 {
        font-size: 1rem;
        padding: 8px 10px;
    }
    
    #hotcontent.home-hero .home-feature-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    #hotcontent .item .image img {
        width: 100px;
        height: 130px;
    }
    
    #hotcontent .item dl dt {
        font-size: 0.95rem;
    }
    
    #hotcontent .item dl dd {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .header_search form {
        padding: 4px;
    }
    
    .header_search form input {
        font-size: 0.875rem;
        padding: 6px 10px;
    }
    
    .header_search form button {
        padding: 6px 12px;
        font-size: 0.875rem;
    }
}

/* 链接悬停效果 */
a {
    transition: color 0.2s;
}

a:hover {
    color: var(--accent);
}

/* 标题样式优化 */
h2 {
    color: var(--ink);
    border-left: 3px solid var(--accent);
    padding-left: 10px;
}

/* 列表项悬停效果 */
#hotcontent .r li:hover,
#newscontent .l li:hover,
#newscontent .r li:hover {
    background-color: rgba(62, 122, 47, 0.06);
}

#hotcontent .r li:nth-child(odd),
#newscontent .l li:nth-child(odd),
#newscontent .r li:nth-child(odd),
.novelslist .content ul li:nth-child(odd),
.novelslist2 li:nth-child(odd) {
    background-color: #f4f9ec;
}

/* Biquge-style overrides */
:root {
    --bi-pink: #e84c7b;
    --bi-pink-dark: #d83f6d;
    --bi-blue: #4aa3ff;
    --bi-bg: #f2f4f7;
    --bi-card: #ffffff;
    --bi-line: #e6e9ee;
    --bi-text: #2d2f33;
    --bi-muted: #8a94a3;
}

body {
    background: var(--bi-bg);
    color: var(--bi-text);
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

h2 {
    border-left: none;
    padding-left: 0;
}

.header {
    background: #fff;
    border-bottom: 1px solid var(--bi-line);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.header_shell {
    max-width: 980px;
    margin: 0 auto;
    padding: 0;
    gap: 0;
}

.header_bar {
    padding: 12px 12px;
    align-items: center;
    gap: 12px;
}

.header_logo {
    flex: 0 0 auto;
}

.header_logo span {
    color: var(--bi-pink);
    font-size: 1.15rem;
    letter-spacing: 0.02em;
    font-weight: 700;
}

.header_logo_middle {
    flex: 1 1 auto;
    color: #333;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
}

.header_logo_middle a {
    color: #333;
}

.header_logo p {
    display: none;
}

.header_logo a,
.header_logo a:visited {
    color: var(--bi-pink);
}

.header_logo_left {
    gap: 6px;
}

.header_logo_left li a {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid var(--bi-line);
    background: #f8f9fb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header_logo_left .back-btn,
.header_logo_left .book-btn {
    width: auto;
    padding: 0 10px;
    text-indent: 0;
    background-image: none;
    color: #666;
    font-size: 0.8rem;
}

.header_logo_left .back-btn::before {
    content: "←";
    margin-right: 4px;
    font-weight: 700;
}

.header_logo_right {
    gap: 8px;
}

.header_logo_right li a {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid var(--bi-line);
    background: #f8f9fb;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header_logo_right li a i {
    font-size: 14px;
}

.header_account {
    display: block;
    margin-left: auto;
}

.header_account a {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 20px;
    background: var(--bi-pink);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
}

.header_search {
    display: block;
    background: #fff;
    padding: 0 12px 12px;
}

.header_search form {
    grid-template-columns: 1fr 74px;
    gap: 8px;
    background: #f8f9fb;
    border: 1px solid var(--bi-line);
    border-radius: 6px;
    padding: 6px 8px;
}

.header_search form input,
.header_search form input.search {
    font-size: 0.9rem;
    color: var(--bi-text);
}

.header_search form button {
    background: var(--bi-blue);
    font-size: 0.88rem;
}

.nav {
    display: block;
    border-top: none;
    border-bottom: 1px solid var(--bi-line);
    background: #f7f8fb;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

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

.nav ul {
    max-width: none;
    margin: 0;
    padding: 10px 12px 0;
    gap: 0;
    justify-content: flex-start;
    flex-wrap: nowrap;
    white-space: nowrap;
    display: flex;
}

.nav li {
    flex: 0 0 auto;
    text-align: center;
}

.nav li a {
    display: inline-flex;
    justify-content: center;
    padding: 8px 16px 12px;
    background: transparent;
    color: #6b7280;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s;
}

.nav li a.active {
    color: var(--bi-blue) !important;
    border-color: var(--bi-blue) !important;
}

.nav li a:hover {
    background: transparent;
    color: #1f2937;
}

#main,
.box_con,
#firendlink {
    max-width: 980px;
    margin: 0 auto;
    padding: 12px 12px 24px;
}

#hotcontent,
#newscontent,
.novelslist,
.novelslist2,
.box_con {
    background: var(--bi-card);
    border: 1px solid var(--bi-line);
    border-radius: 6px;
    box-shadow: none;
    padding: 10px 12px;
}

.section-title {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #2f3a4a;
    margin: 0 0 8px;
    padding: 6px 4px 6px 14px;
    background: transparent;
    border: none;
}

.section-title::before {
    display: none;
}

.section-title .more {
    color: #7db6ff;
    font-size: 0.85rem;
}

#hotcontent.home-hero {
    padding: 12px;
    background: #fff;
}

#hotcontent.home-hero .home-feature-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

#hotcontent.home-hero .home-feature-list .item {
    border: none;
    padding: 0;
    background: transparent;
}

#hotcontent.home-hero .home-feature-list .item:hover {
    box-shadow: none;
}

#hotcontent.home-hero .home-feature-list .item .image img {
    width: 100%;
    height: 110px;
    border-radius: 4px;
    border: 1px solid var(--bi-line);
    box-shadow: none;
}

#hotcontent.home-hero .home-feature-list .item dl dd,
#hotcontent.home-hero .home-feature-list .item dl .btm em {
    display: none;
}

#hotcontent.home-hero .home-feature-list .item dl dt {
    font-size: 0.82rem;
    margin-top: 6px;
}

#hotcontent.home-hero .home-feature-list .item dl {
    text-align: center;
}

#hotcontent.home-hero .home-feature-list .item dl .btm {
    font-size: 0.72rem;
    color: var(--bi-muted);
    margin-top: 4px;
    text-align: center;
}

.home-rank-list {
    display: grid;
    gap: 8px;
}

.home-rank-list .rank-top {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--bi-line);
    border-radius: 6px;
    background: #fff;
}

.home-rank-list .rank-top .rank-num {
    width: 20px;
    height: 20px;
    background: #ff9f1a;
    color: #fff;
    font-size: 0.72rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}

.home-rank-list .rank-top img {
    width: 64px;
    height: 86px;
    border-radius: 4px;
    border: 1px solid var(--bi-line);
}

.home-rank-list .rank-top .rank-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.home-rank-list .rank-top .rank-info h3 {
    margin: 0;
    font-size: 0.9rem;
}

.home-rank-list .rank-top .rank-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.home-rank-list .rank-top .tag {
    font-size: 0.68rem;
    padding: 2px 6px;
    border-radius: 10px;
    color: #fff;
}

.tag-blue {
    background: #4aa3ff;
}

.tag-green {
    background: #22c55e;
}

.tag-orange {
    background: #ff8a3d;
}

.home-rank-list .rank-top .rank-desc {
    font-size: 0.75rem;
    color: var(--bi-muted);
    line-height: 1.5;
}

.home-rank-list .rank-row {
    display: grid;
    grid-template-columns: 22px 1fr auto;
    gap: 8px;
    align-items: center;
    padding: 8px 6px;
    border-bottom: 1px solid #f1f2f5;
}

.home-rank-list .rank-row:last-child {
    border-bottom: none;
}

.home-rank-list .rank-row .rank-num {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background: #f3f4f6;
    color: #ef4444;
    font-size: 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.home-rank-list .rank-row .rank-title {
    font-size: 0.84rem;
    color: #333;
}

.home-rank-list .rank-row .rank-author {
    font-size: 0.76rem;
    color: var(--bi-muted);
}

#newscontent .l ul li,
#newscontent .r ul li,
#hotcontent .r li,
#newscontent .l li {
    border: none;
    border-bottom: 1px solid #f1f2f5;
    padding: 8px 6px;
    background: #fff;
}

#newscontent .l li {
    display: grid;
    grid-template-columns: 54px 1fr auto;
    gap: 8px;
    align-items: center;
}

#newscontent .l li .s5 {
    order: 1;
    width: auto;
    color: #4aa3ff;
    font-size: 0.76rem;
    font-weight: 600;
}

#newscontent .l li .s2 {
    order: 2;
    font-size: 0.84rem;
    color: #333;
}

#newscontent .l li .s4 {
    order: 3;
    width: auto;
    font-size: 0.76rem;
    color: var(--bi-muted);
}

#newscontent .l li .s1,
#newscontent .l li .s3 {
    display: none;
}

#newscontent .r li {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
}

#newscontent .r li .s1 {
    display: none;
}

#newscontent .r li .s2 {
    font-size: 0.84rem;
}

#newscontent .r li .s5 {
    color: var(--bi-muted);
}

.novelslist .content {
    background: #fff;
    border: 1px solid var(--bi-line);
}

.novelslist .content ul li {
    border-bottom: 1px solid #f1f2f5;
    padding: 8px 6px;
}

.box_con .con_top {
    font-size: 0.82rem;
    color: #6b7280;
    background: #f4f6f8;
    padding: 8px 10px;
    border-radius: 4px;
    border: 1px solid var(--bi-line);
}

#maininfo {
    grid-template-columns: 90px 1fr;
    gap: 12px;
}

#info h1 {
    font-size: 1.1rem;
    color: #1d4ed8;
}

#info .book-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0 8px;
}

#info .book-tags .tag {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    color: #fff;
}

#intro {
    background: #f9fbff;
    border: 1px solid #e6efff;
    border-radius: 6px;
    padding: 8px 10px;
}

.readbtn {
    flex-wrap: nowrap;
    gap: 8px;
}

.readbtn a {
    flex: 1 1 auto;
    border-radius: 6px;
    background: #fff;
    border: 1px solid var(--bi-line);
    font-size: 0.82rem;
}

.readbtn .chapterlist {
    background: var(--bi-pink);
    color: #fff;
}

#list dd {
    padding: 8px 6px;
    border-bottom: 1px solid #f1f2f5;
    font-size: 0.84rem;
}

#chaptercontent {
    font-size: 1rem;
    color: #2f3237;
    line-height: 1.85;
}

.bookname {
    font-size: 1.05rem;
    margin: 12px 0;
    color: #1f2937;
}

.bottem1 a,
.bottem2 a {
    border-radius: 6px;
    background: #fff;
    border: 1px solid var(--bi-line);
}

.readtj {
    background: #f5f8ff;
    border: 1px solid #e6efff;
    border-radius: 6px;
}

.footer_cont,
#firendlink {
    background: #fff;
    border: 1px solid var(--bi-line);
    border-radius: 6px;
}

@media (min-width: 900px) {
    #hotcontent.home-hero .home-feature-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #maininfo {
        grid-template-columns: 120px 1fr;
    }
}

@media (max-width: 899px) {
    .header_search {
        padding: 8px 10px 10px;
    }

    .nav ul {
        padding: 6px 10px 0;
    }

    #hotcontent.home-hero .home-feature-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Force overrides for biquge layout */
.nav {
    background: #f7f8fb !important;
}

.header_search form button {
    background: var(--bi-blue) !important;
}

#hotcontent.home-hero .home-feature-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.section-title::before {
    display: none !important;
}

.home-rank-list .rank-top {
    display: grid !important;
    grid-template-columns: 64px 1fr !important;
    align-items: start !important;
}

.home-rank-list .rank-top > div:first-child {
    justify-self: start !important;
}

.home-rank-list .rank-top .rank-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}

.home-rank-list .rank-top .rank-num {
    order: 0 !important;
}

/* 移动端强制2列显示 */
@media (max-width: 899px) {
    #hotcontent.home-hero .home-feature-list {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }
}

/* Warm homepage inspired style */
:root {
    --warm-bg: #f6f1ea;
    --warm-card: #ffffff;
    --warm-line: #e7d8c3;
    --warm-ink: #2f2417;
    --warm-muted: #7b6650;
    --warm-accent: #b97a39;
    --warm-accent-2: #f3ddbf;
    --warm-shadow: 0 8px 20px rgba(60, 42, 24, 0.08);
    --bg: var(--warm-bg);
    --card: var(--warm-card);
    --ink: var(--warm-ink);
    --muted: var(--warm-muted);
    --accent: var(--warm-accent);
    --accent-2: var(--warm-accent-2);
    --border: var(--warm-line);
    --bi-bg: var(--warm-bg);
    --bi-card: var(--warm-card);
    --bi-line: var(--warm-line);
    --bi-text: var(--warm-ink);
    --bi-muted: var(--warm-muted);
    --bi-blue: var(--warm-accent);
    --bi-pink: var(--warm-accent);
    --bi-pink-dark: #9f6732;
}

body {
    background: radial-gradient(circle at top, #f9f3ea 0%, #f5efe6 45%, #f2e8db 100%);
    color: var(--warm-ink);
    font-family: "Kaiti SC", "STKaiti", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", serif;
}

.header {
    background: linear-gradient(90deg, #a96c2f 0%, #b87a3a 45%, #a96c2f 100%);
    border-bottom: none;
    box-shadow: none;
}

.header_bar {
    padding: 10px 12px;
}

.header_logo {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
}

.header_logo .logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f3ddbf, #f7e9d4);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: inset 0 0 0 1px rgba(183, 122, 57, 0.2);
    display: inline-flex;
}

.header_logo span,
.header_logo p {
    display: none;
}

.header_logo_middle {
    color: #fff;
}

.header_logo_right li a {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
}

.header_account a {
    background: #f7e3c6;
    color: #7a4a1a;
    border-radius: 999px;
    font-weight: 700;
}

.nav {
    background: #b97a39 !important;
    border-bottom: none;
}

.nav ul {
    padding: 8px 10px 0;
}

.nav li a {
    color: #f6ead8;
    font-weight: 600;
    gap: 6px;
}

.nav li a.active {
    color: #fff !important;
    border-color: #fff !important;
}

.nav li a i {
    font-size: 0.78rem;
    opacity: 0.9;
}

.nav li a span {
    line-height: 1;
}

.section-title .more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 900px) {
    .nav {
        overflow: visible;
    }

    .nav ul {
        width: fit-content;
        max-width: 1000px;
        margin: 0 auto;
        justify-content: center;
        padding: 8px 16px 0;
    }
}

.section-title .more i {
    font-size: 0.8rem;
}

body.home .header_search {
    display: none;
}

body.home .home-main {
    gap: 14px;
}

body.home .home-hero-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    display: grid;
    gap: 12px;
    animation: fadeUp 0.6s ease both;
}

.hero-banner {
    background: transparent;
    border-radius: 0;
    padding: 0;
}

.hero-card {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 12px;
    align-items: center;
}

.hero-cover img {
    width: 110px;
    height: 150px;
    border-radius: 10px;
    border: 1px solid var(--warm-line);
    object-fit: cover;
}

.hero-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--warm-accent);
    color: #fff;
    font-size: 0.7rem;
    width: fit-content;
}

.hero-title {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.3;
}

.hero-desc {
    margin: 0;
    font-size: 0.82rem;
    color: var(--warm-muted);
    line-height: 1.45;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.72rem;
    color: var(--warm-muted);
}

.home-search {
    margin-top: 10px;
}

.home-search .search-form {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    align-items: center;
    background: #fffaf4;
    border: 1px solid var(--warm-line);
    border-radius: 999px;
    padding: 6px 10px;
}

.home-search .search-form i {
    color: var(--warm-muted);
    font-size: 0.9rem;
}

.home-search .search-form input {
    border: none;
    background: transparent;
    font-size: 0.9rem;
    padding: 6px 0;
    color: var(--warm-ink);
}

.home-search .search-form input:focus {
    outline: none;
}

.home-search .search-form button {
    border: none;
    border-radius: 999px;
    background: var(--warm-accent);
    color: #fff;
    font-weight: 600;
    padding: 6px 14px;
    cursor: pointer;
}

.quick-links {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    text-align: center;
}

.quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: var(--warm-ink);
}

.quick-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: #f3e2cc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #b97a39;
    box-shadow: inset 0 0 0 1px rgba(183, 122, 57, 0.15);
}

.quick-item:nth-child(2n) .quick-icon {
    background: #f7ead7;
}

body.home .section-title {
    color: var(--warm-ink);
    font-size: 0.95rem;
}

body.home .section-title .more {
    color: var(--warm-muted);
}

.section-title {
    background: linear-gradient(90deg, #f7ead7 0%, #fff7ec 100%);
    border-radius: 10px;
    padding: 8px 12px;
}

.section-title .more {
    color: #b47a3d;
}

/* 全站标题背景从绿色改为暖色 */
#hotcontent h2,
#newscontent h2,
.novelslist .content h2,
.newscontent h2,
.newslist h2,
#list dt,
.con_top {
    background: linear-gradient(90deg, #f7ead7 0%, #fff7ec 100%);
    border: 1px solid var(--warm-line);
    color: var(--warm-ink);
}

body.home #hotcontent,
body.home #newscontent {
    border-radius: 14px;
    border: 1px solid var(--warm-line);
    box-shadow: var(--warm-shadow);
}

body.home #hotcontent.home-hero .home-feature-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.home #hotcontent.home-hero .home-feature-list .item {
    border: none;
    background: transparent;
    padding: 0;
}

body.home #hotcontent.home-hero .home-feature-list .item .image img {
    height: 140px;
}

body.home #hotcontent.home-hero .home-feature-list .item dl {
    text-align: center;
}

body.home #hotcontent.home-hero .home-feature-list .item dl dd,
body.home #hotcontent.home-hero .home-feature-list .item dl .btm {
    display: none;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .quick-links {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    body.home #hotcontent.home-hero .home-feature-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-card {
        grid-template-columns: 90px 1fr;
    }

    .hero-cover img {
        width: 90px;
        height: 120px;
    }
}

/* 隐藏全本好书第一个排名数字 */
.home-rank-list .rank-top .rank-num {
    display: none !important;
}
