:root { --sts-main: #2563eb; }

/* 悬浮主容器 - 极高层级防止遮挡 */
#sts-v9-app { position: fixed; z-index: 9999999; }
.sts-rb { bottom: 30px; right: 30px; }
.sts-rm { top: 50%; right: 30px; transform: translateY(-50%); }
.sts-lb { bottom: 30px; left: 30px; }
.sts-lm { top: 50%; left: 30px; transform: translateY(-50%); }

/* 触发器拟物化 */
.sts-v9-trigger {
    width: 62px; height: 62px; background: var(--sts-main); border-radius: 20px;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); position: relative; z-index: 10;
}
.sts-v9-trigger:hover { transform: scale(1.1) rotate(5deg); }

.sts-v9-echo {
    position: absolute; inset: 0; border-radius: 20px; border: 2px solid var(--sts-main);
    animation: sts-v9-ani 2s infinite; z-index: -1;
}
@keyframes sts-v9-ani { 0% {transform: scale(1); opacity: 0.6;} 100% {transform: scale(1.7); opacity: 0;} }

/* 毛玻璃悬停卡片 */
.sts-v9-hover-card {
    position: absolute; bottom: 85px; left: 50%; transform: translateX(-50%);
    background: rgba(255,255,255,0.96); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border: 1px solid #fff; border-radius: 22px; padding: 18px;
    width: 170px; text-align: center; box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    display: none; animation: sts-v9-pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
#sts-v9-app:hover .sts-v9-hover-card { display: block; }
.sts-v9-qr { width: 140px; height: 140px; border-radius: 12px; margin-bottom: 12px; }
.sts-v9-qr-html { font-size: 13px; color: #1e293b; line-height: 1.5; }

/* 弹窗设计 */
#sts-v9-modal {
    position: fixed; inset: 0; background: rgba(15, 23, 42, 0.5); backdrop-filter: blur(10px);
    z-index: 10000000; display: none; align-items: center; justify-content: center;
}
.sts-v9-modal-box {
    background: #fff; width: 480px; max-width: 90%; padding: 45px; border-radius: 35px;
    box-shadow: 0 30px 70px rgba(0,0,0,0.3); position: relative;
}
.sts-v9-head h3 { margin: 0; font-size: 26px; color: #0f172a; font-weight: 800; }
.sts-v9-head p { color: #64748b; font-size: 14px; margin: 10px 0 30px; }
.sts-v9-close { position: absolute; top: 30px; right: 30px; cursor: pointer; font-size: 30px; color: #cbd5e1; }

#sts-v9-form input, #sts-v9-form textarea {
    width: 100% !important; border: 1.5px solid #e2e8f0 !important; border-radius: 15px !important;
    padding: 14px 20px !important; margin-bottom: 18px !important; background: #f8fafc !important;
    font-size: 15px !important; outline: none !important; transition: 0.2s;
}
#sts-v9-form input:focus { border-color: var(--sts-main) !important; background: #fff !important; box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1) !important; }
.sts-v9-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

#v9_btn {
    width: 100%; background: var(--sts-main); color: #fff; border: none; padding: 18px;
    border-radius: 16px; font-weight: 700; font-size: 17px; cursor: pointer; transition: 0.3s;
}
#v9_btn:hover { transform: translateY(-4px); box-shadow: 0 15px 30px rgba(0,0,0,0.15); }

@keyframes sts-v9-pop { from { opacity: 0; transform: translateX(-50%) translateY(30px); } }