@charset "UTF-8";

/* 平板端图书列表默认样式 */
/* 使用BookStack默认样式，不添加自定义样式 */

/* 图书详情页标题栏样式 */
.book-header {
    margin-bottom: 20px;
}

.book-header h1 {
    margin-bottom: 10px;
}

.book-shelves {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.shelves-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.shelves-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.shelf-item {
    display: inline-block;
    padding: 4px 12px;
    background-color: #f5f7fa;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    font-size: 13px;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.3s ease;
}

.shelf-item:hover {
    background-color: #e5e7eb;
    color: #1a1a1a;
}

/* 目录按钮样式 */
.book-toc-toggle {
    cursor: pointer;
}

.book-toc-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* 强制设置view-toggle-container中.svg-icon的margin-inline-end为0 */
.view-toggle-container .svg-icon {
    margin-inline-end: 0 !important;
}

/* 修改view-toggle-btn按钮样式 */
.view-toggle-btn {
    background-color: transparent !important;
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

/* 增强SVG图标的高亮效果 */
.view-toggle-btn .svg-icon {
    fill: #666666 !important;
    transition: fill 0.2s ease !important;
}

/* 悬停时的效果 */
.view-toggle-btn:hover .svg-icon {
    fill: #07c160 !important; /* 使用主题的主色调 */
}

/* 激活状态的效果 */
.view-toggle-btn.active .svg-icon {
    fill: #07c160 !important; /* 使用主题的主色调 */
}

/* 深色模式下的样式 */
body.dark-mode .view-toggle-btn .svg-icon {
    fill: #cccccc !important;
}

body.dark-mode .view-toggle-btn:hover .svg-icon {
    fill: #07c160 !important; /* 使用主题的主色调 */
}

body.dark-mode .view-toggle-btn.active .svg-icon {
    fill: #07c160 !important; /* 使用主题的主色调 */
}