/* 移除所有卡片阴影，改用细横线分割 */
.library-manager-minimal {
    background-color: #f2f2f7; /* iOS 经典的背景灰 */
    min-height: 100vh;
}

.category-header {
    padding: 20px 16px 8px;
    font-size: 13px;
    color: #8e8e93;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.book-row {
    background: #ffffff;
    display: flex;
    align-items: center;
    padding: 12px 16px;
    position: relative;
    border-bottom: 0.5px solid #e5e5ea; /* 极细分割线 */
}

.book-row:active {
    background-color: #e5e5e7; /* 点击反馈 */
}

.book-info-area {
    flex: 1;
}

.book-name {
    font-size: 13px;
    font-weight: 500;
    color: #1c1c1e;
    display: flex;
    align-items: center;
    gap: 6px;
}

.book-counts {
    font-size: 12px;
    color: #8e8e93;
    margin-top: 4px;
}

.reset-action {
    padding-left: 15px;
    color: #ff3b30; /* iOS 警示红 */
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

/* 容器：左右平铺，撑满屏幕 */
.library-split-container {
    display: flex;
    height: calc(100vh - 46px); /* 减去导航栏高度 */
    background: #fff;
}

/* 左侧边栏：固定宽度，利用您已有的样式 */
.sidebar-area {
    width: 120px !important;
    background: #f7f8fa;
    overflow-y: auto;
    flex-shrink: 0;
}

/* 2. 关键：强制让 Vant 的组件撑满这个宽度 */
/* 因为 Vant 默认的 .van-sidebar 宽度是 80px，不改的话右边会露白 */
.sidebar-area .van-sidebar {
    width: 100% !important;
}

/* 3. 如果文字还是太挤，可以微调间距 */
.sidebar-area .van-sidebar-item {
    padding: 20px 12px; /* 适当减小左右内边距 */
    font-size: 13px;    /* 稍微调小字号以容纳更多文字 */
}

/* 右侧内容：自适应宽度，独立滚动 */
.content-area {
    flex: 1;
    overflow-y: auto;
    padding: 0 16px 20px 16px;
}

.category-title {
    padding: 15px 0;
    font-size: 14px;
    font-weight: bold;
    color: #323233;
    position: sticky; /* 标题吸顶 */
    top: 0;
    background: #fff;
    z-index: 5;
}

/* 极简行样式 */
.book-row-minimal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 0.5px solid #ebedf0;
}

.book-info-main {
    flex: 1;
    min-width: 0;             /* 配合 flex:1 使用，允许内容在必要时收缩 */
}

.book-name {
    font-size: 13px;
    color: #1c1c1e;
    display: flex;
    align-items: center;
    gap: 6px;
}

.book-stats {
    font-size: 12px;
    color: #969799;
    margin-top: 4px;
}

.reset-link {
    color: #ff3b30;
    font-size: 14px;
    /* 移除 padding-left: 15px; 因为上面用了 gap */
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    line-height: 1;         /* 强制行高为 1，防止文字偏上或偏下 */
}

.learning-tag {
    white-space: nowrap !important;
    flex-shrink: 0;
    font-size: 11px !important;
    display: inline-flex;
    align-items: center;
    padding: 0 4px;         /* 适当微调内边距 */
    height: 18px;           /* 固定高度有助于对齐 */
}

/* 新增：右侧动作容器 */
.book-right-actions {
    display: flex;          /* 开启 Flex 布局 */
    align-items: center;    /* 核心：强制让内部所有元素垂直居中对齐 */
    justify-content: flex-end; /* 靠右排列 */
    gap: 8px;               /* 自动设置“正学”和“重置”之间的间距，不需要再写 margin-left */
    flex-shrink: 0;         /* 防止整个右侧区域被左侧书名挤压 */
    margin-left: 12px;      /* 确保跟书名之间有最小间距 */
}