/* 解除内容区域最大宽度限制，支持宽屏 */
.book .book-body .page-wrapper .page-inner {
    max-width: none;
    padding: 0 2em;
}

.book .book-body .body-inner {
    left: 70px !important;
} 

.book .book-body .body-inner .book-header .pull-right {
    display: none !important;
}

/* 可选：让代码块也自适应 */
.book .book-body .page-wrapper .page-inner pre,
.book .book-body .page-wrapper .page-inner code {
    white-space: pre-wrap;
    word-break: break-all;
}

/* 可选：侧边栏保持固定或响应式 */
.book .book-summary {
    width: 250px; /* 默认值，可按需调整 */
}

/* 修复复制按钮样式，确保是按钮而不是链接 */
.copy-code-button {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    padding: 6px 12px !important;
    background-color: #f8f9fa !important;
    color: #495057 !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    display: inline-block !important;
    z-index: 10 !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.copy-code-button:hover {
    background-color: #e9ecef !important;
    border-color: #adb5bd !important;
    color: #212529 !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15) !important;
}

.copy-code-button:active {
    background-color: #dee2e6 !important;
    transform: translateY(1px) !important;
}

/* 确保代码块容器有相对定位，以便复制按钮正确定位 */
pre {
    position: relative !important;
}

/* 调整代码块样式，避免行号无法显示 */
.code-wrapper pre > code > span.code-line:before {
    width: 2em;
}