 #epub-container{
            display: none;
            flex-direction: column;
            height: 100vh;
            width: 100%;
            position: fixed;
            top: 0;
            left: 0;
            z-index: 999999;
            background: #f4f4f4;
            user-select: none;
            gap: 10px;
        }

        #viewer {
            flex-grow: 1;
            position: relative;
            overflow: hidden;
            background-color: white;
            max-width: 675px;
            margin: 0 auto;
            box-sizing: border-box;
        }

        .controls {
            display: flex; 
            justify-content: center;
            padding: 10px;
            background-color: #333;
            color: white;
             /* 添加安全区域间距 */
            padding-bottom: env(safe-area-inset-bottom);
            position: sticky;
            bottom: 0;
            touch-action: manipulation; /* 禁止双击缩放 */
        }

        .controls button {
            background-color: #444;
            border: none;
            color: white;
            padding: 15px 5px;
            cursor: pointer;
            width: 33%;
            border-right: #333 1px solid;
            display: flex;
            flex-direction: row;
            justify-content: center;
            align-items: center;
            gap: 5px;
            font-size: 12px;
        }
        
        .controls button:focus{
            background-color: #444;
        }

        .controls svg{
            width: 20px;
            height: 20px;
        }

        .controls svg path{
            fill: #FFFFFF;
        }
        
        .controls button:hover {
            background-color: #555;
        }
        .toc-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 1000;
        }
        .toc-modal-content {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background-color: white;
            padding: 20px;
            max-height: 80%;
            overflow-y: auto;
            min-width: 300px;
            border-radius: 5px;
        }
        
        .toc-modal-content h3 {
            font-size: 1.2rem;
            border-bottom: 1px solid #DDD;
            padding-bottom: 10px;
        }

        .toc-modal-content button {
            display: block;
            margin: 20px auto; /* 增加外边距以提供更好的间距 */
            width: 120px; /* 稍微增加宽度 */
            height: 40px; /* 增加高度以使按钮更大更易点击 */
            line-height: 40px; /* 与高度一致以垂直居中文本 */
            text-align: center;
            outline: none;
            border: none; /* 移除边框 */
            border-radius: 8px; /* 增加圆角半径 */
            background-color: #1296db; 
            color: white; 
            font-size: 16px; 
            font-weight: bold; 
            cursor: pointer; 
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
            transition: all 0.3s ease; 
            padding: 0;
        }

        .toc-modal-content button:hover {
            background-color: #1d7dbd; 
            box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2); 
            transform: translateY(-2px); 
        }

        .toc-modal-content button:active {
            background-color: #0c5b8f; 
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); 
            transform: translateY(1px); 
        }

        #tocList li{
            list-style: circle;
            line-height: 1.5rem;
        }

        #tocList li a{
            text-decoration: none;
            color: dodgerblue;
        }

        #buyModal{
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 1000;
        }

        #buyModal .buyModal-wrapper{
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background-color: white;
            padding: 20px;
            max-height: 80%;
            overflow-y: auto;
            min-width: 300px;
            border-radius: 5px;
        }
        
        #buyModal .buyModal-wrapper p:first-child{
            color: #D81E06;
            font-size: 1.2rem;
            font-family: 'Roboto';
            font-weight: bold;
        }


        #buyModal .buyModal-wrapper p{
            margin: 0;
            text-align: center;
        }

        #buyModal .buyModal-wrapper .buy-buttons{
            display: flex;
            flex-direction: row;
            gap: 10px;
            align-items: center;
            justify-content: center;
            margin: 15px 0 0;
        }

        #buyModal .buyModal-wrapper .buy-buttons a{
            background-color: #4F87B100;
            fill: #E02E2E;
            color: #E02E2E;
            transition-duration: 0.3s;
            border-style: solid;
            border-width: 1px 1px 1px 1px;
            border-color: #E02E2E;
            border-radius: 5px 5px 5px 5px;
            padding: 8px 8px 8px 8px;
            text-decoration: none;
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: center;
            gap: 3px;
        }
        
        #buyModal .buyModal-wrapper .buy-buttons a svg{
            width: 26px;
            height: 26px;
        }
        
        #buyModal .buyModal-wrapper .buy-buttons a:last-child{
            border-color: #1296DB;
            color: #1296DB;
        }

        #buyModal .buyModal-wrapper .buy-buttons a:hover{
            background-color: #E02E2E;
            color: #FFFFFF;
        }
        
        #buyModal .buyModal-wrapper .buy-buttons a:hover svg path{
            fill: #FFFFFF;
        }
        
        #buyModal .buyModal-wrapper .buy-buttons a:last-child:hover{
            background-color: #1296DB;
        }

        #closeBuy{
            position: absolute;
            top: 5px;
            right: 5px;
            cursor: pointer;;
        }
        
        #closeBuy svg{
            width: 28px;
            height: 29px;
        }
        
        #closeBuy:hover svg path{
            fill: #E02E2E;
        }

        

        @media (min-width: 675px) {
            #viewer{
                border-radius: 5px;
                box-shadow: 2px 2px 3px #ddd;
            }
        }

        .top-info{
            width: 100%;
            background: #FFF;
            border-bottom: 1px solid #f4f4f4;
             padding:0 15px;
            box-sizing: border-box;
            height: 46px;
            display: flex;
            justify-content: center;
            box-shadow: 0px 4px 10px rgb(0 0 0 / 10%);
        }
        
        .top-info .top-info-container{
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            align-items: center;
            width: 675px;
        }

        .top-info p{
            font-size: 0.85rem;
            color: #999;
            display: flex;
            flex-direction: column;
            margin: 0;
        }

        .top-info p b{
            font-size: 1rem;
            color: #1296db;
        }

        #close-btn {
            
        }

        .top-info .button-wrapper{
            display: flex;
            flex-direction: row;
            gap: 1px;
            align-items: center;
        }

        .top-info button{
            background: none;
            color: white;
            border: none;
            cursor: pointer;
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: center;
            padding: 0;
        }
        
        .top-info button:hover,.top-info button:focus{
            background-color: unset;
        }

        .top-info button svg{
            width: 36px;
            height: 36px;
        }

        #close-btn:hover svg path{
            fill: #d81e06;
        }


        @media (max-width: 600px) {
            #epub-container {
                /* 移动端使用更精确的高度计算 */
                height: calc(var(--vh, 1vh) * 100) !important;
                gap: 0;
            }
            .controls {
                flex-direction: row;
                padding: 8px 5px;
            }
            .controls button {
                width: 33%;
                padding: 10px 3px;
                font-size: 11px;
            }

            .top-info{
                height: 36px;
            }

            .top-info p{
                display: flex;
                flex-direction: row;
                gap: 5px;
                align-items: center;
            }
        }