
/* 邮箱绑定弹窗样式 */
.email-bind-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.email-bind-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.email-bind-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 420px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .email-bind-content {
        width: 95%;
        max-height: 85vh;
        max-width: 100%;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.email-bind-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
}

.email-bind-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.email-bind-header h3 i {
    color: #667eea;
}

.email-bind-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.email-bind-close:hover {
    background: #f5f5f5;
    color: #333;
}

.email-bind-body {
    padding: 24px;
    overflow-y: auto;
    max-height: calc(90vh - 70px);
    flex: 1;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .email-bind-body {
        padding: 16px;
        max-height: calc(85vh - 70px);
    }
}

.email-bind-desc {
    color: #666;
    font-size: 13px;
    margin: 0 0 20px 0;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #667eea;
}

.email-bind-body .form-group {
    margin-bottom: 20px;
}

.email-bind-body .form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

.email-bind-body .form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    box-sizing: border-box;
}

.email-bind-body .form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.email-input-group {
    display: flex;
    gap: 10px;
}

.email-input-group input {
    flex: 1;
}

.btn-send-code {
    padding: 12px 16px;
    background: #667eea;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
}

.btn-send-code:hover:not(:disabled) {
    background: #5a67d8;
}

.btn-send-code:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.input-error {
    display: block;
    color: #e74c3c;
    font-size: 12px;
    margin-top: 6px;
    min-height: 18px;
}

/* 固定底部按钮区域 */
.email-bind-footer {
    padding: 16px 24px;
    border-top: 1px solid #eee;
    background: #fff;
    flex-shrink: 0;
}

.email-bind-footer .form-actions {
    display: flex;
    gap: 12px;
}

.email-bind-footer .form-actions button {
    flex: 1;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.email-bind-footer .form-actions .btn-secondary {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
}

.email-bind-footer .form-actions .btn-secondary:hover {
    background: #e8e8e8;
}

.email-bind-footer .form-actions .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
}

.email-bind-footer .form-actions .btn-primary:hover:not(:disabled) {
    opacity: 0.9;
    transform: translateY(-1px);
}

.email-bind-footer .form-actions .btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 授权管理弹窗按钮样式 */
.email-bind-body .form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.email-bind-body .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    padding: 10px 24px;
}

.email-bind-body .btn-primary:hover:not(:disabled) {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.email-bind-body .btn-secondary {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    padding: 10px 24px;
}

.email-bind-body .btn-secondary:hover {
    background: #e8e8e8;
}

.email-bind-body .btn-danger {
    background: #ff4d4f;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
}

.email-bind-body .btn-danger:hover {
    background: #ff7875;
}
