/* 推荐本书 · 前台样式（类名前缀 nr-，避免与主题样式冲突） */

.nr-box {
    margin: 10px 0 0;
    --nr-accent: #b8860b;
}

.nr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    border: 1px solid var(--nr-accent);
    border-radius: 6px;
    background: #fff;
    color: var(--nr-accent);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.2;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, opacity .2s ease;
}

.nr-btn:hover:not(:disabled) {
    background: var(--nr-accent);
    color: #fff;
}

.nr-btn--ok {
    background: var(--nr-accent);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.nr-btn--ok:hover:not(:disabled) {
    filter: brightness(1.08);
    background: var(--nr-accent);
    color: #fff;
}

.nr-btn:disabled {
    background: #f5f5f5;
    border-color: #e2e2e2;
    color: #999;
    cursor: not-allowed;
    box-shadow: none;
    filter: none;
}

.nr-btn-text {
    white-space: nowrap;
}

.nr-btn-count {
    min-width: 20px;
    padding: 0 7px;
    height: 18px;
    line-height: 18px;
    border-radius: 9px;
    background: rgba(0, 0, 0, .08);
    font-size: 12px;
    font-weight: 600;
}

.nr-btn--ok .nr-btn-count {
    background: rgba(255, 255, 255, .28);
}

.nr-btn:disabled .nr-btn-count {
    background: rgba(0, 0, 0, .06);
    color: #999;
}

.nr-tip {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.6;
    color: #999;
    text-align: center;
}

/* 详情页统计行里的推荐数 */
.stats-inline .nr-stat strong {
    margin-left: 2px;
}

/* 排行榜条目的推荐数强调（推荐榜右列由主题模板直接输出） */

/* 轻提示 */
.nr-toast {
    position: fixed;
    left: 50%;
    bottom: 84px;
    z-index: 99999;
    max-width: 78vw;
    padding: 10px 18px;
    border-radius: 20px;
    background: rgba(0, 0, 0, .82);
    color: #fff;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(10px);
    transition: opacity .25s ease, transform .25s ease;
}

.nr-toast.nr-toast--show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 480px) {
    .nr-btn {
        font-size: 13px;
        padding: 9px 12px;
    }
}