        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            background-color: #f5e9d7; /* 保留木质色调的背景色 */
            background-image: linear-gradient(to bottom, rgba(245, 233, 215, 0.9), rgba(245, 233, 215, 0.7)); /* 添加渐变效果 */
            font-family: 'Microsoft YaHei', Arial, sans-serif;
            min-height: 100vh;
            opacity: 0;
            animation: fadeIn 0.5s ease-in-out forwards; 
        }
		
		 
        @keyframes fadeIn {
            from {
                opacity: 0;
            }
            to {
                opacity: 1;
            }
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }

        .header {
            text-align: center;
            margin: 30px 0;
            position: relative;
            transform: translateY(-50px);
            opacity: 0;
            animation: slideDown 0.5s ease-in-out 0.2s forwards; 
        }

        @keyframes slideDown {
            from {
                transform: translateY(-50px);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        .header h1 {
            color: #8B4513; 
            font-size: 2.5em;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
        }

        .bookshelf {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); /* 调整最小列宽 */
            gap: 20px;
            padding: 20px;
            background-color: rgba(255, 255, 255, 0.3); /* 添加半透明背景 */
            border-radius: 10px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        }

        .book {
            position: relative;
            cursor: pointer;
            transition: transform 0.3s ease;
            perspective: 1000px;
            transform: scale(0.8);
            opacity: 0;
            animation: scaleIn 0.5s ease-in-out 0.4s forwards; 
        }

        @keyframes scaleIn {
            from {
                transform: scale(0.8);
                opacity: 0;
            }
            to {
                transform: scale(1);
                opacity: 1;
            }
        }

        .book:hover {
            transform: translateY(-5px) scale(1.05) rotateZ(3deg);
        }

        .book-cover {
            width: 100%;
            height: 180px; /* 调整封面高度 */
            background: #4e2e1a; 
            border-radius: 4px;
            box-shadow: 5px 5px 15px rgba(0,0,0,0.3);
            position: relative;
            overflow: hidden;
            transition: box-shadow 0.3s;
        }

        .book-cover img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s;
        }

        .book-cover:hover img {
            transform: scale(1.1);
        }

        .book-title {
            text-align: center;
            margin-top: 15px;
            color: #555; 
            font-size: 14px;
            line-height: 1.4;
            padding: 0 5px;
            word-break: break-word;
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            .bookshelf {
                grid-template-columns: repeat(3, 1fr); /* 窄屏幕最少显示3本书 */
                gap: 15px;
            }
            
            .book-cover {
                height: 150px;
            }

            .header h1 {
                font-size: 2em;
            }
        }

        @media (max-width: 480px) {
            .bookshelf {
                grid-template-columns: repeat(3, 1fr); /* 窄屏幕最少显示3本书 */
                gap: 15px;
            }

            .book-cover {
                height: 150px;
            }

            .book-title {
                font-size: 12px;
            }

            .header h1 {
                font-size: 1.8em;
            }
        }

        /* 桌面端优化 */
        @media (min-width: 1024px) {
            .bookshelf {
                grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); /* 增加列宽 */
                gap: 30px; /* 增加间距 */
                padding: 30px; /* 增加内边距 */
            }
            
            .book-cover {
                height: 240px; /* 增加封面高度 */
                border-radius: 6px; /* 增加圆角 */
            }
            
            .book-title {
                font-size: 16px; /* 增加字体大小 */
                margin-top: 20px; /* 增加标题间距 */
            }
        }

        /* PDF查看器样式 */
        .pdf-viewer {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.9);
            z-index: 1000;
            opacity: 0;
            transition: opacity 0.3s ease-in-out; 
        }

        .pdf-viewer.show {
            display: flex;
            flex-direction: column;
            opacity: 1;
        }

        .pdf-container {
            flex: 1;
            display: flex;
            justify-content: center;
            align-items: center;
            overflow: auto;
            padding: 20px 0;
            position: relative;
        }

        /* 底部控制栏 */
        .pdf-controls {
            display: flex;
            justify-content: center;
            align-items: center;
            background-color: rgba(0, 0, 0, 0.8);
            padding: 15px 0;
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            z-index: 1001;
        }

        .control-btn {
            background: none;
            border: none;
            color: white;
            font-size: 24px;
            margin: 0 15px;
			padding: 10px; /* 统一内边距 */
            cursor: pointer;
            transition: all 0.2s;
        }
		.pdf-controls .return-btn {
			margin-bottom: 8px; /* 返回上移 */
		}
        .control-btn:hover {
            color: #ffcc00;
            transform: scale(1.1);
        }

        .control-btn:active {
            transform: scale(0.95);
        }

        .page-info {
            color: white;
            font-size: 18px;
            margin: 0 20px;
        }
		.pdf-controls .control-btn img {
			width: 36px; /* 调整图标宽度 */
			height: 36px; /* 调整图标高度 */
		}
        /* 加载提示 */
        .loading {
            text-align: center;
            padding: 50px;
            color: #555; 
            font-size: 18px;
        }
        
        /* 移动端PDF自适应 */
        @media (max-width: 768px) {
            .pdf-container {
                padding: 10px 0;
            }
            
            canvas {
                max-width: 100%;
                height: auto !important;
            }
        }
        
        /* 桌面端PDF优化 */
        @media (min-width: 1024px) {
            .pdf-container {
                padding: 40px 0;
            }
            
            .pdf-controls {
                padding: 20px 0;
            }
            
            .control-btn {
                font-size: 28px;
            }
            
            .page-info {
                font-size: 20px;
            }
        }