/**
 * 浏览器提示样式
 */

/* 模态框基础样式 */
.uam-browser-tip-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.uam-browser-tip-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.uam-browser-tip-modal .modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 380px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

/* 模态框头部 */
.uam-browser-tip-modal .modal-header {
    padding: 25px 20px 15px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.uam-browser-tip-modal .tip-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.uam-browser-tip-modal .tip-icon.wechat-icon {
    background: linear-gradient(135deg, #09BB43, #07a83a);
    color: white;
}

.uam-browser-tip-modal .tip-icon.wechat-icon::before {
    content: '💬';
}

.uam-browser-tip-modal .tip-icon.alipay-icon {
    background: linear-gradient(135deg, #009FE8, #0088cc);
    color: white;
}

.uam-browser-tip-modal .tip-icon.alipay-icon::before {
    content: '🔄';
}

.uam-browser-tip-modal .modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

/* 模态框内容 */
.uam-browser-tip-modal .modal-body {
    padding: 20px;
}

.uam-browser-tip-modal .tip-content {
    margin: 0 0 20px 0;
    font-size: 16px;
    line-height: 1.5;
    color: #666;
    text-align: center;
}

.uam-browser-tip-modal .tip-steps {
    margin-bottom: 20px;
}

.uam-browser-tip-modal .step {
    padding: 12px 15px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007cba;
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

.uam-browser-tip-modal .step:last-child {
    margin-bottom: 0;
}

/* 指导图片 */
.uam-browser-tip-modal .tip-image {
    text-align: center;
    margin-bottom: 20px;
}

.uam-browser-tip-modal .instruction-image {
    display: inline-block;
    padding: 20px;
}

/* 微信指导图 */
.uam-browser-tip-modal .wechat-instruction .phone-frame {
    width: 120px;
    height: 200px;
    background: #f0f0f0;
    border-radius: 15px;
    border: 3px solid #333;
    position: relative;
    margin: 0 auto;
}

.uam-browser-tip-modal .wechat-instruction .phone-header {
    height: 30px;
    background: #333;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.uam-browser-tip-modal .wechat-instruction .dots {
    display: flex;
    gap: 3px;
}

.uam-browser-tip-modal .wechat-instruction .dots span {
    width: 6px;
    height: 6px;
    background: #666;
    border-radius: 50%;
}

.uam-browser-tip-modal .wechat-instruction .phone-content {
    padding: 20px 10px;
    height: calc(100% - 30px);
    position: relative;
}

.uam-browser-tip-modal .wechat-instruction .arrow-point {
    position: absolute;
    top: 10px;
    right: -80px;
    background: #ff4444;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    white-space: nowrap;
}

.uam-browser-tip-modal .wechat-instruction .arrow-point::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid #ff4444;
}

/* 支付宝指导图 */
.uam-browser-tip-modal .alipay-instruction {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.uam-browser-tip-modal .alipay-instruction .browser-icon {
    font-size: 36px;
}

.uam-browser-tip-modal .alipay-instruction .arrow {
    font-size: 24px;
    color: #007cba;
    font-weight: bold;
}

.uam-browser-tip-modal .alipay-instruction .link-text {
    font-size: 14px;
    color: #333;
    font-weight: 600;
}

/* 模态框底部 */
.uam-browser-tip-modal .modal-footer {
    padding: 15px 20px 25px;
    text-align: center;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.uam-browser-tip-modal .modal-footer button {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.uam-browser-tip-modal .btn-primary {
    background: linear-gradient(135deg, #007cba, #0056b3);
    color: white;
}

.uam-browser-tip-modal .btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.uam-browser-tip-modal .btn-secondary {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
}

.uam-browser-tip-modal .btn-secondary:hover {
    background: #e9ecef;
    color: #333;
}

/* Toast 提示 */
.uam-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    z-index: 100000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.uam-toast.show {
    opacity: 1;
}

/* 防止页面滚动 */
body.modal-open {
    overflow: hidden;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .uam-browser-tip-modal .modal-content {
        width: 95%;
        max-width: none;
        margin: 20px;
        max-height: calc(100vh - 40px);
    }

    .uam-browser-tip-modal .modal-header {
        padding: 20px 15px 10px;
    }

    .uam-browser-tip-modal .modal-body {
        padding: 15px;
    }

    .uam-browser-tip-modal .modal-footer {
        padding: 10px 15px 20px;
        flex-direction: column;
    }

    .uam-browser-tip-modal .modal-footer button {
        width: 100%;
        margin-bottom: 8px;
    }

    .uam-browser-tip-modal .wechat-instruction .arrow-point {
        right: -60px;
        font-size: 11px;
        padding: 4px 8px;
    }

    .uam-browser-tip-modal .alipay-instruction {
        flex-direction: column;
        gap: 10px;
    }
}

/* 动画效果 */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.uam-browser-tip-modal .modal-content {
    animation: modalFadeIn 0.3s ease-out;
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .uam-browser-tip-modal .modal-content {
        background: #2d3748;
        color: #e2e8f0;
    }

    .uam-browser-tip-modal .modal-header {
        border-bottom-color: #4a5568;
    }

    .uam-browser-tip-modal .modal-header h3 {
        color: #e2e8f0;
    }

    .uam-browser-tip-modal .tip-content {
        color: #a0aec0;
    }

    .uam-browser-tip-modal .step {
        background: #4a5568;
        color: #e2e8f0;
    }

    .uam-browser-tip-modal .btn-secondary {
        background: #4a5568;
        color: #e2e8f0;
        border-color: #718096;
    }

    .uam-browser-tip-modal .btn-secondary:hover {
        background: #718096;
    }
}