/* ===========================================================
   报价总结「手动粘贴」兜底面板
   -----------------------------------------------------------
   微信内置浏览器（X5 / WKWebView）不允许网页调用
   navigator.clipboard.readText()，会直接报「没有权限读取剪切板」。
   这里给一个页面内的粘贴面板：长按输入框 → 系统菜单「粘贴」→ 导入。
   桌面/普通浏览器里 clipboard API 正常时不会用到它。
   =========================================================== */

.yypaste-mask {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10050;
    background: rgba(12, 20, 24, .46);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
    -webkit-tap-highlight-color: transparent;
}

.yypaste-sheet {
    position: fixed;
    left: 50%;
    bottom: 0;
    z-index: 10051;
    box-sizing: border-box;
    width: 100%;
    max-width: 480px;
    padding: 0 16px calc(16px + env(safe-area-inset-bottom));
    border-radius: 20px 20px 0 0;
    background: #fff;
    transform: translate(-50%, 104%);
    transition: transform .28s cubic-bezier(.32, .72, .28, 1);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    color: #1b2422;
    -webkit-tap-highlight-color: transparent;
}

.yypaste-show .yypaste-mask {
    opacity: 1;
    pointer-events: auto;
}

.yypaste-show .yypaste-sheet {
    transform: translate(-50%, 0);
}

.yypaste-bar {
    position: relative;
    padding: 14px 0 12px;
    text-align: center;
}

.yypaste-bar::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 7px;
    width: 38px;
    height: 4px;
    margin-left: -19px;
    border-radius: 2px;
    background: #dde3e2;
}

.yypaste-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.yypaste-x {
    position: absolute;
    right: 0;
    top: 12px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f1f4f3;
    color: #7d8a87;
    font-size: 17px;
    line-height: 32px;
    text-align: center;
    font-family: inherit;
    cursor: pointer;
}

.yypaste-hint {
    margin: 0 0 10px;
    font-size: 12.5px;
    line-height: 1.6;
    color: #7b8783;
}

.yypaste-hint b {
    color: #1c8f89;
    font-weight: 600;
}

.yypaste-box {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 132px;
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 1px solid #dfe5e4;
    border-radius: 12px;
    background: #f7f9f8;
    color: #1b2422;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.6;
    resize: none;
    outline: none;
    -webkit-user-select: text;
    user-select: text;
    -webkit-text-size-adjust: 100%;
}

.yypaste-box:focus {
    border-color: #1c8f89;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(28, 143, 137, .12);
}

.yypaste-box::placeholder {
    color: #a6b1ad;
}

/* 「只接受粘贴」说明 */
.yypaste-lock {
    margin: -4px 0 12px;
    font-size: 11.5px;
    line-height: 1.5;
    color: #9aa6a2;
    text-align: right;
}

.yypaste-acts {
    display: flex;
    gap: 10px;
}

.yypaste-acts button {
    flex: 1;
    height: 44px;
    border: 0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .5px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.yypaste-cancel {
    flex: 0 0 34% !important;
    background: #f0f3f2;
    color: #56635f;
}

.yypaste-ok {
    background: linear-gradient(135deg, #1c8f89, #17a89f);
    color: #fff;
    box-shadow: 0 6px 16px rgba(28, 143, 137, .28);
}

.yypaste-ok:disabled {
    background: #cfdbd9;
    color: #fff;
    box-shadow: none;
}

/* 桌面端：不做底部抽屉，改成居中小卡片 */
@media (min-width: 641px) {
    .yypaste-sheet {
        top: 50%;
        bottom: auto;
        max-width: 420px;
        padding-bottom: 16px;
        border-radius: 16px;
        transform: translate(-50%, -46%);
        opacity: 0;
        transition: transform .22s ease, opacity .22s ease;
    }

    .yypaste-show .yypaste-sheet {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}
