/* 商品购买前提示弹窗（电脑端与手机端共用） */
.twf-prompt-mask{
 display:none!important;position:fixed!important;z-index:2147483000!important;
 left:0!important;top:0!important;right:0!important;bottom:0!important;
 width:100%!important;height:100%!important;margin:0!important;
 background:rgba(22,26,32,.56);padding:20px;box-sizing:border-box;
 align-items:center!important;justify-content:center!important;text-align:left!important;
 font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei","PingFang SC","Hiragino Sans GB",Arial,sans-serif;
 -webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);
}
.twf-prompt-mask.twf-show{display:flex!important;}
.twf-prompt-dialog{
 position:relative!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;
 float:none!important;transform:none!important;margin:auto!important;padding:0!important;
 width:440px;max-width:100%;max-height:84vh;box-sizing:border-box;
 background:#fff;border:1px solid rgba(0,0,0,.06);border-radius:14px;
 box-shadow:0 22px 70px rgba(0,0,0,.28);overflow:hidden;color:#252a31;text-align:left;
 animation:twfPromptIn .18s ease-out;
}
.twf-prompt-head{display:flex;align-items:center;gap:12px;padding:20px 20px 14px;background:#fff;box-sizing:border-box;}
.twf-prompt-head-icon{
 flex:0 0 auto;display:flex;align-items:center;justify-content:center;width:38px;height:38px;
 border-radius:50%;background:#fff3e8;color:#f26b21;
}
.twf-prompt-head-icon svg{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.twf-prompt-heading{flex:1;min-width:0;}
.twf-prompt-title{margin:0;padding:0;border:0;font-size:18px;line-height:1.35;font-weight:700;color:#20242a;}
.twf-prompt-subtitle{margin-top:3px;font-size:13px;line-height:1.45;font-weight:400;color:#8a9099;}
.twf-prompt-content-wrap{padding:0 20px;box-sizing:border-box;}
.twf-prompt-content{
 box-sizing:border-box;max-height:43vh;overflow-y:auto;padding:14px 15px;
 border:1px solid #eceff3;border-radius:9px;background:#f8f9fb;
 color:#3b4149;font-size:15px;line-height:1.75;font-weight:400;
 white-space:pre-wrap;word-break:break-word;text-align:left;
}
.twf-prompt-option{padding:13px 20px 0;color:#69707a;font-size:14px;line-height:22px;box-sizing:border-box;}
.twf-prompt-option label{display:inline-flex;align-items:center;cursor:pointer;user-select:none;}
/* 自定义复选框：保持白底，只显示清晰对勾，去掉浏览器原生阴影与底色 */
.twf-prompt-option input{
 -webkit-appearance:none;appearance:none;position:relative;flex:0 0 auto;
 width:17px;height:17px;margin:0 7px 0 0;padding:0;vertical-align:middle;
 border:1px solid #cbd1d9;border-radius:4px;background:#fff!important;
 box-shadow:none!important;outline:none!important;cursor:pointer;box-sizing:border-box;
 transition:border-color .12s ease,background-color .12s ease;
}
.twf-prompt-option input:hover{border-color:#aeb6c1;background:#fff!important;box-shadow:none!important;}
.twf-prompt-option input:focus,.twf-prompt-option input:focus-visible{border-color:#ff8a3d;background:#fff!important;box-shadow:none!important;outline:none!important;}
.twf-prompt-option input:checked{border-color:#ff6600;background:#fff!important;box-shadow:none!important;}
.twf-prompt-option input:checked:after{
 content:"";position:absolute;left:4px;top:1px;width:5px;height:9px;
 border:solid #ff6600;border-width:0 2px 2px 0;transform:rotate(45deg);
 box-sizing:border-box;
}
.twf-prompt-option input:active{background:#fff!important;box-shadow:none!important;}
.twf-prompt-actions{display:flex;gap:12px;padding:18px 20px 20px;box-sizing:border-box;background:#fff;}
.twf-prompt-actions button{
 appearance:none;-webkit-appearance:none;flex:1;height:42px;margin:0;padding:0 16px;
 border-radius:8px;font-family:inherit;font-size:15px;line-height:40px;font-weight:500;
 text-align:center;cursor:pointer;outline:none;box-sizing:border-box;transition:background .15s,border-color .15s,box-shadow .15s,transform .08s;
}
.twf-prompt-actions .twf-cancel{border:1px solid #dfe3e8;background:#fff;color:#5f6670;}
.twf-prompt-actions .twf-cancel:hover{background:#f7f8fa;border-color:#d3d8df;}
.twf-prompt-actions .twf-confirm{border:1px solid #ff6600;background:#ff6600;color:#fff;font-weight:600;box-shadow:0 5px 14px rgba(255,102,0,.20);}
.twf-prompt-actions .twf-confirm:hover{background:#ed5f00;border-color:#ed5f00;}
.twf-prompt-actions button:active{transform:translateY(1px);}
body.twf-prompt-lock{overflow:hidden!important;} /* JS 同步补偿滚动条宽度，避免弹窗出现时页面横向跳动 */
@keyframes twfPromptIn{from{opacity:0;transform:translateY(8px) scale(.985);}to{opacity:1;transform:translateY(0) scale(1);}}
@media(max-width:600px){
 .twf-prompt-mask{padding:16px!important;}
 .twf-prompt-dialog{width:100%;max-height:86vh;border-radius:13px;}
 .twf-prompt-head{gap:10px;padding:17px 16px 12px;}
 .twf-prompt-head-icon{width:34px;height:34px;}
 .twf-prompt-head-icon svg{width:20px;height:20px;}
 .twf-prompt-title{font-size:17px;}
 .twf-prompt-subtitle{font-size:12px;}
 .twf-prompt-content-wrap{padding:0 16px;}
 .twf-prompt-content{max-height:45vh;padding:13px 14px;font-size:14px;line-height:1.7;border-radius:8px;}
 .twf-prompt-option{padding:12px 16px 0;font-size:14px;}
 .twf-prompt-actions{gap:10px;padding:16px;}
 .twf-prompt-actions button{height:42px;line-height:40px;font-size:15px;}
}

/* V7：提示正文允许安全超链接 */
.twf-prompt-content a{
 color:#e85f13;font-weight:500;text-decoration:underline;text-underline-offset:2px;
 overflow-wrap:anywhere;word-break:break-all;
}
.twf-prompt-content a:hover{color:#c94d08;text-decoration-thickness:2px;}
