*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "宋体";
    font-size: 14px;
}
:root{
    --main-color:#FF7D00;
    --book-back-color:#fafafa; 
}

a {
    text-decoration: none;
    color: inherit;
}

a:focus {
    outline: none;
}
.disabled-link {
    color: #8F8F8F;
    pointer-events: none;  /* 禁用所有鼠标事件 */
    opacity: 0.5;          /* 半透明效果（灰色感） */
    cursor: default;       /* 鼠标指针变为默认箭头 */
    text-decoration: none;  /* 可选：移除下划线 */
}
body {
    display: flex;
    height: 100vh;
    flex-direction: column;
}
.over_flow_hidden,.book_chapter{
    overflow: hidden;
    white-space: nowrap;
}

.img_lazy_load {
    background-image: url("./img/book.jpg");
}

header {
    /* position: fixed; */
    left: 0px;
    top: 0px;
    width: 100%;
    height: 124px;
    opacity: 1;
    /* background: #F8F9FD;  */
    background-color: #EEF2F9;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999999;
}

main {
    display: flex;
    flex-direction: column;
    /* margin-top: 124px; */
    background: #fff;
}

/* 可选：美化滚动条样式 */
main::-webkit-scrollbar {
    width: 8px;
}

main::-webkit-scrollbar-track {
    background: #f1f1f1;
}

main::-webkit-scrollbar-thumb {
    background: #888;
}

.top {
    display: flex;
    justify-content: space-between;
    padding: 6px 12px 0px;
    height: 50px;
}
.top_log{
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    color:var(--main-color)
}

.top>div:first-child {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    color:var(--main-color)
}

.top span:first-child {
    font-size: 20px;
    font-family: "微软雅黑", Microsoft Yahei, simsun, arial, sans-serif;
    font-weight: bolder;
}

.top span:last-child {
    font-size: 11px;
    font-weight: 800;
    height: 13px;
    color: #646262;
    font-family: 'Courier New', Courier, monospace;
}

.top>div:last-child {
    display: flex;
    justify-content: end;
    height: 36px;
}

.top>div:last-child a {
    display: inline-flex;
    height: 34px;
    width: 34px;
    border-radius: 17px;
    font-size: 12px;
    align-items: center;
    justify-content: center;
    word-break: break-all;
    margin-left: 8px;
    text-align: center;
    /* 文本水平居中（多行时） */
    white-space: normal;
    /* 允许换行 */
    line-height: 14px;
    background-color: var(--main-color); /*#9b9a9a;*/
    font-family: "微软雅黑", Microsoft Yahei, simsun, arial, sans-serif;
    text-decoration: none;
    color: #fff;
    font-weight: 500;
}


.search {
    height: 36px;
    margin: auto;
    /* 居中 */
    padding: 0 12px;
    /* 左右padding */
    margin-top: 5px;
}

.search form {
    display: flex;
    height: 36px;
}

.search form input:first-child {
    flex: 1;
    border-radius: 6px 0 0 6px;
    /* 左上和左下圆角 */
    border: 1px solid var(--main-color);
    padding: 10px;
    outline: none;
    background-color: #F5F5F5;


}

.search input:last-child {
    flex: 0 0 60px;
    padding: 8px;
    background-color: var(--main-color);
    color: white;
    border: 1px solid var(--main-color);
    border-radius: 0 6px 6px 0;
    transition: backgroup-color 0.3s;
    cursor: pointer;
    font-weight: 500;
    font-family: "微软雅黑", Microsoft Yahei, simsun, arial, sans-serif;

}

.breadcrumb {
    display: flex;
    color: #333;
    height: 28px;
    align-items: center;
    justify-content: left;
    margin: 3px 0px;
}

.breadcrumb ol {
    list-style: none;
    font-size: 14px;
    padding: 0 10px;

}

.breadcrumb li {
    display: inline-block;
}

.breadcrumb li::after {
    content: ">>";
}

.breadcrumb li:last-child:after {
    content: "";
}



/* 默认链接样式 */
.breadcrumb li a {
    color: #4B5563;
    text-decoration: none;
}

/* 鼠标悬停效果（可选） */
.breadcrumb li a:hover {
    text-decoration: underline;
}

/* 最后一个非链接项样式 */
.breadcrumb li.active {
    color: var(--main-color);
    font-weight: 500;
}

.menu {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-around;
    padding: 10px;
    background: #f8f9fa;
}

.menu a {
    display: inline-flex;
    flex-flow: column;
    align-items: center;
    text-decoration: none;

    height: 52px;
    width: 73px;
    text-align: center;
    border-radius: 8px;
}

.menu a span {
    height: 16px;
    font-size: 12px;
    line-height: 16px;
    color: #000000;
    font-weight: 600;
}

.menu a img {
    height: 32px;
    width: 32px;
    border-radius: 12px;
}

.block_title {
    display: flex;
    justify-content: space-between;
    padding: 5px 10px;
}

.block_title h2 {
    font-size: 18px;
    font-family: "微软黑体";
    color: var(--main-color);
}

.block_title div {
    display: flex;
}

book_info2 .block_title div span {
    color: #666;
    font-size: 12px;
    align-self: center;
}

.block_title nav {
    color:var(--main-color);
}

.more_link {
    font-size: 14px;
    font-family: "Roboto";
    color: var(--main-color);
    text-decoration: none;
    letter-spacing: 1px;
}

.more_link::after {
    content: ">>";
}

.no_jt.more_link::after {
    content: "";
}

.div_title {
    display: flex;
    justify-content: space-between;
    padding-right: 8px;
}

.heng_center {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 5px;
}

.block_img_scroll {
    display: flex;
    height: 130px;
    overflow-y: hidden;
}

.block_img_scroll article {
    display: flex;
    flex-direction: column;
    margin: 3px 5px;
    justify-content: space-between;
    text-align: center;
}

.block_img_scroll img {
    height: 105px;
    width: 78px;
    border-radius: 6px;

}

.block_img_scroll h3 {
    font-size: 12px;
    font-weight: bold;

}



.hot-recommend-content>ul {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    list-style-type: none;
    padding-right: 10px;
}

.hot-recommend-content>ul li {
    margin-left: 10px;
    align-items: center;
}

.hot-recommend-content>ul li img {
    width: 96px;
    height: 128px;
    border-radius: 10px;
}

.hot-recommend-content>ul li h3 {
    font-size: 14px;
    line-height: 25px;
    color: #000000;
}


.hot-recommend-content>ul li article {
    display: flex;
    flex-direction: column;
}

.last-chapter,
.author {
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-top: 3px;
    font-size: 14px;
    display: inline-block;
}

.author {
    display: inline-block;
    width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

}

.last-chapter span,
.author span {
    color: #FF9F1C;
    font-weight: 600;
}

.last-chapter {
    height: 30px;
    white-space: normal;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 类型推荐和周阅读榜复用热门推荐样式 */
.category-recommend,
.weekly-ranking {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
}

/* 最新更新样式 */
.latest-updates {
    display: flex;
    flex-direction: column;
}

.latest-updates article{
    display: grid;
    grid-template-columns: 40px auto;
    grid-template-rows: repeat(3,18px);
    margin: 3px 3px;
    gap: 1px 3px;
    font-size: 12px;
    color: #555;
    background-color: var(--book-back-color);
}

.latest-updates article h1{
    font-size: 13px;
}

.latest-updates article>:first-child{
    grid-area: 1/1/4/2;
}


/* Footer样式 */
footer {
    background-color: #f8f9fa;
    padding: 15px 10px;
    margin-top: 20px;
}

.friend-links h4 {
    font-size: 16px;
    margin-bottom: 10px;
}

.friend-links ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
}

.friend-links li {
    margin-right: 15px;
    margin-bottom: 5px;
}

.friend-links a {
    color: #666;
    font-size: 14px;
}


.disclaimer {
    margin-top: 15px;
    font-size: 12px;
    color: #888;
    text-align: center;
}

/* book info */

.book_info {
    display: grid;
    margin-top: 5px;
    grid-template-columns: 106px auto;
    grid-template-rows: repeat(7, 25px);
    align-items: center;
    gap: 2px 8px;
}

.book_info>:first-child {
    grid-area: 1/1/6/2;
    padding: 0 8px;

}

.book_img_l{
    width: 90px;
    height: 120px;
    border-radius: 8px;
}
.book_img_m{
    width: 85px;
    height: 110px;
    border-radius: 8px;
}

.book_img_s{
    width: 40px;
    height: 60px;
    border-radius: 3px;
}

.book_img_ss{
    width: 35px;
    height: 50px;
    border-radius: 3px;
}

.book_read {
    grid-area: 6/1/8/3;
    display: flex;
    justify-content: center;
    align-items: center;
}

.book_read a {
    display: block;
    margin: 0 20px;
    height: 32px;
    width: 120px;
    border: 1px solid rgb(255, 125, 0);
    border-radius: 5px;
    line-height: 30px;
    text-align: center;
    font-family: '黑体';
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 3px;
}

.book_read a:nth-child(1) {
    color: rgb(255, 125, 0);
}

.book_read a:nth-child(2) {
    background-color: rgb(255, 125, 0);
    color: #fff;
}

.book_name {
    font-size: 18px;
    margin-left: 8px;
    color: var(--main-color);
    font-weight: bolder;
}
.book_name_l{
    display:inline-flex;
    word-break: break-all;
    text-decoration: none;
    overflow: hidden;
    white-space: nowrap;
}

.book_chapter a {
    color: var(--main-color);
}

.book_intro {
    display: flex;
    flex-direction: column;
    flex: 1;
    font-size: 14px;
    line-height: 24px;
    padding: 8px;
    max-height: 225px;
    font-family: '宋体';
    overflow: hidden;
    text-indent: 2em;
}

.title_b {
    text-indent: 0;
    font-family: '黑体';
    font-weight: bold;
}

.margin_top_bottom10 {
    margin: 10px 0;
}

.chapter_list li {
    line-height: 34px;
    font-size: 13px;
    border-bottom: 1px solid #ccc;
    padding-left: 8px;
    overflow: hidden;
    white-space: nowrap;
}

.chapter_list li a {
    /* font-family: 'Verdana, Geneva, Tahoma, sans-serif'; */
    font-family: '宋体';
    display: block;
    width: 100%;
    height: 100%;
    color: rgb(51, 51, 51);
}

.book3 {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

.book3>article {
    display: grid;
    grid-template-rows: 150px repeat(3, 22px);
    grid-template-columns:105px;
    text-align: center;
    margin-top: 5px;
    background-color: var(--book-back-color);
    border-radius: 8px;
    padding: 8px;
}

.book3 article div {
    display: flex;
}

.book3 article span {
    line-height: 20px;
    text-align: center;
    font-size: 13px;
}

.book3_author {
    display: inline-flex;
    justify-content: start;
    width: 100px;
    overflow: hidden;
    white-space: nowrap;
    word-break: break-all;
    line-height: 22px;

}

.book3_book_name {
    display: inline-flex;
    height: 22px;
    width: 109px;
    align-items: center;
    justify-content: start;
    word-break: break-all;
    text-align: center;
    line-height: 22px;
    text-decoration: none;
    font-weight: 500;
    overflow: hidden;
    white-space: nowrap;
    color: var(--main-color);

}
.book3 article img {
    height: 145px;
    width: 90px;
    border-radius: 6px;
} 

.chapter_all {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    list-style: none;
}

.read_tool {
    display: grid;
    grid-template-columns: repeat(5, 60px);
    grid-template-rows: 60px;
    height: 60px;
    width: 100%;
    /* background-color: #888; */
    align-items: center;
    justify-content: center;
    place-items: center;

}


.read_tool a {
    display: inline-block;
    width: 42px;
    height: 35px;
    border: 1px solid var(--main-color);
    background-color: var(--main-color);
    border-radius: 8px;
    font-family: '黑体';
    font-weight: bold;
    color: #fff;
    line-height: 35px;
    text-align: center;
    justify-items: center;
    padding: 0;
}

#deng {
    background-color: #000;
    border: 1px solid #000;
}

a.size11 {
    color: #000;
    background-color: #fff;
}

.chapter_page {
    display: flex;
    justify-content: center;
    height: 40px;
    align-items: center;
}

.chapter_page a {
    margin-left: 20px;
}
.read_style{
    background-color: #E9FAFF;

}

.chapter_content {
    color: #333;
    font-size: 20px;
    line-height: 35px;
    font-family: "Microsoft YaHei", Arial;
    margin: 5px 10px;
}
.chapter_title{
    color: #333;
    display: flex;
    font-size: 25px;
    justify-content: center;
    padding: 8px 0;
}

.chapter_content p {
    color: #333;
    font-size: 20px;
    line-height: 35px;
    font-family: "Microsoft YaHei", Arial;
}


/* home */
.book1{
    display: flex;
    flex-direction: column;
}
.book1 article{
    display: grid;
    grid-template-columns: 90px auto;
    grid-template-rows: 35px 18px 38px 18px; 
    align-items: center;
    justify-content: start;
    margin: 3px 5px;
    gap: 1px 8px;
    border-radius: 8px;
    background-color: var(--book-back-color);
    color: #555;
}


.book1 article >:first-child {
    grid-area: 1/1/5/2;
}

.jianjie{
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5em;
    max-lines: 3em;
}
/* book2_scroll 是两行可以滚动的 */
.book2_scroll{
    display: grid;
    grid-template-rows: 132px 132px;
    grid-auto-columns: 220px;
    grid-auto-flow: column;
    overflow-x: auto;
    padding: 2px 5px;
    gap: 5px;
}
/* book2是两列不可以滚动的详情 */
.book2{
    display: grid;
    grid-template-rows: 132px;
    grid-template-columns:repeat(2,1fr);
    grid-auto-flow: row;
    padding: 5px 5px;
    gap: 8px;
}

.book2_scroll article,.book2 article{
    display: grid;
    grid-template-rows: 25px                                                                                                                                                                    repeat(5,19px);
    grid-template-columns: 40px auto; 
    gap: 2px 5px;
    color: #555;
    border-radius: 5px;
    background-color: var(--book-back-color);
}

.book2_scroll article>:first-child,.book2 article>:first-child{
    grid-area: 1/1/2/3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book2_scroll article>:nth-child(2),.book2 article>:nth-child(2){
    grid-area: 2/1/5/2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book2_scroll article>:nth-child(4),.book2 article>:nth-child(4){
    grid-area: 3/2/5/3;   
}
.book2_scroll article>:nth-child(5),.book2 article>:nth-child(5){
    grid-area: 5/1/6/3;   
}
.book2_scroll article>:nth-child(6),.book2 article>:nth-child(6){
    grid-area: 6/1/7/3;   
}

.scroll_trip{
    height: 32px;
    border-top: 1px solid #D4D3D3;
    line-height: 30px;
    font-size: 13px;
    color: var(--main-color);
    margin-left: 10px;
    margin-top: 5px;
}

.scroll_trip::before{
    content: "<<";
}

.big_menu{
    display: grid;
    grid-template-columns: repeat(4,1fr);
    grid-auto-rows: 40px;
    grid-auto-flow: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    padding: 0 15px;
}

.big_menu a{
    display: inline-flex;
    height: 34px;
    width: 80px;
    border-radius: 8px;
    font-size: 12px;
    align-items: center;
    justify-content: center;
    word-break: break-all;
    margin-left: 8px;
    text-align: center;
    /* 文本水平居中（多行时） */
    white-space: normal;
    /* 允许换行 */
    line-height: 14px;
     /* background-color: var(--main-color);  */
     border:1px solid var(--main-color);
    font-family: "微软雅黑", Microsoft Yahei, simsun, arial, sans-serif;
    text-decoration: none;
    color: var(--main-color);
    font-weight: 500;

}