/* DPH Shelf —— 收藏按钮 + 书架页 */

/* ---------- 收藏按钮（在阅读工具条内） ---------- */
.dph-rd-tools .dph-fav {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.dph-rd-tools .dph-fav .dph-fav-ic {
    font-size: 12px;
    line-height: 1;
}

.dph-rd-tools .dph-fav .dph-fav-t {
    font-size: 12px;
}

.dph-rd-tools .dph-fav.on {
    color: #2b2f36;
}

.dph-rd-tools .dph-fav.on .dph-fav-ic {
    color: #b8860b;
}

/* 没有工具条时的兜底（老模板） */
.dph-fav-row {
    display: flex;
    justify-content: flex-end;
    margin: -4px 0 12px;
}

.dph-fav-row .dph-fav {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    font-size: 12px;
    color: #6b7280;
    background: transparent;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
}

.dph-fav-row .dph-fav:hover {
    background: #f2f4f7;
    color: #2b2f36;
}

/* ---------- 书架页 ---------- */
.dph-shelf {
    max-width: 820px;
    margin: 0 auto;
    padding: 8px 0 40px;
}

.dph-shelf-loading {
    padding: 40px 0;
    color: #8a8f99;
    font-size: 14px;
    text-align: center;
}

.dph-shelf-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 0 2px 14px;
    border-bottom: 1px solid #eceff3;
}

.dph-shelf-n {
    font-size: 15px;
    color: #2b2f36;
}

.dph-shelf-tip {
    font-size: 12px;
    color: #8a8f99;
}

.dph-shelf-tip a {
    color: #2b2f36;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.dph-shelf-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dph-shelf-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 2px;
    border-bottom: 1px solid #f0f2f5;
    transition: opacity .18s ease;
}

.dph-shelf-item.out {
    opacity: 0;
}

.dph-shelf-main {
    flex: 1 1 auto;
    min-width: 0;
}

.dph-shelf-t {
    display: block;
    font-size: 16px;
    line-height: 1.55;
    color: #1f2328;
    text-decoration: none;
}

.dph-shelf-t:hover {
    color: #000;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    text-decoration-color: #c9ced6;
}

.dph-shelf-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
    font-size: 12px;
    color: #8a8f99;
}

.dph-shelf-meta span {
    position: relative;
}

.dph-shelf-meta span + span::before {
    content: "·";
    position: absolute;
    left: -7px;
    color: #d3d7de;
}

.dph-shelf-date {
    color: #b3b8c1;
}

.dph-shelf-rm {
    flex: 0 0 auto;
    margin-top: 2px;
    padding: 5px 9px;
    font-size: 12px;
    color: #9aa0a9;
    background: transparent;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    transition: background .14s ease, color .14s ease;
}

.dph-shelf-rm:hover {
    background: #f5f6f8;
    color: #d14343;
}

.dph-shelf-empty {
    padding: 56px 0;
    text-align: center;
    color: #8a8f99;
    font-size: 14px;
}

.dph-shelf-empty p {
    margin: 0 0 12px;
}

.dph-shelf-go {
    display: inline-block;
    padding: 7px 16px;
    font-size: 13px;
    color: #2b2f36;
    background: #f2f4f7;
    border-radius: 4px;
    text-decoration: none;
}

.dph-shelf-go:hover {
    background: #e8ebf0;
}

@media (max-width: 640px) {
    .dph-shelf-item {
        padding: 14px 2px;
        gap: 10px;
    }

    .dph-shelf-t {
        font-size: 15px;
    }

    .dph-shelf-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* 书架页收口：链接不要主题蓝，隐藏主题自带的分享工具 */
.dph-shelf-page .dph-shelf-t,
.dph-shelf-page a.dph-shelf-t {
    color: #1f2328 !important;
}

.dph-shelf-page .art-tool,
.dph-shelf-page .art-footer .art-tool {
    display: none !important;
}
