/* 重置默认样式 */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
            text-decoration: none;
        }
        body {
        }
        /* 顶部搜索栏 */
        .search-bar {
            background-color: #F7E9AE;
            padding: 10px 15px;
            font-size: 0;
        }
        .search-input {
            width: 90%;
            height: 40px;
            padding: 0 15px;
            border: 1px solid #e0e0e0;
            border-radius: 20px;
            font-size: 14px;
            outline: none;
        }
        .search-input .button{
            border-color: #4285f4;
        }
        
        
        
        /* 图书列表容器 */
        .book-list {
            padding: 15px;
            display: flex;
            flex-wrap: wrap;
            /* 列间距 */
            gap: 15px;
        }
        /* 单个图书卡片 */
        .book-card { 
            /* 一排两个的核心宽度计算 */
            width: calc(50% - 7.5px);
            background-color: #FBFBF6;
            border-radius: 8px;
            overflow: hidden;
        }
        /* 图书封面 */
        .book-cover {
            width: 100%;
            /* height: 180px; */
            /* 保持图片比例，裁剪超出部分 */
            object-fit: cover;
        }
        /* 图书信息 */
        .book-info {
            padding: 10px;
        }
        .book-title {
            font-size: 18px;
            font-weight: 600;
            color: #333;
            margin-bottom: 5px;
            /* 标题超出一行省略 */
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .book-author {
            font-size: 15px;
            color: #666;
        }
		
		/* 顶部基础信息模块 */
        .book-base-info {
            background-color: #fff;
            padding: 15px;
            margin-bottom: 15px;
            display: flex;
            gap: 15px;
        }
        /* 左侧封面 */
        .book-cover-wrap {
            flex-shrink: 0; /* 防止封面被挤压 */
            width: 120px;
            height: 180px;
        }
        .book-cover {
            /* width: 100%; */
            /* height: 100%; */
            /* object-fit: cover; */
            border-radius: 6px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }
        /* 右侧信息区 */
        .book-info-wrap {
            flex: 1; /* 占满剩余宽度 */
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }
        /* 标题和作者 */
        .book-info-wrap .book-title {
            font-size: 24px;
            font-weight: 700;
            margin-bottom: 8px;
            line-height: 1.3;
        }
        .book-info-wrap  .book-author {
            font-size: 17px;
            color: #666;
            margin-bottom: 0px;
        }
        /* 功能按钮组 */
        .book-btn-group {
            display: flex;
            gap: 10px;
        }
        .book-btn {
            flex: 1;
            height: 40px;
            line-height: 40px;
            text-align: center;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
        }
        .catalog-btn {
            background-color: #fff;
            color: #4285f4;
            border: 1px solid #4285f4;
        }
        .read-btn {
            background-color: #4285f4;
            color: #fff;
            border: none;
        }
        /* 简介模块 */
        .book-intro {
            background-color: #fff;
            padding: 15px;
            border-radius: 8px;
            margin: 0 15px;
        }
        .intro-title {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 10px;
            color: #333;
        }
        .intro-content {
            font-size: 14px;
            line-height: 1.6;
            color: #555;
            text-indent: 2em; /* 首行缩进2字符 */
        }
		/* 阅读容器：3D透视 + 溢出隐藏 */
        .reader-container {
            
             /* 3D透视，增强翻页立体感 */
            box-sizing: border-box;
            position: fixed; /* 固定在屏幕内，脱离文档流 */
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            overflow: hidden !important; /* 双重保险，禁止容器内部滚动 */
        }
        /* 图片页容器：核心翻页样式 */
        .book-img-page {
            width: 100%;
            height: 100%;
            position: absolute;
            left: 0;
            right: 0;
            top: 0;
            bottom: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            backface-visibility: hidden;
            transform-origin: center; /* 以中心为旋转原点 */
            transition: all 0.5s cubic-bezier(0.645, 0.045, 0.355, 1); /* 动画时长+缓动曲线 */
            z-index: 1;
        }
        /* 当前显示的页：居中正常显示 */
        .book-img-page.active {
            z-index: 10;
            transform: translateX(0) rotateY(0deg);
            opacity: 1;
        }
        /* 待显示的下一页：初始在右侧 */
        .book-img-page.to-show {
            transform: translateX(100%) rotateY(0deg);
            opacity: 0;
        }
        /* 下一页翻转动画：从右向左滑入 */
        .book-img-page.next-in {
            transform: translateX(0) rotateY(0deg);
            opacity: 1;
        }
        /* 上一页翻转动画：从左向右滑入 */
        .book-img-page.prev-in {
            transform: translateX(0) rotateY(0deg);
            opacity: 1;
        }
        /* 已翻走的上一页：向左滑出 */
        .book-img-page.prev-out {
            transform: translateX(-100%) rotateY(0deg);
            opacity: 0;
        }
        /* 已翻走的下一页：向右滑出 */
        .book-img-page.next-out {
            transform: translateX(100%) rotateY(0deg);
            opacity: 0;
        }
        /* 图书图片：适配屏幕 */
        .book-img {
        /* height: 210px; */
        }
        /* 页码提示 */
        .page-num {
            position: absolute;
            bottom: 20px;
            right: 20px;
            font-size: 14px;
            color: #fff;
            background-color: rgba(0,0,0,0.5);
            padding: 5px 10px;
            border-radius: 15px;
            z-index: 20;
        }
        /* 翻页提示 */
        .swipe-tip {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            font-size: 18px;
            color: rgba(255,255,255,0.7);
            padding: 20px;
            z-index: 20;
        }
        .tip-left {
            left: 10px;
        }
        .tip-right {
            right: 10px;
        }		
		
		/* 顶部总页数提示 */
        .total-page-bar {
            background-color: #fff;
            padding: 15px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
            margin-bottom: 15px;
        }
        .total-page-text {
            font-size: 16px;
            color: #333;
            font-weight: 600;
            text-align: center;
        }
        /* 目录列表容器：一排三张布局 */
        .catalog-list {
            padding: 0 15px;
            display: flex;
            flex-wrap: wrap;
            gap: 10px; /* 图片之间的间距 */
        }
        /* 单个目录图片项 */
        .catalog-item {
            /* 一排三张：宽度=1/3 - 间距的2/3（总间距10px，每个项减去 10*2/3 ≈6.67px） */
            width: calc(33.333% - 6.666px);
            background-color: #fff;
            border-radius: 8px;
            overflow: hidden;
            position: relative; /* 用于页码定位 */
            font-size: 0;
        }
        /* 目录图片 */
        .catalog-img {
            width: 100%;
            /* height: 120px; */ /* 适配一排三张的高度，保证比例协调 */
            object-fit: cover;
        }
        /* 页码标注：悬浮在图片右下角 */
        .page-mark {
            position: absolute;
            bottom: 5px;
            right: 5px;
            background-color: rgba(0,0,0,0.6);
            color: #fff;
            font-size: 12px;
            padding: 2px 6px;
            border-radius: 10px;
        }
        /* 点击选中效果（可选） */
        .catalog-item:active {
            transform: scale(0.95);
            transition: transform 0.2s ease;
        }