/* 民间借贷利息计算器：复用 calc-common，仅补少量业务样式 */

/* 档位徽标 */
.pli-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
}
.pli-badge-ok {
    color: #1f9d43;
    background: rgba(31, 157, 67, .12);
}
.pli-badge-warn {
    color: #b7791f;
    background: rgba(217, 159, 32, .14);
}
.pli-badge-bad {
    color: #e0447c;
    background: rgba(224, 68, 124, .12);
}

/* hero 内徽标行 */
.pli-hero-top {
    display: flex;
    justify-content: flex-end;
    min-height: 28px;
}

/* 不受保护利息行 */
.calc-bill li[data-warn="1"] .v { color: #e0447c; font-weight: 700; }

/* 返还提示条 */
.pli-refund {
    margin-top: 12px;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.6;
    color: #b45309;
    background: rgba(217, 159, 32, .12);
    border: 1px solid rgba(217, 159, 32, .3);
}

/* 法规口径备注 */
.pli-notes { margin-top: 12px; }
.pli-notes p {
    position: relative;
    padding-left: 16px;
    font-size: 13px;
    line-height: 1.75;
    color: var(--c-text-sub);
    margin: 0 0 7px;
}
.pli-notes p::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--c-primary);
}
.pli-notes p:last-child { margin-bottom: 0; }

/* 复制按钮与结果区间距 */
#pliCopy { margin-top: 14px; }

/* toast */
.pli-toast {
    position: fixed;
    left: 50%;
    bottom: 34px;
    transform: translateX(-50%) translateY(16px);
    background: rgba(28, 28, 30, .92);
    color: #fff;
    font-size: 14px;
    padding: 10px 22px;
    border-radius: 999px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
    z-index: 999;
}
.pli-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 暗色微调 */
[data-theme="dark"] .pli-badge-ok { color: #4ade80; background: rgba(74, 222, 128, .14); }
[data-theme="dark"] .pli-badge-warn { color: #fbbf24; background: rgba(251, 191, 36, .14); }
[data-theme="dark"] .pli-badge-bad { color: #fb7185; background: rgba(251, 113, 133, .14); }
[data-theme="dark"] .pli-refund { color: #fbbf24; background: rgba(251, 191, 36, .1); border-color: rgba(251, 191, 36, .28); }
[data-theme="dark"] .calc-bill li[data-warn="1"] .v { color: #fb7185; }
