﻿body {
    background: #f8f8f8;
}

.copyright {
    font-size: 16px;
    color: #999;
    line-height: 1.6;
    margin-bottom: 60px;    
}

/**************************************************/

/* PC 端布局保持不变 */
.book-info-pc {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    position: relative;
    padding-right:20px;
    background:#fff;
}

.book-info-pc .cover {
    width: 243px;
    height: 324px;
    border-radius: 8px;
    margin-right: 30px;
}

.book-info-pc .text-wrap {
    flex: 1;
    height: 324px;
    padding-right:0px;
}

.book-info-pc .title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 8px;
}

.book-info-pc .meta {
    color: #999;
    margin-bottom: 15px;
}

.book-info-pc .meta span {
    font-size: 16px;
    line-height: 32px;
}

.book-info-pc .meta p {
    font-size: 14px;
    line-height: 28px;
}

.book-info-pc .desc {
    color: #666;
    line-height: 26px;
    margin-bottom: 20px;    
}

.book-info-pc .btn-read {
    background: #00b5ad;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    position:absolute;
    bottom:20px;
    width:144px;
}

.div_qr-code {
    position: absolute;
    top: 44px;
    right: 20px;
    text-align: center;
}

.book-info-pc .qr-code {
    width: 120px;
    height: auto;
    /*margin-left: 30px;*/
    text-align: center;
}

.book-info-pc .qr-text {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

.book-info-mobile {
    display: none;
    position: relative;
    /*margin: 0 auto;*/
    margin: 20px 0;
    /*max-width: 360px;*/
    /*border-radius: 8px;*/
    overflow: hidden;
}

/* 封面图容器 */
.book-info-mobile .cover-wrap {
    position: relative;
    width: 100%;
    padding-top: 67%;
    /*background: url("/assets/img/phone_cover.png") center/cover no-repeat;*/
}

/* 标题和元信息浮动在封面上方 */
.book-info-mobile .cover-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px;
    background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0.6));
    color: #fff;
}

    .book-info-mobile .title {
        font-size: 20px;
        font-weight: bold;
        margin-bottom: 4px;
        line-height: 38px;
    }

.book-info-mobile .meta {
    font-size: 12px;
    opacity: 0.9;
    line-height:16px;
}

/* 标签、描述等内容区域 */
.book-info-mobile .content {
    padding: 12px;
    background: #fff;
    /*border: 1px solid #f5f5f5;*/
    border-top: none;
    /*border-radius: 0 0 8px 8px;*/
    margin-bottom: 0px; /* 为底部固定按钮留出空间 */
    padding-bottom:0px;
}

.book-info-mobile .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
    width:80%;
}

.book-info-mobile .tags span {
    background: #f5f5f5;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    color: #999;
}

.book-info-mobile .desc {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
}

.book-info-mobile .author {
    font-size: 14px;
    color: #999;
    margin-bottom: 12px;
}

/* 手机端底部固定按钮 */
.book-info-mobile .btn-read {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #00b5ad;
    color: #fff;
    border: none;
    padding: 11px 20px; /* 增大按钮尺寸，提升移动端点击体验 */
    border-radius: 0;
    border-bottom: 1px solid #008c85; /* 添加下边框 */
    cursor: pointer;
    font-size: 14px;
    /*font-weight: bold;*/
    z-index: 100; /* 确保按钮在最上层 */
}



/************************************************************************************************/


/* ============= PC 端专属样式 ============= */
.chapter-list-pc {
    width: 100%;
    max-width: 1200px;
    margin: 16px auto;
    padding: 20px;
    /*display: none;*/ /* 默认隐藏 */
    background: #fff;
    display: block;
}


.chapter-list-pc h2 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 23px;
}

.pc-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.pc-tabs button {
    background: #fff;
    border: 1px solid #dcdcdc;
    color: #666;
    /*padding: 8px 26px;*/
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    width:82px;
    height:34px;
}

.pc-tabs button.active {
    background: #00b5ad;
    color: #fff;
    border-color: #00b5ad;
}

.pc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.pc-item {
    padding: 12px 16px;
    background: #f8f8f8;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: background 0.3s ease;
    margin-right:10px;

}

.pc-item a {
    color: #666;
}

.pc-item:hover {
    background: #f0f0f0;
}

.loading {
    display: none;
    text-align: center;
    padding: 20px;
    font-size: 16px;
    color: #00b5ad;
}

.error-message {
    display: none;
    text-align: center;
    padding: 20px;
    font-size: 16px;
    color: #f44336;
}

/* ============= 手机端专属样式 ============= */
.chapter-list-mobile {
    width: 100%;
    padding: 15px;
    display: none; /* 默认隐藏 */
    margin-top: -33px;
    background: #fff;
}

.mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.mobile-header .status {
    font-size: 14px;
    color: #333;
}

.mobile-header .update-info {
    font-size: 14px;
    color: #999;
}

.mobile-header .update-info a{
    color: #999;
}

.mobile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 每行3个 */
    gap: 8px;
}


.mobile-item {
    text-align: center;
}

.mobile-item img {
    width: 100%;
    height:73px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 4px;
}

.mobile-item .title {
    font-size: 12px;
    line-height: 1.4;
    color: #333;
    display: block;
}

.mobile-item .gridtitle {
    color: #FF7537;
}

.mobile-item .date {
    font-size: 10px;
    color: #999;
}

/************************************************************/

/* 新增手机端顶部固定导航栏 */
.mobile-top-bar {
    position: fixed; /* 固定在顶部 */
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999; /* 确保层级最高 */
    display: none; /* 默认隐藏 */
    height: 100px;
    align-items: center;
    background: #fff;
    border-bottom: 1px solid #f5f5f5;
    padding: 14px 15px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}


.mobile-top-bar .back-btn {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    cursor: pointer;
    float: left;
    padding-top: 3px;
}

.mobile-top-bar .title {
    font-size: 16px;
    font-weight: bold;
    flex: 1;
    text-align: center;
    margin: 0 10px; /* 避免挤压 */

    float: left;
    width: 76%;
    color: #333;
}

.mobile-top-bar .app-promote {
    display: flex;
    align-items: center;
    margin-left: auto;
    float: left;
}

.mobile-top-bar .app-logo {
    width: 28px;
    height: 28px;
    margin-right: 6px;
}

.mobile-top-bar .app-text {
    font-size: 12px;
    color: #666;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.mobile-top-bar .open-btn {
    background: #00b5ad;
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 13px;
    margin-left: 10px;
    cursor: pointer;
    float: right;
}


/******************************************************/

@media (max-width: 768px) {
    .mobile-top-bar {
        display: inline-block;
    }
    /* 给main添加顶部内边距，避免内容被遮挡 */
    main {
        padding-top: 54px;
    }

    .book-info-pc .desc {
        display: none;
    }

    .div_qr-code {
        display: none;
    }

    .book-info-mobile {
        display: block;
    }

    .chapter-list-mobile {
        display: block;
    }
}


@media (max-width: 480px) {
    main {
        margin-top: -20px;
        padding: 0 0px;
    }    
}


@media (max-width: 480px) {
    header {
        display: none;
    }
    .copyright {
        font-size: 12px;
        padding: 16px;
        padding-top:12px;
    }
}
