.header-logo img {
    display: block;
}
.desc .desc-text {
    max-height: 200px;
}
.desc .rate {
    position: relative;
}
#text__rating {
    display: inline-block;
    position: absolute;
    margin-left: 10px;
}
#container {
    position: relative;
    background-color: var(--color-bodyBg);
}
.toggleNav #container {
    z-index: 10;
}
#container.active {
}
.header {
    position: relative;
    z-index: 5;
    width: 100%;
}
#list-index {
    min-height: 700px;
}
.list.index-intro {
    width: 100%;
}
#options {
    display: none;
}
.nowrap {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dark-background .chapter .chapter-c p {
    color: rgba(255,255,255,0.6) !important;
}
.dark-background .chapter .chapter-c p span {
    color: rgba(255,255,255,0.6) !important;
}
.books .desc h3.title {
    position: relative;
    display: block;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: -40px 0 10px 0;
}
.archive .list>.row {
    display: block;
    border-bottom: 1px dashed #CCC;
    margin: 0;
}
.archive .list>.row>div {
    border-bottom: none !important;
}
#list-index .list {
    display: block;
}
#list-index .list>.row {
    display: block;
    margin: 0;
}












/* ========== 首页布局优化 ========== */

/* Hot Novel 区域：统一封面尺寸（自适应） */
#index-intro .index-intro .item.top-2 {
    position: relative;
    width: 100%;
    padding-bottom: 150%;
    overflow: hidden;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
#index-intro .index-intro .item.top-2 img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#index-intro .index-intro .item.top-2 .title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    font-size: 12px;
    padding: 12px 4px 4px;
}
#index-intro .index-intro .item.top-2 .title h3 {
    color: #fff;
    margin: 0;
    font-size: 12px;
    line-height: 1.3;
}

/* Completed Novel 区域：统一封面尺寸（固定高度容器方案） */
#truyen-slide .list-thumbnail .col-md-2 {
    text-align: center;
    margin-bottom: 10px;
}
#truyen-slide .list-thumbnail .col-md-2 a .cover-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 150%;
    overflow: hidden;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
#truyen-slide .list-thumbnail .col-md-2 a img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
#truyen-slide .caption h3 {
    font-size: 12px;
    line-height: 1.3;
    margin-top: 6px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Latest Release 区域：章节标题对齐 */
#list-index .col-chap {
    height: 40px;
    line-height: 40px;
}
#list-index .col-chap .nowrap {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Latest Release 新增列：状态，与 col-chap 保持一致 */
#list-index .col-status {
    height: 40px;
    line-height: 40px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#list-index .col-status a {
    font-size: 13px;
}

/* === 热门封面 hover 动效 === */
#intro-index .item {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#intro-index .item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}
#intro-index .item img {
    transition: transform 0.2s ease;
}
#intro-index .item:hover img {
    transform: scale(1.03);
}

/* 热门封面下作者名 */
.book-author {
    display: block;
    font-size: 11px;
    color: #999;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 热门书名：超出显示省略号，防止手机端重叠 */
#intro-index .item .title h3 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* === Genres 分类美化 === */
#list-index .col-truyen-side .list-cat .row > div {
    padding: 3px !important;
}
#list-index .col-truyen-side .list-cat .row > div a {
    display: block;
    padding: 4px 10px;
    margin: 2px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    color: #555 !important;
    background: #fafafa;
    transition: all 0.15s ease;
    text-align: center;
}
#list-index .col-truyen-side .list-cat .row > div a:hover {
    color: var(--color-accent, #2e86c1) !important;
    border-color: var(--color-accent, #2e86c1);
    background: #fff;
    text-decoration: none;
}

/* === 搜索框美化 === */
.search-holder .form-control {
    border-radius: 4px 0 0 4px !important;
    border: 1px solid #ccc !important;
    border-right: none !important;
    height: 34px !important;
    transition: border-color 0.2s;
}
.search-holder .form-control:focus {
    border-color: var(--color-accent, #2e86c1) !important;
    box-shadow: none !important;
    outline: none;
}
.search-holder .input-group-btn .btn {
    border-radius: 0 4px 4px 0 !important;
    border: 1px solid #ccc !important;
    border-left: none !important;
    height: 34px !important;
}
.search-holder .input-group-btn .btn:hover {
    background: var(--color-accent, #2e86c1);
    border-color: var(--color-accent, #2e86c1);
    color: #fff;
}

/* === 阅读页优化 === */
#chapter.chapter {
    max-width: 820px;
    margin: 0 auto;
    float: none;
}
#chapter .chapter-c {
    font-family: Georgia, 'Times New Roman', serif !important;
    font-size: 19px !important;
    line-height: 1.8 !important;
    color: #2b2b2b !important;
    letter-spacing: 0.3px;
    padding: 0 10px;
}
#chapter .chapter-c p {
    margin-bottom: 1.2em;
    text-indent: 2em;
    text-align: left !important;
}
#chapter .chapter-c {
    text-align: left !important;
}
#chapter .chapter-title {
    font-size: 22px;
    font-weight: bold;
}
#chapter .truyen-title {
    font-size: 16px;
    color: var(--color-link, #2e86c1);
}
/* 阅读页导航居中 */
#chapter .btn-group {
    margin: 10px auto;
    display: flex;
    justify-content: center;
}
#chapter .btn-group .btn {
    min-width: 120px;
    padding: 8px 20px;
    font-size: 14px;
}
/* 隐藏章节跳转按钮 */
.chapter_jump {
    display: none !important;
}

/* === 详情页优化 === */
#truyen .col-info-desc .info-holder {
    padding-bottom: 20px;
}
#truyen .col-info-desc .books .book img {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
#truyen .col-info-desc .info {
    margin-top: 15px;
}
#truyen .col-info-desc .info > div {
    padding: 4px 0;
}
#truyen .col-info-desc .info h3 {
    font-size: 13px;
    color: #999;
    margin: 0;
    display: inline;
}
#truyen .col-info-desc .info a {
    font-size: 14px;
    font-weight: 500;
}
#truyen .col-info-desc .title-list h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--color-textHeading, #2b2b2b);
}
#truyen .col-info-desc .desc .title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 12px;
    display: none; /* 隐藏重复的书名（封面区已有） */
}
#truyen .col-info-desc .desc-text {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
    max-height: 120px;
    overflow: hidden;
    position: relative;
}
/* "See more" 按钮美化 */
#truyen .col-info-desc .showmore .btn {
    margin-top: 6px;
    border-radius: 4px;
    font-size: 12px;
    padding: 3px 12px;
}
/* 最近章节列表 */
#truyen .col-info-desc .l-chapter {
    margin-top: 25px;
}
#truyen .col-info-desc .l-chapter .l-title h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}
#truyen .col-info-desc .l-chapters {
    list-style: none;
    padding: 0;
}
#truyen .col-info-desc .l-chapters li {
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}
#truyen .col-info-desc .l-chapters li .glyphicon {
    color: var(--color-accent, #2e86c1);
    margin-right: 6px;
    font-size: 11px;
}
#truyen .col-info-desc .l-chapters li a {
    color: var(--color-text, #333);
}
#truyen .col-info-desc .l-chapters li a:hover {
    color: var(--color-link, #2e86c1);
    text-decoration: none;
}

/* === 章节列表页优化 === */
#list-chapter .list-chapter {
    list-style: none;
    padding: 0;
    margin: 0;
}
#list-chapter .list-chapter li {
    padding: 7px 10px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    transition: background 0.15s ease;
}
#list-chapter .list-chapter li:nth-child(even) {
    background: #fafafa;
}
#list-chapter .list-chapter li:hover {
    background: #f0f7ff;
}
#list-chapter .list-chapter li a {
    color: var(--color-text, #333);
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#list-chapter .list-chapter li a:hover {
    color: var(--color-link, #2e86c1);
}

/* === 深色模式 === */
html.dark-mode {
    --color-bodyBg: #1a1a2e !important;
    --color-navbar: #16213e !important;
    --color-navbarHover: #1a1a3e !important;
    --color-text: #c0c0c0 !important;
    --color-textHeading: #e0e0e0 !important;
    --color-link: #7eb8da !important;
    --color-breadcrumbBg: #16213e !important;
    --color-footBg: #0f0f23 !important;
    --color-sidebarBg: #1a1a2e !important;
    --color-selection: #7eb8da !important;
}
html.dark-mode body {
    background: #1a1a2e !important;
    color: #c0c0c0 !important;
}
html.dark-mode .navbar-default {
    background-color: #16213e !important;
    border-color: #2a2a4a !important;
}
html.dark-mode .breadcrumb-container {
    background: #16213e !important;
}
html.dark-mode .footer {
    background: #0f0f23 !important;
}
html.dark-mode .list.list-truyen {
    background: #1e1e3a !important;
}
html.dark-mode .list-truyen .row {
    border-bottom-color: #2a2a4a !important;
}
html.dark-mode a {
    color: #7eb8da !important;
}
html.dark-mode .chapter-c {
    color: #d0d0d0 !important;
}
html.dark-mode .title-list h2 a,
html.dark-mode .title-list h4 {
    color: #e0e0e0 !important;
}
/* 深色模式-章节列表 */
html.dark-mode #list-chapter .list-chapter li {
    border-bottom-color: #2a2a4a !important;
}
html.dark-mode #list-chapter .list-chapter li:nth-child(even) {
    background: #222244 !important;
}
html.dark-mode #list-chapter .list-chapter li:hover {
    background: #2a2a5a !important;
}
/* 阅读提示框 */
#chapter .box-notice {
    padding: 10px;
    border-radius: 6px;
    font-size: 12px;
    margin-top: 10px;
}
/* 移动端阅读页宽度 */
@media (max-width: 767px) {
    #chapter.chapter {
        max-width: 100%;
        padding: 0 5px;
    }
    #chapter .chapter-c {
        font-size: 17px !important;
        padding: 0 5px;
    }
}

/* Genre 侧边栏优化 */
.col-truyen-side .list-cat .row > div {
    padding: 4px 8px;
}
.col-truyen-side .list-cat .row > div a {
    font-size: 13px;
    line-height: 1.6;
}

/* 首页各区域间距统一 */
#intro-index {
    padding-bottom: 20px;
}
#list-index {
    padding-bottom: 20px;
}
#truyen-slide {
    padding-bottom: 20px;
}
