/* ==================== 支付密码输入框 ==================== */
.payment-password-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-password-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
}

.payment-password-content {
    position: relative;
    width: 90%;
    max-width: 400px;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    z-index: 1000000;
}

.payment-password-header {
    padding: 18px 22px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.payment-password-header h3 {
    margin: 0;
    font-size: 18px;
}

.payment-password-close {
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    font-size: 22px;
    color: #999;
    border-radius: 50%;
    cursor: pointer;
}

.payment-password-body {
    padding: 20px;
}

.payment-password-inputs {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.payment-password-digit {
    flex: 1;
    min-width: 42px;
    height: 56px;
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    background: #fff;
    font-size: 26px;
    font-weight: 600;
    text-align: center;
    color: #333;
    letter-spacing: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: border-color 0.2s;
}

.payment-password-digit:focus {
    outline: none;
    border-color: #07c160;
    box-shadow: 0 0 0 3px rgba(7, 193, 96, 0.15);
}

.payment-password-hint {
    margin-top: 14px;
    font-size: 13px;
    color: #888;
    text-align: center;
}

.payment-password-footer {
    padding: 16px 22px 24px;
    display: flex;
    gap: 12px;
}

.payment-password-btn {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-password-cancel {
    background: #f5f5f5;
}

.payment-password-confirm {
    background: #07c160;
    color: #fff;
}

.payment-password-confirm:disabled {
    background: #c8eadb;
    cursor: not-allowed;
}

@media (max-width: 480px) {
    .payment-password-digit {
        height: 52px;
        font-size: 22px;
    }
}

/* ==================== 二维码弹窗 ==================== */
.qr-code-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-code-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
}

.qr-code-content {
    position: relative;
    width: 90%;
    max-width: 420px;
    max-height: 90vh;
    background: #fff;
    border-radius: 24px;
    padding: 26px 24px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
    z-index: 1000000;
    overflow-y: auto;
}

.qr-code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.qr-code-header h3 {
    margin: 0;
    font-size: 20px;
}

.qr-code-close {
    border: none;
    background: transparent;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    border-radius: 50%;
    width: 34px;
    height: 34px;
}

.qr-code-body {
    text-align: center;
}

.qr-code-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
}

.qr-code-wrapper {
    background: #ffffff;
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.qr-code-wrapper canvas,
.qr-code-wrapper img {
    display: block;
    border-radius: 12px;
    background: #fff;
}

.qr-code-user-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.qr-code-user-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.8);
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.qr-code-user-name {
    font-size: 16px;
    font-weight: 600;
}

.qr-code-user-username {
    font-size: 13px;
    color: #999;
}

.qr-code-hint {
    margin-top: 18px;
    color: #666;
    font-size: 14px;
}

.qr-code-actions {
    margin-top: 18px;
    display: flex;
    gap: 10px;
}

.qr-code-action-btn {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #f9f9f9;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.qr-code-action-btn:hover {
    background: #f1f1f1;
    transform: translateY(-2px);
}

.qr-code-expiry {
    margin-top: 14px;
    font-size: 13px;
    color: #ff4d4f;
    font-weight: 600;
}

/* ==================== 分享二维码选择菜单 ==================== */
.qr-code-share-menu {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-code-share-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
}

.qr-code-share-content {
    position: relative;
    width: 90%;
    max-width: 380px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
    z-index: 1000000;
    overflow: hidden;
}

.qr-code-share-header {
    padding: 20px 22px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.qr-code-share-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qr-code-share-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid #eee;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.qr-code-share-option:hover {
    border-color: #07c160;
    background: #f8fffb;
    box-shadow: 0 6px 14px rgba(7, 193, 96, 0.12);
}

.qr-code-share-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    font-size: 24px;
}

.qr-code-share-title {
    font-size: 16px;
    font-weight: 600;
}

.qr-code-share-desc {
    font-size: 13px;
    color: #888;
}

/* ==================== 扫一扫 ==================== */
.scan-qr-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scan-qr-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.scan-qr-content {
    position: relative;
    width: 92%;
    max-width: 480px;
    background: #000;
    color: #fff;
    border-radius: 20px;
    padding: 22px;
    z-index: 1000000;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.scan-qr-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.scan-qr-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

.scan-qr-camera {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    border-radius: 18px;
    overflow: hidden;
    background: #111;
}

#scan-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scan-qr-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70%;
    height: 70%;
    transform: translate(-50%, -50%);
    border: 2px solid #07c160;
    border-radius: 12px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

.scan-qr-hint {
    margin-top: 16px;
    text-align: center;
    font-size: 14px;
    color: #d9d9d9;
}

.scan-qr-footer {
    margin-top: 18px;
    display: flex;
    gap: 12px;
}

.scan-qr-btn {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
}

/* ==================== 输入对话框 ==================== */
.input-dialog-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-dialog-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
}

.input-dialog-content {
    position: relative;
    width: 92%;
    max-width: 420px;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
    z-index: 1000000;
}

.input-dialog-header,
.input-dialog-footer {
    padding: 18px 22px;
    border-bottom: 1px solid #f0f0f0;
}

.input-dialog-body {
    padding: 18px 22px;
}

.input-dialog-input {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
}

.input-dialog-footer {
    border-bottom: none;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 12px;
}

.input-dialog-btn {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 15px;
}

.input-dialog-cancel {
    background: #f5f5f5;
}

.input-dialog-confirm {
    background: #07c160;
    color: #fff;
}